Make WordPress Core

Changeset 1108 for trunk/wp-register.php


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-register.php

    r957 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    }
     
    4747    }
    4848
    49     $user_login = $HTTP_POST_VARS['user_login'];
    50     $pass1 = $HTTP_POST_VARS['pass1'];
    51     $pass2 = $HTTP_POST_VARS['pass2'];
    52     $user_email = $HTTP_POST_VARS['user_email'];
     49    $user_login = $_POST['user_login'];
     50    $pass1 = $_POST['pass1'];
     51    $pass2 = $_POST['pass2'];
     52    $user_email = $_POST['user_email'];
    5353       
    5454    /* checking login has been typed */
     
    8181    }
    8282
    83     $user_ip = $HTTP_SERVER_VARS['REMOTE_ADDR'] ;
    84     $user_domain = gethostbyaddr($HTTP_SERVER_VARS['REMOTE_ADDR'] );
    85     $user_browser = $HTTP_SERVER_VARS['HTTP_USER_AGENT'];
     83    $user_ip = $_SERVER['REMOTE_ADDR'] ;
     84    $user_domain = gethostbyaddr($_SERVER['REMOTE_ADDR'] );
     85    $user_browser = $_SERVER['HTTP_USER_AGENT'];
    8686
    8787    $user_login = addslashes($user_login);
Note: See TracChangeset for help on using the changeset viewer.