From aa3869c95eddd0bdde4c985771cda50223a34e98 Mon Sep 17 00:00:00 2001 From: Chad Little Date: Thu, 2 Sep 2004 18:39:51 +0000 Subject: Updated to $_COOKIE --- preferences.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'preferences.php') diff --git a/preferences.php b/preferences.php index 0d8badc..253a8d7 100644 --- a/preferences.php +++ b/preferences.php @@ -37,11 +37,11 @@ if ($action == 'setcookie') { } else { setcookie("phpicalendar","$the_cookie",time()+(60*60*24*7*12*10) ,"/","$cookie_uri",0); } - $HTTP_COOKIE_VARS['phpicalendar'] = $the_cookie; + $_COOKIE['phpicalendar'] = $the_cookie; } -if (isset($HTTP_COOKIE_VARS['phpicalendar'])) { - $phpicalendar = unserialize(stripslashes($HTTP_COOKIE_VARS['phpicalendar'])); +if (isset($_COOKIE['phpicalendar'])) { + $phpicalendar = unserialize(stripslashes($_COOKIE['phpicalendar'])); $cookie_language = $phpicalendar['cookie_language']; $cookie_calendar = $phpicalendar['cookie_calendar']; $cookie_view = $phpicalendar['cookie_view']; @@ -53,7 +53,7 @@ if (isset($HTTP_COOKIE_VARS['phpicalendar'])) { } } -if ((!isset($HTTP_COOKIE_VARS['phpicalendar'])) || ($cookie_unset)) { +if ((!isset($_COOKIE['phpicalendar'])) || ($cookie_unset)) { # No cookie set -> use defaults from config file. $cookie_language = ucfirst($language); $cookie_calendar = $default_cal; -- cgit v1.2.3