aboutsummaryrefslogtreecommitdiffstats
path: root/init.inc.php
blob: 50c9dce919ad98e0ab29618e246ad30c4be44191 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<? 
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)) {
	$filename = $calendar_path."/".$cal_filename.".ics";
}

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