aboutsummaryrefslogtreecommitdiffstats
path: root/preferences.php
diff options
context:
space:
mode:
authorChad Little <clittle@users.sourceforge.net>2004-09-02 18:39:51 +0000
committerChad Little <clittle@users.sourceforge.net>2004-09-02 18:39:51 +0000
commitaa3869c95eddd0bdde4c985771cda50223a34e98 (patch)
tree0dbdad3d667a9900dd51298152113a2b08e3c2c2 /preferences.php
parent56ab391e8915b00a1fafa5fefefd0d102eb1757c (diff)
downloadphpicalendar-aa3869c95eddd0bdde4c985771cda50223a34e98.tar.gz
phpicalendar-aa3869c95eddd0bdde4c985771cda50223a34e98.tar.bz2
phpicalendar-aa3869c95eddd0bdde4c985771cda50223a34e98.zip
Updated to $_COOKIE
Diffstat (limited to 'preferences.php')
-rw-r--r--preferences.php8
1 files changed, 4 insertions, 4 deletions
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;

© 2014-2024 Faster IT GmbH | imprint | privacy policy