aboutsummaryrefslogtreecommitdiffstats
path: root/init.inc.php
diff options
context:
space:
mode:
authorjwangen <jwangen>2002-09-21 20:43:57 +0000
committerjwangen <jwangen>2002-09-21 20:43:57 +0000
commitf630d8cd1886b541d5a86a4d645bea69c6532777 (patch)
tree3547ad4abc7e238861d09d733d18f8edae4e50da /init.inc.php
parentf151681be71ef6d144812019a643d7886a1a6c24 (diff)
downloadphpicalendar-f630d8cd1886b541d5a86a4d645bea69c6532777.tar.gz
phpicalendar-f630d8cd1886b541d5a86a4d645bea69c6532777.tar.bz2
phpicalendar-f630d8cd1886b541d5a86a4d645bea69c6532777.zip
made modifications to config, ical_parser, init, and list_icals
mostly just to convert "32" to spaces and maybe a few other small things
Diffstat (limited to 'init.inc.php')
-rw-r--r--init.inc.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/init.inc.php b/init.inc.php
index b64b3ff..ed9921a 100644
--- a/init.inc.php
+++ b/init.inc.php
@@ -16,19 +16,20 @@ if ($language == "English") {
include "languages/english.inc.php";
}
+// $cal_displayname is $cal_filename with occurrences of "32" replaced with " "
// $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);
}
+$cal_displayname = str_replace("32", " ", $cal_filename);
+$cal = urlencode($cal_filename);
+
if (!isset($filename)) {
$filename = $calendar_path."/".$cal_filename.".ics";
} \ No newline at end of file

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