diff options
author | Chad Little <clittle@users.sourceforge.net> | 2004-09-02 18:41:12 +0000 |
---|---|---|
committer | Chad Little <clittle@users.sourceforge.net> | 2004-09-02 18:41:12 +0000 |
commit | d06e6031b26322c5a5bca8cdfdbad196e5ebf002 (patch) | |
tree | 4edf6d435535ac25375c7e22a66ceebffead7d68 /functions | |
parent | aa3869c95eddd0bdde4c985771cda50223a34e98 (diff) | |
download | phpicalendar-d06e6031b26322c5a5bca8cdfdbad196e5ebf002.tar.gz phpicalendar-d06e6031b26322c5a5bca8cdfdbad196e5ebf002.tar.bz2 phpicalendar-d06e6031b26322c5a5bca8cdfdbad196e5ebf002.zip |
Updated to $_POST
Diffstat (limited to 'functions')
-rw-r--r-- | functions/init.inc.php | 2 | ||||
-rw-r--r-- | functions/userauth_functions.php | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/functions/init.inc.php b/functions/init.inc.php index 7cbfd55..ad9658b 100644 --- a/functions/init.inc.php +++ b/functions/init.inc.php @@ -36,7 +36,7 @@ if ($bleed_time == '') $bleed_time = $day_start; // Grab the action (login or logout). if (isset($HTTP_GET_VARS['action'])) $action = $HTTP_GET_VARS['action']; -else if (isset($HTTP_POST_VARS['action'])) $action = $HTTP_POST_VARS['action']; +else if (isset($_POST['action'])) $action = $_POST['action']; else $action = ''; // Login and/or logout. diff --git a/functions/userauth_functions.php b/functions/userauth_functions.php index 7a408da..ea4ea17 100644 --- a/functions/userauth_functions.php +++ b/functions/userauth_functions.php @@ -43,7 +43,7 @@ function logout_querys() { // if no valid login is found. Returns a boolean invalid_login to // indicate that the login is invalid. function user_login() { - global $_COOKIE, $HTTP_GET_VARS, $HTTP_POST_VARS, $_SERVER; + global $_COOKIE, $HTTP_GET_VARS, $_POST, $_SERVER; global $login_cookies, $cookie_uri, $locked_map; // Initialize return values. @@ -88,11 +88,11 @@ function user_login() { { $username = $HTTP_GET_VARS['username']; $password = $HTTP_GET_VARS['password']; - } else if (isset($HTTP_POST_VARS['username']) && - isset($HTTP_POST_VARS['password'])) + } else if (isset($_POST['username']) && + isset($_POST['password'])) { - $username = $HTTP_POST_VARS['username']; - $password = $HTTP_POST_VARS['password']; + $username = $_POST['username']; + $password = $_POST['password']; } // Check to make sure the username and password is valid. |