diff options
author | jwangen <jwangen> | 2002-09-18 07:00:43 +0000 |
---|---|---|
committer | jwangen <jwangen> | 2002-09-18 07:00:43 +0000 |
commit | 6ce685298140d362f78445aeaffb19c1d9d63435 (patch) | |
tree | a6936bb2c8eb2c32c5fe0c8d2d156e66a4c3b68c /init.inc.php | |
parent | ab055f768fe83a1d375cc3dbdbfd426d1b345bb9 (diff) | |
download | phpicalendar-6ce685298140d362f78445aeaffb19c1d9d63435.tar.gz phpicalendar-6ce685298140d362f78445aeaffb19c1d9d63435.tar.bz2 phpicalendar-6ce685298140d362f78445aeaffb19c1d9d63435.zip |
init now keeps track of $cal and makes sure it always has the correct value
day and week lost their $cal = lines
parser hasn't changed
Diffstat (limited to 'init.inc.php')
-rw-r--r-- | init.inc.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/init.inc.php b/init.inc.php index 09134b0..50c9dce 100644 --- a/init.inc.php +++ b/init.inc.php @@ -4,11 +4,14 @@ include('./config.inc.php'); // $cal_filename should always be the filename of the calendar without .ics if (isset($_GET["cal"])) { $cal_filename = stripslashes(urldecode($_GET["cal"])); + $cal = urlencode($cal_filename); setcookie("cal",$cal_filename); } elseif ($_COOKIE["cal"]) { $cal_filename = stripslashes(urldecode($_COOKIE["cal"])); + $cal = urlencode($cal_filename); } else { $cal_filename = $default_cal; + $cal = urlencode($cal_filename); } if (!isset($filename)) { |