diff options
author | Chad Little <clittle@users.sourceforge.net> | 2004-09-02 18:43:32 +0000 |
---|---|---|
committer | Chad Little <clittle@users.sourceforge.net> | 2004-09-02 18:43:32 +0000 |
commit | 88c00c20e642043675459659e7d3266fbc6fb1ec (patch) | |
tree | 4eeedcb25ca1fc88dd5889a6d47d88872820fd58 /functions | |
parent | d06e6031b26322c5a5bca8cdfdbad196e5ebf002 (diff) | |
download | phpicalendar-88c00c20e642043675459659e7d3266fbc6fb1ec.tar.gz phpicalendar-88c00c20e642043675459659e7d3266fbc6fb1ec.tar.bz2 phpicalendar-88c00c20e642043675459659e7d3266fbc6fb1ec.zip |
Updated to $_GET
Diffstat (limited to 'functions')
-rw-r--r-- | functions/init.inc.php | 12 | ||||
-rw-r--r-- | functions/userauth_functions.php | 10 |
2 files changed, 11 insertions, 11 deletions
diff --git a/functions/init.inc.php b/functions/init.inc.php index ad9658b..30b5a83 100644 --- a/functions/init.inc.php +++ b/functions/init.inc.php @@ -35,7 +35,7 @@ if ($cookie_uri == '') { if ($bleed_time == '') $bleed_time = $day_start; // Grab the action (login or logout). -if (isset($HTTP_GET_VARS['action'])) $action = $HTTP_GET_VARS['action']; +if (isset($_GET['action'])) $action = $_GET['action']; else if (isset($_POST['action'])) $action = $_POST['action']; else $action = ''; @@ -58,8 +58,8 @@ if (file_exists(realpath($lang_file))) { } if (!isset($getdate)) { - if (isset($HTTP_GET_VARS['getdate']) && ($HTTP_GET_VARS['getdate'] !== '')) { - $getdate = $HTTP_GET_VARS['getdate']; + if (isset($_GET['getdate']) && ($_GET['getdate'] !== '')) { + $getdate = $_GET['getdate']; } else { $getdate = date('Ymd', strtotime("now + $second_offset seconds")); } @@ -76,8 +76,8 @@ if ($calendar_path == '') { } $is_webcal = FALSE; -if (isset($HTTP_GET_VARS['cal']) && $HTTP_GET_VARS['cal'] != '') { - $cal_filename = urldecode($HTTP_GET_VARS['cal']); +if (isset($_GET['cal']) && $_GET['cal'] != '') { + $cal_filename = urldecode($_GET['cal']); } else { if (isset($default_cal_check)) { if ($default_cal_check != $ALL_CALENDARS_COMBINED) { @@ -115,7 +115,7 @@ if ($is_webcal == TRUE) { $cal_filelist = array(); array_push($cal_filelist,$filename); } else { - exit(error($lang['l_error_remotecal'], $HTTP_GET_VARS['cal'])); + exit(error($lang['l_error_remotecal'], $_GET['cal'])); } } else { $cal_displayname = str_replace('32', ' ', $cal_filename); diff --git a/functions/userauth_functions.php b/functions/userauth_functions.php index ea4ea17..017841e 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, $_POST, $_SERVER; + global $_COOKIE, $_GET, $_POST, $_SERVER; global $login_cookies, $cookie_uri, $locked_map; // Initialize return values. @@ -83,11 +83,11 @@ function user_login() { } // Look for a new username and password. - if (isset($HTTP_GET_VARS['username']) && - isset($HTTP_GET_VARS['password'])) + if (isset($_GET['username']) && + isset($_GET['password'])) { - $username = $HTTP_GET_VARS['username']; - $password = $HTTP_GET_VARS['password']; + $username = $_GET['username']; + $password = $_GET['password']; } else if (isset($_POST['username']) && isset($_POST['password'])) { |