Wordpress 2.0.11
[autoinstalls/wordpress.git] / wp-admin / options-head.php
1 <?php
2
3 $wpvarstoreset = array('action','standalone', 'option_group_id');
4 for ($i=0; $i<count($wpvarstoreset); $i += 1) {
5         $wpvar = $wpvarstoreset[$i];
6         if (!isset($$wpvar)) {
7                 if (empty($_POST["$wpvar"])) {
8                         if (empty($_GET["$wpvar"])) {
9                                 $$wpvar = '';
10                         } else {
11                                 $$wpvar = $_GET["$wpvar"];
12                         }
13                 } else {
14                         $$wpvar = $_POST["$wpvar"];
15                 }
16         }
17 }
18 ?>
19
20 <br clear="all" />
21
22 <?php if (isset($_GET['updated'])) : ?>
23 <div id="message" class="updated fade"><p><strong><?php _e('Options saved.') ?></strong></p></div>
24 <?php endif; ?>