Make WordPress Core


Ignore:
Timestamp:
04/20/2004 10:56:47 PM (20 years ago)
Author:
saxmatt
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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  }
Note: See TracChangeset for help on using the changeset viewer.