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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
<?php
define('BASE', './');
require_once(BASE.'functions/ical_parser.php');
require_once(BASE.'functions/template.php');
$current_view = 'year';
ereg ("([0-9]{4})([0-9]{2})([0-9]{2})", $getdate, $day_array2);
$this_day = $day_array2[3];
$this_month = $day_array2[2];
$this_year = $day_array2[1];
$next_year = strtotime ("+1 year", strtotime($getdate));
$next_year = date ("Ymd", $next_year);
$prev_year = strtotime ("-1 year", strtotime($getdate));
$prev_year = date ("Ymd", $prev_year);
$page = new Page(BASE.'templates/'.$template.'/year.tpl');
$page->replace_tags(array(
'header' => BASE.'templates/'.$template.'/header.tpl',
'footer' => BASE.'templates/'.$template.'/footer.tpl',
'template' => $template,
'default_path' => '',
'cal' => $cal,
'getdate' => $getdate,
'calendar_name' => $calendar_name,
'display_date' => $this_year,
'default_path' => '',
'rss_powered' => $rss_powered,
'rss_available' => '',
'rss_valid' => '',
'todo_available' => '',
'todo_js' => '',
'event_js' => '',
'this_year' => $this_year,
'next_year' => $next_year,
'prev_year' => $prev_year,
'l_day' => $lang['l_day'],
'l_week' => $lang['l_week'],
'l_month' => $lang['l_month'],
'l_year' => $lang['l_year'],
'l_powered_by' => $lang['l_powered_by'],
'l_this_site_is' => $lang['l_this_site_is']
));
$page->output();
?>
|