blob: a63454bee51499cf2ee145e1ee42c6116760d6a6 (
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
|
<?php
if (!isset($ALL_CALENDARS_COMBINED)) $ALL_CALENDARS_COMBINED = 'all_calendars_combined971';
include "./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");
?>
|