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/users.php

    r1070 r1108  
    77    $wpvar = $wpvarstoreset[$i];
    88    if (!isset($$wpvar)) {
    9         if (empty($HTTP_POST_VARS["$wpvar"])) {
    10             if (empty($HTTP_GET_VARS["$wpvar"])) {
     9        if (empty($_POST["$wpvar"])) {
     10            if (empty($_GET["$wpvar"])) {
    1111                $$wpvar = '';
    1212            } else {
    13                 $$wpvar = $HTTP_GET_VARS["$wpvar"];
     13                $$wpvar = $_GET["$wpvar"];
    1414            }
    1515        } else {
    16             $$wpvar = $HTTP_POST_VARS["$wpvar"];
     16            $$wpvar = $_POST["$wpvar"];
    1717        }
    1818    }
     
    2727    }
    2828
    29     $user_login = $HTTP_POST_VARS['user_login'];
    30     $pass1 = $HTTP_POST_VARS['pass1'];
    31     $pass2 = $HTTP_POST_VARS['pass2'];
    32     $user_email = $HTTP_POST_VARS['email'];
    33     $user_firstname = $HTTP_POST_VARS['firstname'];
    34     $user_lastname = $HTTP_POST_VARS['lastname'];
     29    $user_login = $_POST['user_login'];
     30    $pass1 = $_POST['pass1'];
     31    $pass2 = $_POST['pass2'];
     32    $user_email = $_POST['email'];
     33    $user_firstname = $_POST['firstname'];
     34    $user_lastname = $_POST['lastname'];
    3535       
    3636    /* checking login has been typed */
     
    9999    require_once('admin-header.php');
    100100
    101     if (empty($HTTP_GET_VARS['prom'])) {
     101    if (empty($_GET['prom'])) {
    102102        header('Location: users.php');
    103103    }
    104104
    105     $id = $HTTP_GET_VARS['id'];
    106     $prom = $HTTP_GET_VARS['prom'];
     105    $id = $_GET['id'];
     106    $prom = $_GET['prom'];
    107107
    108108    $user_data = get_userdata($id);
     
    131131    require_once('admin-header.php');
    132132
    133     $id = intval($HTTP_GET_VARS['id']);
     133    $id = intval($_GET['id']);
    134134
    135135    if (!$id) {
Note: See TracChangeset for help on using the changeset viewer.