Changeset 1108

Show
Ignore:
Timestamp:
04/20/04 22:56:47 (4 years ago)
Author:
saxmatt
Message:

Changed to superglobals, and eliminated $use_cache (since we always do).

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-admin/admin-header.php

    r1106 r1108  
    1111} 
    1212 
    13 if (!isset($use_cache))    $use_cache=1; 
    1413if (!isset($blogID))    $blog_ID=1; 
    1514if (!isset($debug))        $debug=0; 
     
    3837    $wpvar = $wpvarstoreset[$i]; 
    3938    if (!isset($$wpvar)) { 
    40         if (empty($HTTP_POST_VARS["$wpvar"])) { 
    41             if (empty($HTTP_GET_VARS["$wpvar"])) { 
     39        if (empty($_POST["$wpvar"])) { 
     40            if (empty($_GET["$wpvar"])) { 
    4241                $$wpvar = ''; 
    4342            } else { 
    44                 $$wpvar = $HTTP_GET_VARS["$wpvar"]; 
     43                $$wpvar = $_GET["$wpvar"]; 
    4544            } 
    4645        } else { 
    47             $$wpvar = $HTTP_POST_VARS["$wpvar"]; 
     46            $$wpvar = $_POST["$wpvar"]; 
    4847        } 
    4948    } 
  • trunk/wp-admin/categories.php

    r1076 r1108  
    1515 
    1616if (!get_magic_quotes_gpc()) { 
    17     $HTTP_GET_VARS    = add_magic_quotes($HTTP_GET_VARS); 
    18     $HTTP_POST_VARS   = add_magic_quotes($HTTP_POST_VARS); 
    19     $HTTP_COOKIE_VARS = add_magic_quotes($HTTP_COOKIE_VARS); 
     17    $_GET    = add_magic_quotes($_GET); 
     18    $_POST   = add_magic_quotes($_POST); 
     19    $_COOKIE = add_magic_quotes($_COOKIE); 
    2020} 
    2121 
     
    2424    $wpvar = $wpvarstoreset[$i]; 
    2525    if (!isset($$wpvar)) { 
    26         if (empty($HTTP_POST_VARS["$wpvar"])) { 
    27             if (empty($HTTP_GET_VARS["$wpvar"])) { 
     26        if (empty($_POST["$wpvar"])) { 
     27            if (empty($_GET["$wpvar"])) { 
    2828                $$wpvar = ''; 
    2929            } else { 
    30                 $$wpvar = $HTTP_GET_VARS["$wpvar"]; 
     30                $$wpvar = $_GET["$wpvar"]; 
    3131            } 
    3232        } else { 
    33             $$wpvar = $HTTP_POST_VARS["$wpvar"]; 
     33            $$wpvar = $_POST["$wpvar"]; 
    3434        } 
    3535    } 
     
    4646        die ('Cheatin’ uh?'); 
    4747     
    48     $cat_name= addslashes(stripslashes(stripslashes($HTTP_POST_VARS['cat_name']))); 
     48    $cat_name= addslashes(stripslashes(stripslashes($_POST['cat_name']))); 
    4949    $category_nicename = sanitize_title($cat_name); 
    50     $category_description = addslashes(stripslashes(stripslashes($HTTP_POST_VARS['category_description']))); 
    51     $cat = intval($HTTP_POST_VARS['cat']); 
     50    $category_description = addslashes(stripslashes(stripslashes($_POST['category_description']))); 
     51    $cat = intval($_POST['cat']); 
    5252 
    5353    $wpdb->query("INSERT INTO $tablecategories (cat_ID, cat_name, category_nicename, category_description, category_parent) VALUES ('0', '$cat_name', '$category_nicename', '$category_description', '$cat')"); 
     
    6262    require_once('admin-header.php'); 
    6363 
    64     $cat_ID = intval($HTTP_GET_VARS["cat_ID"]); 
     64    $cat_ID = intval($_GET["cat_ID"]); 
    6565    $cat_name = get_catname($cat_ID); 
    6666    $cat_name = addslashes($cat_name); 
     
    8585 
    8686    require_once ('admin-header.php'); 
    87     $category = $wpdb->get_row("SELECT * FROM $tablecategories WHERE cat_ID = " . $HTTP_GET_VARS['cat_ID']); 
     87    $category = $wpdb->get_row("SELECT * FROM $tablecategories WHERE cat_ID = " . $_GET['cat_ID']); 
    8888    $cat_name = stripslashes($category->cat_name); 
    8989    ?> 
     
    9393    <form name="editcat" action="categories.php" method="post"> 
    9494        <input type="hidden" name="action" value="editedcat" /> 
    95         <input type="hidden" name="cat_ID" value="<?php echo $HTTP_GET_VARS['cat_ID'] ?>" /> 
     95        <input type="hidden" name="cat_ID" value="<?php echo $_GET['cat_ID'] ?>" /> 
    9696        <p>Category name:<br /> 
    9797        <input type="text" name="cat_name" value="<?php echo $cat_name; ?>" /></p> 
     
    120120        die ('Cheatin&#8217; uh?'); 
    121121     
    122     $cat_name = addslashes(stripslashes(stripslashes($HTTP_POST_VARS['cat_name']))); 
    123     $cat_ID = addslashes($HTTP_POST_VARS['cat_ID']); 
     122    $cat_name = addslashes(stripslashes(stripslashes($_POST['cat_name']))); 
     123    $cat_ID = addslashes($_POST['cat_ID']); 
    124124    $category_nicename = sanitize_title($cat_name); 
    125     $category_description = $HTTP_POST_VARS['category_description']; 
     125    $category_description = $_POST['category_description']; 
    126126 
    127127    $wpdb->query("UPDATE $tablecategories SET cat_name = '$cat_name', category_nicename = '$category_nicename', category_description = '$category_description', category_parent = $cat WHERE cat_ID = $cat_ID"); 
  • trunk/wp-admin/edit-form-advanced.php

    r1038 r1108  
    167167} 
    168168?> 
    169     <input name="referredby" type="hidden" id="referredby" value="<?php echo $HTTP_SERVER_VARS['HTTP_REFERER']; ?>" /> 
     169    <input name="referredby" type="hidden" id="referredby" value="<?php echo $_SERVER['HTTP_REFERER']; ?>" /> 
    170170</p> 
    171171<?php 
  • trunk/wp-admin/edit-form-comment.php

    r1100 r1108  
    7272 
    7373<p class="submit"><input type="submit" name="submit" value="<?php echo $submitbutton_text ?>" style="font-weight: bold;" tabindex="6" /> 
    74   <input name="referredby" type="hidden" id="referredby" value="<?php echo $HTTP_SERVER_VARS['HTTP_REFERER']; ?>" /> 
     74  <input name="referredby" type="hidden" id="referredby" value="<?php echo $_SERVER['HTTP_REFERER']; ?>" /> 
    7575</p> 
    7676 
  • trunk/wp-admin/edit-form.php

    r1106 r1108  
    110110      echo '<input name="advanced" type="submit" id="advancededit" tabindex="7" value="' .  __('Advanced Editing &raquo;') . '" />'; 
    111111  } ?> 
    112   <input name="referredby" type="hidden" id="referredby" value="<?php echo $HTTP_SERVER_VARS['HTTP_REFERER']; ?>" /> 
     112  <input name="referredby" type="hidden" id="referredby" value="<?php echo $_SERVER['HTTP_REFERER']; ?>" /> 
    113113</p> 
    114114 
  • trunk/wp-admin/import-b2.php

    r763 r1108  
    33require_once('../wp-config.php'); 
    44require('upgrade-functions.php'); 
    5 $step = $HTTP_GET_VARS['step']; 
     5$step = $_GET['step']; 
    66if (!$step) $step = 0; 
    77?> 
  • trunk/wp-admin/import-blogger.php

    r784 r1108  
    55    $wpvar = $wpvarstoreset[$i]; 
    66    if (!isset($$wpvar)) { 
    7         if (empty($HTTP_POST_VARS["$wpvar"])) { 
    8             if (empty($HTTP_GET_VARS["$wpvar"])) { 
     7        if (empty($_POST["$wpvar"])) { 
     8            if (empty($_GET["$wpvar"])) { 
    99                $$wpvar = ''; 
    1010            } else { 
    11                 $$wpvar = $HTTP_GET_VARS["$wpvar"]; 
     11                $$wpvar = $_GET["$wpvar"]; 
    1212            } 
    1313        } else { 
    14             $$wpvar = $HTTP_POST_VARS["$wpvar"]; 
     14            $$wpvar = $_POST["$wpvar"]; 
    1515        } 
    1616    } 
  • trunk/wp-admin/import-greymatter.php

    r957 r1108  
    1313    $wpvar = $wpvarstoreset[$i]; 
    1414    if (!isset($$wpvar)) { 
    15         if (empty($HTTP_POST_VARS["$wpvar"])) { 
    16             if (empty($HTTP_GET_VARS["$wpvar"])) { 
     15        if (empty($_POST["$wpvar"])) { 
     16            if (empty($_GET["$wpvar"])) { 
    1717                $$wpvar = ''; 
    1818            } else { 
    19                 $$wpvar = $HTTP_GET_VARS["$wpvar"]; 
     19                $$wpvar = $_GET["$wpvar"]; 
    2020            } 
    2121        } else { 
    22             $$wpvar = $HTTP_POST_VARS["$wpvar"]; 
     22            $$wpvar = $_POST["$wpvar"]; 
    2323        } 
    2424    } 
  • trunk/wp-admin/import-mt.php

    r1059 r1108  
    66require('../wp-config.php'); 
    77 
    8 $step = $HTTP_GET_VARS['step']; 
     8$step = $_GET['step']; 
    99if (!$step) $step = 0; 
    1010?> 
  • trunk/wp-admin/import-textpattern.php

    r813 r1108  
    1212require('upgrade-functions.php'); 
    1313 
    14 $step = $HTTP_GET_VARS['step']; 
     14$step = $_GET['step']; 
    1515if (!$step) $step = 0; 
    1616?> 
  • trunk/wp-admin/install-config.php

    r964 r1108  
    1111if (!is_writable('../')) die("Sorry, I can't write to the directory. You'll have to either change the permissions on your WordPress directory or create your wp-config.php manually."); 
    1212 
    13 $step = $HTTP_GET_VARS['step']; 
     13$step = $_GET['step']; 
    1414if (!$step) $step = 0; 
    1515?> 
     
    105105     
    106106    case 2: 
    107     $dbname = $HTTP_POST_VARS['dbname']; 
    108     $uname = $HTTP_POST_VARS['uname']; 
    109     $passwrd = $HTTP_POST_VARS['pwd']; 
    110     $dbhost = $HTTP_POST_VARS['dbhost']; 
    111     $prefix = $HTTP_POST_VARS['prefix']; 
     107    $dbname = $_POST['dbname']; 
     108    $uname = $_POST['uname']; 
     109    $passwrd = $_POST['pwd']; 
     110    $dbhost = $_POST['dbhost']; 
     111    $prefix = $_POST['prefix']; 
    112112    if (empty($prefix)) $prefix = 'wp_'; 
    113113 
  • trunk/wp-admin/install.php

    r1100 r1108  
    55require('upgrade-functions.php'); 
    66 
    7 $step = $HTTP_GET_VARS['step']; 
     7$step = $_GET['step']; 
    88if (!$step) $step = 0; 
    99?> 
  • trunk/wp-admin/link-add.php

    r1100 r1108  
    3333} 
    3434if (!get_magic_quotes_gpc()) { 
    35     $HTTP_GET_VARS    = add_magic_quotes($HTTP_GET_VARS); 
    36     $HTTP_POST_VARS   = add_magic_quotes($HTTP_POST_VARS); 
    37     $HTTP_COOKIE_VARS = add_magic_quotes($HTTP_COOKIE_VARS); 
     35    $_GET    = add_magic_quotes($_GET); 
     36    $_POST   = add_magic_quotes($_POST); 
     37    $_COOKIE = add_magic_quotes($_COOKIE); 
    3838} 
    3939 
     
    4545    $wpvar = $wpvarstoreset[$i]; 
    4646    if (!isset($$wpvar)) { 
    47         if (empty($HTTP_POST_VARS["$wpvar"])) { 
    48             if (empty($HTTP_GET_VARS["$wpvar"])) { 
     47        if (empty($_POST["$wpvar"])) { 
     48            if (empty($_GET["$wpvar"])) { 
    4949                $$wpvar = ''; 
    5050            } else { 
    51                 $$wpvar = $HTTP_GET_VARS["$wpvar"]; 
     51                $$wpvar = $_GET["$wpvar"]; 
    5252            } 
    5353        } else { 
    54             $$wpvar = $HTTP_POST_VARS["$wpvar"]; 
     54            $$wpvar = $_POST["$wpvar"]; 
    5555        } 
    5656    } 
    5757} 
    58 $link_url = stripslashes($HTTP_GET_VARS['linkurl']); 
    59 $link_name = htmlentities(stripslashes(urldecode($HTTP_GET_VARS['name']))); 
     58$link_url = stripslashes($_GET['linkurl']); 
     59$link_name = htmlentities(stripslashes(urldecode($_GET['name']))); 
    6060 
    6161require('admin-header.php'); 
  • trunk/wp-admin/link-import.php

    r1107 r1108  
    99$this_file = 'link-import.php'; 
    1010 
    11 $step = $HTTP_POST_VARS['step']; 
     11$step = $_POST['step']; 
    1212if (!$step) $step = 0; 
    1313?> 
     
    8989     <h2>Importing...</h2> 
    9090<?php 
    91                 $cat_id = $HTTP_POST_VARS['cat_id']; 
     91                $cat_id = $_POST['cat_id']; 
    9292                if (($cat_id == '') || ($cat_id == 0)) { 
    9393                    $cat_id  = 1; 
    9494                } 
    9595 
    96                 $opml_url = $HTTP_POST_VARS['opml_url']; 
     96                $opml_url = $_POST['opml_url']; 
    9797                if (isset($opml_url) && $opml_url != '') { 
    9898                    $blogrolling = true; 
  • trunk/wp-admin/link-manager.php

    r1100 r1108  
    4848} 
    4949if (!get_magic_quotes_gpc()) { 
    50     $HTTP_GET_VARS    = add_magic_quotes($HTTP_GET_VARS); 
    51     $HTTP_POST_VARS   = add_magic_quotes($HTTP_POST_VARS); 
    52     $HTTP_COOKIE_VARS = add_magic_quotes($HTTP_COOKIE_VARS); 
     50    $_GET    = add_magic_quotes($_GET); 
     51    $_POST   = add_magic_quotes($_POST); 
     52    $_COOKIE = add_magic_quotes($_COOKIE); 
    5353} 
    5454 
     
    6161    $wpvar = $wpvarstoreset[$i]; 
    6262    if (!isset($$wpvar)) { 
    63         if (empty($HTTP_POST_VARS["$wpvar"])) { 
    64             if (empty($HTTP_GET_VARS["$wpvar"])) { 
     63        if (empty($_POST["$wpvar"])) { 
     64            if (empty($_GET["$wpvar"])) { 
    6565                $$wpvar = ''; 
    6666            } else { 
    67                 $$wpvar = $HTTP_GET_VARS["$wpvar"]; 
     67                $$wpvar = $_GET["$wpvar"]; 
    6868            } 
    6969        } else { 
    70             $$wpvar = $HTTP_POST_VARS["$wpvar"]; 
     70            $$wpvar = $_POST["$wpvar"]; 
    7171        } 
    7272    } 
    7373} 
    7474 
    75 $links_show_cat_id = $HTTP_COOKIE_VARS['links_show_cat_id_' . $cookiehash]; 
    76 $links_show_order = $HTTP_COOKIE_VARS['links_show_order_' . $cookiehash]; 
     75$links_show_cat_id = $_COOKIE['links_show_cat_id_' . $cookiehash]; 
     76$links_show_order = $_COOKIE['links_show_order_' . $cookiehash]; 
    7777 
    7878if (!empty($action2)) { 
     
    176176    include_once('admin-header.php'); 
    177177 
    178     $link_url = $HTTP_POST_VARS['linkurl']; 
    179     $link_name = $HTTP_POST_VARS['name']; 
    180     $link_image = $HTTP_POST_VARS['image']; 
    181     $link_target = $HTTP_POST_VARS['target']; 
    182     $link_category = $HTTP_POST_VARS['category']; 
    183     $link_description = $HTTP_POST_VARS['description']; 
    184     $link_visible = $HTTP_POST_VARS['visible']; 
    185     $link_rating = $HTTP_POST_VARS['rating']; 
    186     $link_rel = $HTTP_POST_VARS['rel']; 
    187     $link_notes = $HTTP_POST_VARS['notes']; 
    188     $link_rss_uri =  $HTTP_POST_VARS['rss_uri']; 
     178    $link_url = $_POST['linkurl']; 
     179    $link_name = $_POST['name']; 
     180    $link_image = $_POST['image']; 
     181    $link_target = $_POST['target']; 
     182    $link_category = $_POST['category']; 
     183    $link_description = $_POST['description']; 
     184    $link_visible = $_POST['visible']; 
     185    $link_rating = $_POST['rating']; 
     186    $link_rel = $_POST['rel']; 
     187    $link_notes = $_POST['notes']; 
     188    $link_rss_uri =  $_POST['rss_uri']; 
    189189    $auto_toggle = get_autotoggle($link_category); 
    190190 
     
    203203           . addslashes($link_description) . "', '$link_visible', $user_ID, $link_rating, '" . addslashes($link_rel) . "', '" . addslashes($link_notes) . "', '$link_rss_uri')"); 
    204204 
    205     header('Location: ' . $HTTP_SERVER_VARS['HTTP_REFERER']); 
     205    header('Location: ' . $_SERVER['HTTP_REFERER']); 
    206206    break; 
    207207  } // end Add 
     
    223223      include_once('admin-header.php'); 
    224224 
    225       $link_id = $HTTP_POST_VARS['link_id']; 
    226       $link_url = $HTTP_POST_VARS['linkurl']; 
    227       $link_name = $HTTP_POST_VARS['name']; 
    228       $link_image = $HTTP_POST_VARS['image']; 
    229       $link_target = $HTTP_POST_VARS['target']; 
    230       $link_category = $HTTP_POST_VARS['category']; 
    231       $link_description = $HTTP_POST_VARS['description']; 
    232       $link_visible = $HTTP_POST_VARS['visible']; 
    233       $link_rating = $HTTP_POST_VARS['rating']; 
    234       $link_rel = $HTTP_POST_VARS['rel']; 
    235       $link_notes = $HTTP_POST_VARS['notes']; 
    236       $link_rss_uri =  $HTTP_POST_VARS['rss_uri']; 
     225      $link_id = $_POST['link_id']; 
     226      $link_url = $_POST['linkurl']; 
     227      $link_name = $_POST['name']; 
     228      $link_image = $_POST['image']; 
     229      $link_target = $_POST['target']; 
     230      $link_category = $_POST['category']; 
     231      $link_description = $_POST['description']; 
     232      $link_visible = $_POST['visible']; 
     233      $link_rating = $_POST['rating']; 
     234      $link_rel = $_POST['rel']; 
     235      $link_notes = $_POST['notes']; 
     236      $link_rss_uri =  $_POST['rss_uri']; 
    237237      $auto_toggle = get_autotoggle($link_category); 
    238238 
     
    266266    include_once('admin-header.php'); 
    267267 
    268     $link_id = $HTTP_GET_VARS["link_id"]; 
     268    $link_id = $_GET["link_id"]; 
    269269 
    270270    if ($user_level < get_settings('links_minadminlevel')) 
     
    526526  case "popup": 
    527527  { 
    528     $link_url = stripslashes($HTTP_GET_VARS["linkurl"]); 
    529     $link_name = stripslashes($HTTP_GET_VARS["name"]); 
     528    $link_url = stripslashes($_GET["linkurl"]); 
     529    $link_name = stripslashes($_GET["name"]); 
    530530    //break; fall through 
    531531  } 
  • trunk/wp-admin/moderation.php

    r1075 r1108  
    1616 
    1717if (!get_magic_quotes_gpc()) { 
    18     $HTTP_GET_VARS    = add_magic_quotes($HTTP_GET_VARS); 
    19     $HTTP_POST_VARS   = add_magic_quotes($HTTP_POST_VARS); 
    20     $HTTP_COOKIE_VARS = add_magic_quotes($HTTP_COOKIE_VARS); 
     18    $_GET    = add_magic_quotes($_GET); 
     19    $_POST   = add_magic_quotes($_POST); 
     20    $_COOKIE = add_magic_quotes($_COOKIE); 
    2121} 
    2222 
     
    2525    $wpvar = $wpvarstoreset[$i]; 
    2626    if (!isset($$wpvar)) { 
    27         if (empty($HTTP_POST_VARS["$wpvar"])) { 
    28             if (empty($HTTP_GET_VARS["$wpvar"])) { 
     27        if (empty($_POST["$wpvar"])) { 
     28            if (empty($_GET["$wpvar"])) { 
    2929                $$wpvar = ''; 
    3030            } else { 
    31                 $$wpvar = $HTTP_GET_VARS["$wpvar"]; 
     31                $$wpvar = $_GET["$wpvar"]; 
    3232            } 
    3333        } else { 
    34             $$wpvar = $HTTP_POST_VARS["$wpvar"]; 
     34            $$wpvar = $_POST["$wpvar"]; 
    3535        } 
    3636    } 
     
    3838 
    3939$comment = array(); 
    40 if (isset($HTTP_POST_VARS["comment"])) { 
    41     foreach ($HTTP_POST_VARS["comment"] as $k => $v) { 
     40if (isset($_POST["comment"])) { 
     41    foreach ($_POST["comment"] as $k => $v) { 
    4242        $comment[intval($k)] = $v; 
    4343    } 
  • trunk/wp-admin/options-discussion.php

    r1100 r1108  
    1515 
    1616if (!get_magic_quotes_gpc()) { 
    17     $HTTP_GET_VARS    = add_magic_quotes($HTTP_GET_VARS); 
    18     $HTTP_POST_VARS   = add_magic_quotes($HTTP_POST_VARS); 
    19     $HTTP_COOKIE_VARS = add_magic_quotes($HTTP_COOKIE_VARS); 
     17    $_GET    = add_magic_quotes($_GET); 
     18    $_POST   = add_magic_quotes($_POST); 
     19    $_COOKIE = add_magic_quotes($_COOKIE); 
    2020} 
    2121 
     
    2424    $wpvar = $wpvarstoreset[$i]; 
    2525    if (!isset($$wpvar)) { 
    26         if (empty($HTTP_POST_VARS["$wpvar"])) { 
    27             if (empty($HTTP_GET_VARS["$wpvar"])) { 
     26        if (empty($_POST["$wpvar"])) { 
     27            if (empty($_GET["$wpvar"])) { 
    2828                $$wpvar = ''; 
    2929            } else { 
    30                 $$wpvar = $HTTP_GET_VARS["$wpvar"]; 
     30                $$wpvar = $_GET["$wpvar"]; 
    3131            } 
    3232        } else { 
    33             $$wpvar = $HTTP_POST_VARS["$wpvar"]; 
     33            $$wpvar = $_POST["$wpvar"]; 
    3434        } 
    3535    } 
  • trunk/wp-admin/options-general.php

    r1074 r1108  
    1414 
    1515if (!get_magic_quotes_gpc()) { 
    16     $HTTP_GET_VARS    = add_magic_quotes($HTTP_GET_VARS); 
    17     $HTTP_POST_VARS   = add_magic_quotes($HTTP_POST_VARS); 
    18     $HTTP_COOKIE_VARS = add_magic_quotes($HTTP_COOKIE_VARS); 
     16    $_GET    = add_magic_quotes($_GET); 
     17    $_POST   = add_magic_quotes($_POST); 
     18    $_COOKIE = add_magic_quotes($_COOKIE); 
    1919} 
    2020 
     
    2323    $wpvar = $wpvarstoreset[$i]; 
    2424    if (!isset($$wpvar)) { 
    25         if (empty($HTTP_POST_VARS["$wpvar"])) { 
    26             if (empty($HTTP_GET_VARS["$wpvar"])) { 
     25        if (empty($_POST["$wpvar"])) { 
     26            if (empty($_GET["$wpvar"])) { 
    2727                $$wpvar = ''; 
    2828            } else { 
    29                 $$wpvar = $HTTP_GET_VARS["$wpvar"]; 
     29                $$wpvar = $_GET["$wpvar"]; 
    3030            } 
    3131        } else { 
    32             $$wpvar = $HTTP_POST_VARS["$wpvar"]; 
     32            $$wpvar = $_POST["$wpvar"]; 
    3333        } 
    3434    } 
  • trunk/wp-admin/options-misc.php

    r1100 r1108  
    1515 
    1616if (!get_magic_quotes_gpc()) { 
    17     $HTTP_GET_VARS    = add_magic_quotes($HTTP_GET_VARS); 
    18     $HTTP_POST_VARS   = add_magic_quotes($HTTP_POST_VARS); 
    19     $HTTP_COOKIE_VARS = add_magic_quotes($HTTP_COOKIE_VARS); 
     17    $_GET    = add_magic_quotes($_GET); 
     18    $_POST   = add_magic_quotes($_POST); 
     19    $_COOKIE = add_magic_quotes($_COOKIE); 
    2020} 
    2121 
     
    2424    $wpvar = $wpvarstoreset[$i]; 
    2525    if (!isset($$wpvar)) { 
    26         if (empty($HTTP_POST_VARS["$wpvar"])) { 
    27             if (empty($HTTP_GET_VARS["$wpvar"])) { 
     26        if (empty($_POST["$wpvar"])) { 
     27            if (empty($_GET["$wpvar"])) { 
    2828                $$wpvar = ''; 
    2929            } else { 
    30                 $$wpvar = $HTTP_GET_VARS["$wpvar"]; 
     30                $$wpvar = $_GET["$wpvar"]; 
    3131            } 
    3232        } else { 
    33             $$wpvar = $HTTP_POST_VARS["$wpvar"]; 
     33            $$wpvar = $_POST["$wpvar"]; 
    3434        } 
    3535    } 
  • trunk/wp-admin/options-permalink.php

    r1100 r1108  
    1515 
    1616if (!get_magic_quotes_gpc()) { 
    17     $HTTP_GET_VARS    = add_magic_quotes($HTTP_GET_VARS); 
    18     $HTTP_POST_VARS   = add_magic_quotes($HTTP_POST_VARS); 
    19     $HTTP_COOKIE_VARS = add_magic_quotes($HTTP_COOKIE_VARS); 
     17    $_GET    = add_magic_quotes($_GET); 
     18    $_POST   = add_magic_quotes($_POST); 
     19    $_COOKIE = add_magic_quotes($_COOKIE); 
    2020} 
    2121 
     
    2424    $wpvar = $wpvarstoreset[$i]; 
    2525    if (!isset($$wpvar)) { 
    26         if (empty($HTTP_POST_VARS["$wpvar"])) { 
    27             if (empty($HTTP_GET_VARS["$wpvar"])) { 
     26        if (empty($_POST["$wpvar"])) { 
     27            if (empty($_GET["$wpvar"])) { 
    2828                $$wpvar = ''; 
    2929            } else { 
    30                 $$wpvar = $HTTP_GET_VARS["$wpvar"]; 
     30                $$wpvar = $_GET["$wpvar"]; 
    3131            } 
    3232        } else { 
    33             $$wpvar = $HTTP_POST_VARS["$wpvar"]; 
     33            $$wpvar = $_POST["$wpvar"]; 
    3434        } 
    3535    } 
     
    3838require_once('optionhandler.php'); 
    3939 
    40 if ($HTTP_POST_VARS['Submit'] == 'Update') { 
    41     update_option('permalink_structure', $HTTP_POST_VARS['permalink_structure']); 
    42     $permalink_structure = $HTTP_POST_VARS['permalink_structure']; 
     40if ($_POST['Submit'] == 'Update') { 
     41    update_option('permalink_structure', $_POST['permalink_structure']); 
     42    $permalink_structure = $_POST['permalink_structure']; 
    4343} else { 
    4444    $permalink_structure = get_settings('permalink_structure'); 
  • trunk/wp-admin/options-reading.php

    r1100 r1108  
    1515 
    1616if (!get_magic_quotes_gpc()) { 
    17     $HTTP_GET_VARS    = add_magic_quotes($HTTP_GET_VARS); 
    18     $HTTP_POST_VARS   = add_magic_quotes($HTTP_POST_VARS); 
    19     $HTTP_COOKIE_VARS = add_magic_quotes($HTTP_COOKIE_VARS); 
     17    $_GET    = add_magic_quotes($_GET); 
     18    $_POST   = add_magic_quotes($_POST); 
     19    $_COOKIE = add_magic_quotes($_COOKIE); 
    2020} 
    2121 
     
    2424    $wpvar = $wpvarstoreset[$i]; 
    2525    if (!isset($$wpvar)) { 
    26         if (empty($HTTP_POST_VARS["$wpvar"])) { 
    27             if (empty($HTTP_GET_VARS["$wpvar"])) { 
     26        if (empty($_POST["$wpvar"])) { 
     27            if (empty($_GET["$wpvar"])) { 
    2828                $$wpvar = ''; 
    2929            } else { 
    30                 $$wpvar = $HTTP_GET_VARS["$wpvar"]; 
     30                $$wpvar = $_GET["$wpvar"]; 
    3131            } 
    3232        } else { 
    33             $$wpvar = $HTTP_POST_VARS["$wpvar"]; 
     33            $$wpvar = $_POST["$wpvar"]; 
    3434        } 
    3535    } 
  • trunk/wp-admin/options-writing.php

    r1100 r1108  
    1515 
    1616if (!get_magic_quotes_gpc()) { 
    17     $HTTP_GET_VARS    = add_magic_quotes($HTTP_GET_VARS); 
    18     $HTTP_POST_VARS   = add_magic_quotes($HTTP_POST_VARS); 
    19     $HTTP_COOKIE_VARS = add_magic_quotes($HTTP_COOKIE_VARS); 
     17    $_GET    = add_magic_quotes($_GET); 
     18    $_POST   = add_magic_quotes($_POST); 
     19    $_COOKIE = add_magic_quotes($_COOKIE); 
    2020} 
    2121 
     
    2424    $wpvar = $wpvarstoreset[$i]; 
    2525    if (!isset($$wpvar)) { 
    26         if (empty($HTTP_POST_VARS["$wpvar"])) { 
    27             if (empty($HTTP_GET_VARS["$wpvar"])) { 
     26        if (empty($_POST["$wpvar"])) { 
     27            if (empty($_GET["$wpvar"])) { 
    2828                $$wpvar = ''; 
    2929            } else { 
    30                 $$wpvar = $HTTP_GET_VARS["$wpvar"]; 
     30                $$wpvar = $_GET["$wpvar"]; 
    3131            } 
    3232        } else { 
    33             $$wpvar = $HTTP_POST_VARS["$wpvar"]; 
     33            $$wpvar = $_POST["$wpvar"]; 
    3434        } 
    3535    } 
  • trunk/wp-admin/options.php

    r1100 r1108  
    1616 
    1717if (!get_magic_quotes_gpc()) { 
    18     $HTTP_GET_VARS    = add_magic_quotes($HTTP_GET_VARS); 
    19     $HTTP_POST_VARS   = add_magic_quotes($HTTP_POST_VARS); 
    20     $HTTP_COOKIE_VARS = add_magic_quotes($HTTP_COOKIE_VARS); 
     18    $_GET    = add_magic_quotes($_GET); 
     19    $_POST   = add_magic_quotes($_POST); 
     20    $_COOKIE = add_magic_quotes($_COOKIE); 
    2121} 
    2222 
     
    2525    $wpvar = $wpvarstoreset[$i]; 
    2626    if (!isset($$wpvar)) { 
    27         if (empty($HTTP_POST_VARS["$wpvar"])) { 
    28             if (empty($HTTP_GET_VARS["$wpvar"])) { 
     27        if (empty($_POST["$wpvar"])) { 
     28            if (empty($_GET["$wpvar"])) { 
    2929                $$wpvar = ''; 
    3030            } else { 
    31                 $$wpvar = $HTTP_GET_VARS["$wpvar"]; 
     31                $$wpvar = $_GET["$wpvar"]; 
    3232            } 
    3333        } else { 
    34             $$wpvar = $HTTP_POST_VARS["$wpvar"]; 
     34            $$wpvar = $_POST["$wpvar"]; 
    3535        } 
    3636    } 
  • trunk/wp-admin/post.php

    r1106 r1108  
    1616 
    1717if (!get_magic_quotes_gpc()) { 
    18     $HTTP_GET_VARS    = add_magic_quotes($HTTP_GET_VARS); 
    19     $HTTP_POST_VARS   = add_magic_quotes($HTTP_POST_VARS); 
    20     $HTTP_COOKIE_VARS = add_magic_quotes($HTTP_COOKIE_VARS); 
     18    $_GET    = add_magic_quotes($_GET); 
     19    $_POST   = add_magic_quotes($_POST); 
     20    $_COOKIE = add_magic_quotes($_COOKIE); 
    2121} 
    2222 
     
    2626    $wpvar = $wpvarstoreset[$i]; 
    2727    if (!isset($$wpvar)) { 
    28         if (empty($HTTP_POST_VARS["$wpvar"])) { 
    29             if (empty($HTTP_GET_VARS["$wpvar"])) { 
     28        if (empty($_POST["$wpvar"])) { 
     29            if (empty($_GET["$wpvar"])) { 
    3030                $$wpvar = ''; 
    3131            } else { 
    32                 $$wpvar = $HTTP_GET_VARS["$wpvar"]; 
     32                $$wpvar = $_GET["$wpvar"]; 
    3333            } 
    3434        } else { 
    35             $$wpvar = $HTTP_POST_VARS["$wpvar"]; 
     35            $$wpvar = $_POST["$wpvar"]; 
    3636        } 
    3737    } 
     
    5959            require_once('admin-header.php'); 
    6060 
    61             $post_pingback = intval($HTTP_POST_VARS['post_pingback']); 
    62             $content = balanceTags($HTTP_POST_VARS['content']); 
     61            $post_pingback = intval($_POST['post_pingback']); 
     62            $content = balanceTags($_POST['content']); 
    6363            $content = format_to_post($content); 
    64             $excerpt = balanceTags($HTTP_POST_VARS['excerpt']); 
     64            $excerpt = balanceTags($_POST['excerpt']); 
    6565            $excerpt = format_to_post($excerpt); 
    66             $post_title = addslashes($HTTP_POST_VARS['post_title']); 
    67             $post_categories = $HTTP_POST_VARS['post_category']; 
     66            $post_title = addslashes($_POST['post_title']); 
     67            $post_categories = $_POST['post_category']; 
    6868            if(get_settings('use_geo_positions')) { 
    69                 $latstr = $HTTP_POST_VARS['post_latf']; 
    70                 $lonstr = $HTTP_POST_VARS['post_lonf']; 
     69                $latstr = $_POST['post_latf']; 
     70                $lonstr = $_POST['post_lonf']; 
    7171                if((strlen($latstr) > 2) && (strlen($lonstr) > 2 ) ) { 
    72                     $post_latf = floatval($HTTP_POST_VARS['post_latf']); 
    73                     $post_lonf = floatval($HTTP_POST_VARS['post_lonf']); 
     72                    $post_latf = floatval($_POST['post_latf']); 
     73                    $post_lonf = floatval($_POST['post_lonf']); 
    7474                } 
    7575            } 
    76             $post_status = $HTTP_POST_VARS['post_status']; 
     76            $post_status = $_POST['post_status']; 
    7777            if (empty($post_status)) $post_status = get_settings('default_post_status'); 
    78             $comment_status = $HTTP_POST_VARS['comment_status']; 
     78            $comment_status = $_POST['comment_status']; 
    7979            if (empty($comment_status)) $comment_status = get_settings('default_comment_status'); 
    80             $ping_status = $HTTP_POST_VARS['ping_status']; 
     80            $ping_status = $_POST['ping_status']; 
    8181            if (empty($ping_status)) $ping_status = get_settings('default_ping_status'); 
    82             $post_password = addslashes(stripslashes($HTTP_POST_VARS['post_password'])); 
     82            $post_password = addslashes(stripslashes($_POST['post_password'])); 
    8383            $post_name = sanitize_title($post_title); 
    84             $trackback = $HTTP_POST_VARS['trackback_url']; 
     84            $trackback = $_POST['trackback_url']; 
    8585        // Format trackbacks 
    8686        $trackback = preg_replace('|\s+|', '\n', $trackback); 
     
    8989            die (__('Cheatin&#8217; uh?')); 
    9090 
    91         if (($user_level > 4) && (!empty($HTTP_POST_VARS['edit_date']))) { 
    92             $aa = $HTTP_POST_VARS['aa']; 
    93             $mm = $HTTP_POST_VARS['mm']; 
    94             $jj = $HTTP_POST_VARS['jj']; 
    95             $hh = $HTTP_POST_VARS['hh']; 
    96             $mn = $HTTP_POST_VARS['mn']; 
    97             $ss = $HTTP_POST_VARS['ss']; 
     91        if (($user_level > 4) && (!empty($_POST['edit_date']))) { 
     92            $aa = $_POST['aa']; 
     93            $mm = $_POST['mm']; 
     94            $jj = $_POST['jj']; 
     95            $hh = $_POST['hh']; 
     96            $mn = $_POST['mn']; 
     97            $ss = $_POST['ss']; 
    9898            $jj = ($jj > 31) ? 31 : $jj; 
    9999            $hh = ($hh > 23) ? $hh - 24 : $hh; 
     
    107107        } 
    108108 
    109         if (!empty($HTTP_POST_VARS['mode'])) { 
    110         switch($HTTP_POST_VARS['mode']) { 
     109        if (!empty($_POST['mode'])) { 
     110        switch($_POST['mode']) { 
    111111            case 'bookmarklet': 
    112112                $location = 'bookmarklet.php?a=b'; 
     
    124124 
    125125        // What to do based on which button they pressed 
    126         if ('' != $H