aboutsummaryrefslogtreecommitdiffstats
path: root/index.php
blob: bac4eabdd83a34ca2f856995409527977914eb13 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php

if (!isset($ALL_CALENDARS_COMBINED))  $ALL_CALENDARS_COMBINED = 'all_calendars_combined971';
if (!defined('BASE')) define('BASE', './');
include_once(BASE.'default_config.php');
if (is_file(BASE.'config.inc.php')) include_once(BASE.'config.inc.php');
if (isset($_COOKIE['phpicalendar'])) {
	$phpicalendar 		= unserialize(stripslashes($_COOKIE['phpicalendar']));
	$default_view 		= $phpicalendar['cookie_view'];
}
if ($printview_default == 'yes') {
	$printview = $default_view;
	$default_view = "print.php";
} else {
	$check = array ('day', 'week', 'month', 'year');
	if (in_array($default_view, $check)) {
		$default_view = $default_view . '.php';
	} else {
		die;
	}
}
if(isset($_GET['cpath'])){
	$default_view .= '?cpath='.$_GET['cpath'];
}
header("Location: $default_view");

?>

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