blob: aee10ea37671c64bc216d5d42b2220f0ab4c08bc (
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
28
29
30
|
<?php
if (!isset($ALL_CALENDARS_COMBINED)) $ALL_CALENDARS_COMBINED = 'all_calendars_combined971';
if (is_file("./config.inc.php")){
include "./config.inc.php";
}else{
header ( "Location:./admin/new.php");
exit;
}
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");
?>
|