diff options
author | Chad Little <clittle@users.sourceforge.net> | 2002-11-17 02:32:10 +0000 |
---|---|---|
committer | Chad Little <clittle@users.sourceforge.net> | 2002-11-17 02:32:10 +0000 |
commit | a497e2c7646bd65201184a61a8eab40789c328e8 (patch) | |
tree | 076f5b4bd2c126767965116535d05d194c5fdc9e /functions/init.inc.php | |
parent | 634f3af22feb3be1d325d9f44d83ae9289b0b668 (diff) | |
download | phpicalendar-a497e2c7646bd65201184a61a8eab40789c328e8.tar.gz phpicalendar-a497e2c7646bd65201184a61a8eab40789c328e8.tar.bz2 phpicalendar-a497e2c7646bd65201184a61a8eab40789c328e8.zip |
4 of 5 cookies seem to work on my machine.
Diffstat (limited to 'functions/init.inc.php')
-rw-r--r-- | functions/init.inc.php | 10 |
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); |