aboutsummaryrefslogtreecommitdiffstats
path: root/index.php
blob: 05edd887e3130f51ff1e04144c2d4ebb75964f37 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php
if (!defined('BASE')) define('BASE', './');
include_once(BASE.'functions/init.inc.php');

if ($phpiCal_config->printview_default == 'yes') {
	$theview ="print.php";
} else {
	$check = array ('day', 'week', 'month', 'year');
	if (in_array($phpiCal_config->default_view, $check)) {
		$theview = $phpiCal_config->default_view . '.php';
	} else {
		die('illegal view');
	}
}
if(isset($_GET['cpath'])){
	$theview .= '?cpath='.$_GET['cpath'];
}
header("Location: $theview");

?>

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