aboutsummaryrefslogtreecommitdiffstats
path: root/functions
diff options
context:
space:
mode:
authorChad Little <clittle@users.sourceforge.net>2002-11-17 02:32:10 +0000
committerChad Little <clittle@users.sourceforge.net>2002-11-17 02:32:10 +0000
commita497e2c7646bd65201184a61a8eab40789c328e8 (patch)
tree076f5b4bd2c126767965116535d05d194c5fdc9e /functions
parent634f3af22feb3be1d325d9f44d83ae9289b0b668 (diff)
downloadphpicalendar-a497e2c7646bd65201184a61a8eab40789c328e8.tar.gz
phpicalendar-a497e2c7646bd65201184a61a8eab40789c328e8.tar.bz2
phpicalendar-a497e2c7646bd65201184a61a8eab40789c328e8.zip
4 of 5 cookies seem to work on my machine.
Diffstat (limited to 'functions')
-rw-r--r--functions/init.inc.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/functions/init.inc.php b/functions/init.inc.php
index 4e19477..5f2c0a8 100644
--- a/functions/init.inc.php
+++ b/functions/init.inc.php
@@ -11,6 +11,16 @@
if (!defined('BASE')) define('BASE', './');
include(BASE.'config.inc.php');
include(BASE.'functions/error.php');
+if ($HTTP_COOKIE_VARS['phpicalendar']) {
+ $phpicalendar = unserialize(stripslashes($HTTP_COOKIE_VARS['phpicalendar']));
+ $language = $phpicalendar['cookie_language'];
+ $default_cal = $phpicalendar['cookie_calendar'];
+ $default_view = $phpicalendar['cookie_view'];
+ $style_sheet = $phpicalendar['cookie_style'];
+ // Need to fix this below
+ #$week_start_day = $phpicalendar['cookie_startday'];
+}
+
// language support
$language = strtolower($language);

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