diff options
author | Chad Little <clittle@users.sourceforge.net> | 2004-09-02 18:39:51 +0000 |
---|---|---|
committer | Chad Little <clittle@users.sourceforge.net> | 2004-09-02 18:39:51 +0000 |
commit | aa3869c95eddd0bdde4c985771cda50223a34e98 (patch) | |
tree | 0dbdad3d667a9900dd51298152113a2b08e3c2c2 /functions | |
parent | 56ab391e8915b00a1fafa5fefefd0d102eb1757c (diff) | |
download | phpicalendar-aa3869c95eddd0bdde4c985771cda50223a34e98.tar.gz phpicalendar-aa3869c95eddd0bdde4c985771cda50223a34e98.tar.bz2 phpicalendar-aa3869c95eddd0bdde4c985771cda50223a34e98.zip |
Updated to $_COOKIE
Diffstat (limited to 'functions')
-rw-r--r-- | functions/init.inc.php | 4 | ||||
-rw-r--r-- | functions/userauth_functions.php | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/functions/init.inc.php b/functions/init.inc.php index fde7237..7cbfd55 100644 --- a/functions/init.inc.php +++ b/functions/init.inc.php @@ -17,8 +17,8 @@ include_once(BASE.'config.inc.php'); include_once(BASE.'functions/error.php'); include_once(BASE.'functions/calendar_functions.php'); include_once(BASE.'functions/userauth_functions.php'); -if (isset($HTTP_COOKIE_VARS['phpicalendar'])) { - $phpicalendar = unserialize(stripslashes($HTTP_COOKIE_VARS['phpicalendar'])); +if (isset($_COOKIE['phpicalendar'])) { + $phpicalendar = unserialize(stripslashes($_COOKIE['phpicalendar'])); if (isset($phpicalendar['cookie_language'])) $language = $phpicalendar['cookie_language']; if (isset($phpicalendar['cookie_calendar'])) $default_cal_check = $phpicalendar['cookie_calendar']; if (isset($phpicalendar['cookie_view'])) $default_view = $phpicalendar['cookie_view']; diff --git a/functions/userauth_functions.php b/functions/userauth_functions.php index 4fe04fb..7a408da 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 $HTTP_COOKIE_VARS, $HTTP_GET_VARS, $HTTP_POST_VARS, $_SERVER; + global $_COOKIE, $HTTP_GET_VARS, $HTTP_POST_VARS, $_SERVER; global $login_cookies, $cookie_uri, $locked_map; // Initialize return values. @@ -57,9 +57,9 @@ function user_login() { // Look for a login cookie. if ($login_cookies == 'yes' && - isset($HTTP_COOKIE_VARS['phpicalendar_login'])) + isset($_COOKIE['phpicalendar_login'])) { - $login_cookie = unserialize(stripslashes($HTTP_COOKIE_VARS['phpicalendar_login'])); + $login_cookie = unserialize(stripslashes($_COOKIE['phpicalendar_login'])); if (isset($login_cookie['username']) && isset($login_cookie['password'])) { |