aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJim Hu <jimhu@users.sourceforge.net>2006-03-21 09:52:29 +0000
committerJim Hu <jimhu@users.sourceforge.net>2006-03-21 09:52:29 +0000
commita430b6f5528f4698cefb45edde90bf869f05eeda (patch)
tree5b21f68143a9f32ad05c98c64685b49994febe2e
parent3280427d50b95564c2a21396b5d3bb603795d014 (diff)
downloadphpicalendar-a430b6f5528f4698cefb45edde90bf869f05eeda.tar.gz
phpicalendar-a430b6f5528f4698cefb45edde90bf869f05eeda.tar.bz2
phpicalendar-a430b6f5528f4698cefb45edde90bf869f05eeda.zip
add year printview, fix misc bugs
-rw-r--r--README7
-rw-r--r--functions/ical_parser.php2
-rw-r--r--functions/init.inc.php4
-rw-r--r--functions/template.php3
-rw-r--r--languages/afrikaans.inc.php1
-rw-r--r--languages/brazilian.inc.php1
-rw-r--r--languages/catalan.inc.php1
-rw-r--r--languages/czech.inc.php1
-rw-r--r--languages/danish.inc.php1
-rw-r--r--languages/english.inc.php2
-rw-r--r--languages/esperanto.inc.php1
-rw-r--r--languages/french.inc.php1
-rw-r--r--languages/german.inc.php1
-rw-r--r--languages/italian.inc.php1
-rw-r--r--languages/japanese.inc.php1
-rw-r--r--languages/korean.inc.php1
-rw-r--r--languages/lithuanian.inc.php1
-rw-r--r--languages/norwegian.inc.php1
-rw-r--r--languages/polish.inc.php1
-rw-r--r--languages/portuguese.inc.php1
-rw-r--r--languages/spanish.inc.php1
-rw-r--r--languages/swedish.inc.php1
-rw-r--r--languages/traditional_chinese.inc.php1
-rw-r--r--print.php22
-rw-r--r--rss/rss.php47
-rw-r--r--templates/default/footer.tpl2
-rw-r--r--templates/default/print.tpl1
-rw-r--r--templates/default/year.tpl4
-rw-r--r--year.php67
29 files changed, 139 insertions, 40 deletions
diff --git a/README b/README
index eaeb280..449deb1 100644
--- a/README
+++ b/README
@@ -82,13 +82,18 @@ COPYING for more information about our license.
Changes:
--------
cvs
+2.22rc1
allow image tags in events
use real calendar names instead of filenames
- -bug fixes
+ Year printview
+ Added sidebar to year view
+ -bug fixes from 2.21
Suppress lots of warnings and notices
all combined selection of webcals
passing of webcals in calendar links
More items controlled by language files
+ Problem with webcals with encoded spaces in URL
+ Fixes related to various recurring event combinations
2.21
-patched security hole
-bug fixes from 2.2
diff --git a/functions/ical_parser.php b/functions/ical_parser.php
index e24b953..fe8ca33 100644
--- a/functions/ical_parser.php
+++ b/functions/ical_parser.php
@@ -423,7 +423,7 @@ foreach ($cal_filelist as $cal_key=>$filename) {
$start_date_time = strtotime($start_date);
$this_month_start_time = strtotime($this_year.$this_month.'01');
- if ($current_view == 'year' || ($save_parsed_cals == 'yes' && !$is_webcal)) {
+ if ($current_view == 'year' || ($save_parsed_cals == 'yes' && !$is_webcal)|| $current_view == 'print' && $printview == 'year') {
$start_range_time = strtotime($this_year.'-01-01 -2 weeks');
$end_range_time = strtotime($this_year.'-12-31 +2 weeks');
} else {
diff --git a/functions/init.inc.php b/functions/init.inc.php
index d22ba78..7f55713 100644
--- a/functions/init.inc.php
+++ b/functions/init.inc.php
@@ -134,6 +134,8 @@ $local_cals = array();
foreach ($cal_filenames as $cal_filename) {
// If the calendar identifier begins with a web protocol, this is a web
// calendar.
+ $cal_filename = urldecode($cal_filename); #need to decode for substr statements to identify webcals
+ $cal_filename = str_replace(' ','%20', $cal_filename); #need to reencode blank spaces for matching with $list_webcals
if (substr($cal_filename, 0, 7) == 'http://' ||
substr($cal_filename, 0, 8) == 'https://' ||
substr($cal_filename, 0, 9) == 'webcal://')
@@ -147,7 +149,7 @@ foreach ($cal_filenames as $cal_filename) {
if (in_array($cal_filename, $blacklisted_cals)) {
exit(error($lang['l_error_restrictedcal'], $cal_filename));
}
- $local_cals[] = str_replace(".ics", '', basename($cal_filename));
+ $local_cals[] = urldecode(str_replace(".ics", '', basename($cal_filename)));
}
}
diff --git a/functions/template.php b/functions/template.php
index af93258..32e0b2d 100644
--- a/functions/template.php
+++ b/functions/template.php
@@ -61,10 +61,11 @@ class Page {
$loop_event = trim($match1[1]);
$loop_day = trim($match3[1]);
$parse_month = date ("Ym", strtotime($getdate));
+ $parse_year = date ("Y", strtotime($getdate));
foreach($master_array as $key => $val) {
preg_match ('/([0-9]{6})([0-9]{2})/', $key, $regs);
- if ((($regs[1] == $parse_month) && ($printview == 'month')) || (($key == $getdate) && ($printview == 'day')) || ((($key >= $week_start) && ($key <= $week_end)) && ($printview == 'week'))) {
+ if ((($regs[1] == $parse_month) && ($printview == 'month')) || (($key == $getdate) && ($printview == 'day')) || ((($key >= $week_start) && ($key <= $week_end)) && ($printview == 'week')) || ((substr($regs[1],0,4) == $parse_year) && ($printview == 'year'))) {
$events_week++;
$dayofmonth = strtotime ($key);
$dayofmonth = localizeDate ($dateFormat_day, $dayofmonth);
diff --git a/languages/afrikaans.inc.php b/languages/afrikaans.inc.php
index b0e4a3e..d04a248 100644
--- a/languages/afrikaans.inc.php
+++ b/languages/afrikaans.inc.php
@@ -180,6 +180,7 @@ $dateFormat_week_list = '%a, %e %b';
$dateFormat_week_jump = '%e %b';
$dateFormat_month = '%B %Y';
$dateFormat_month_list = '%A, %e %B';
+$dateFormat_year = '%Y';
/*
Notes about dateFormat_*
diff --git a/languages/brazilian.inc.php b/languages/brazilian.inc.php
index 25e1137..d9292ea 100644
--- a/languages/brazilian.inc.php
+++ b/languages/brazilian.inc.php
@@ -175,6 +175,7 @@ $dateFormat_week_list = '%a, %e %b';
$dateFormat_week_jump = '%e %b';
$dateFormat_month = '%B %Y';
$dateFormat_month_list = '%A, %e %B';
+$dateFormat_year = '%Y';
/*
Notes about dateFormat_*
diff --git a/languages/catalan.inc.php b/languages/catalan.inc.php
index 8941363..fc2ed2e 100644
--- a/languages/catalan.inc.php
+++ b/languages/catalan.inc.php
@@ -175,6 +175,7 @@ $dateFormat_week_list = '%a, %e de %b';
$dateFormat_week_jump = '%e de %b';
$dateFormat_month = '%B de %Y';
$dateFormat_month_list = '%A, %e de %B';
+$dateFormat_year = '%Y';
/*
Notes about dateFormat_*
diff --git a/languages/czech.inc.php b/languages/czech.inc.php
index 1e136b9..ff3c9e1 100644
--- a/languages/czech.inc.php
+++ b/languages/czech.inc.php
@@ -174,6 +174,7 @@ $dateFormat_week_list = '%a, %e. %b';
$dateFormat_week_jump = '%e. %B';// new since last translation
$dateFormat_month = '%B %Y';
$dateFormat_month_list = '%A, %e. %B';
+$dateFormat_year = '%Y';
/*
Notes about $dateFormat_*
diff --git a/languages/danish.inc.php b/languages/danish.inc.php
index 973ce75..4503f3c 100644
--- a/languages/danish.inc.php
+++ b/languages/danish.inc.php
@@ -165,6 +165,7 @@ $dateFormat_week_list = '%a, %e %b';
$dateFormat_week_jump = '%e %b';
$dateFormat_month = '%B %Y';
$dateFormat_month_list = '%A, %e %B';
+$dateFormat_year = '%Y';
/*
Notes about dateFormat_*
diff --git a/languages/english.inc.php b/languages/english.inc.php
index dd3a8b8..c3fb741 100644
--- a/languages/english.inc.php
+++ b/languages/english.inc.php
@@ -176,6 +176,8 @@ $dateFormat_week_list = '%a, %b %e';
$dateFormat_week_jump = '%b %e';
$dateFormat_month = '%B %Y';
$dateFormat_month_list = '%A, %B %e';
+$dateFormat_year = '%Y';
+
/*
Notes about dateFormat_*
diff --git a/languages/esperanto.inc.php b/languages/esperanto.inc.php
index c7e0ad8..407b6c8 100644
--- a/languages/esperanto.inc.php
+++ b/languages/esperanto.inc.php
@@ -167,6 +167,7 @@ $dateFormat_week_list = '%a, %e %b';
$dateFormat_week_jump = '%e %b';
$dateFormat_month = '%B %Y';
$dateFormat_month_list = '%A, %B %e';
+$dateFormat_year = '%Y';
/*
Notes about dateFormat_*
diff --git a/languages/french.inc.php b/languages/french.inc.php
index 59d8bce..7a572ce 100644
--- a/languages/french.inc.php
+++ b/languages/french.inc.php
@@ -178,6 +178,7 @@ $dateFormat_week_list = '%a %e %b';
$dateFormat_week_jump = '%e %b';
$dateFormat_month = '%B %Y';
$dateFormat_month_list = '%A %e %B';
+$dateFormat_year = '%Y';
/*
Notes about dateFormat_*
diff --git a/languages/german.inc.php b/languages/german.inc.php
index de3e7ed..0522f18 100644
--- a/languages/german.inc.php
+++ b/languages/german.inc.php
@@ -178,6 +178,7 @@ $dateFormat_week_list = '%a, %e. %b';
$dateFormat_week_jump = ' %e. %b';
$dateFormat_month = '%B %Y';
$dateFormat_month_list = '%A, %e. %B';
+$dateFormat_year = '%Y';
/*
Notes about dateFormat_*
diff --git a/languages/italian.inc.php b/languages/italian.inc.php
index afe6717..6ef78c3 100644
--- a/languages/italian.inc.php
+++ b/languages/italian.inc.php
@@ -178,6 +178,7 @@ $dateFormat_week_list = '%a, %e %b';
$dateFormat_week_jump = '%e %b';
$dateFormat_month = '%B %Y';
$dateFormat_month_list = '%A, %e %B';
+$dateFormat_year = '%Y';
/*
Notes about dateFormat_*
diff --git a/languages/japanese.inc.php b/languages/japanese.inc.php
index 42f120f..9155cf4 100644
--- a/languages/japanese.inc.php
+++ b/languages/japanese.inc.php
@@ -177,6 +177,7 @@ $dateFormat_week_list = '%b%e日(%a)';
$dateFormat_week_jump = '%b%e日';
$dateFormat_month = '%Y年%B';
$dateFormat_month_list = '%B%e日 %A';
+$dateFormat_year = '%Y';
/*
Notes about dateFormat_*
diff --git a/languages/korean.inc.php b/languages/korean.inc.php
index fd7b2cf..b0e0a2f 100644
--- a/languages/korean.inc.php
+++ b/languages/korean.inc.php
@@ -163,6 +163,7 @@ $dateFormat_week_list = '%b %e일, %a';
$dateFormat_week_jump = '%b %e일';
$dateFormat_month = '%Y년 %B';
$dateFormat_month_list = '%B %e일, %A';
+$dateFormat_year = '%Y';
/*
Notes about dateFormat_*
diff --git a/languages/lithuanian.inc.php b/languages/lithuanian.inc.php
index adaebb8..6101ecb 100644
--- a/languages/lithuanian.inc.php
+++ b/languages/lithuanian.inc.php
@@ -176,6 +176,7 @@ $dateFormat_week_list = '%b %e d., %a';
$dateFormat_week_jump = '%b %e d.';
$dateFormat_month = '%Y m. %b mėn.';
$dateFormat_month_list = '%A, %B %e d.';
+$dateFormat_year = '%Y';
/*
Notes about dateFormat_*
diff --git a/languages/norwegian.inc.php b/languages/norwegian.inc.php
index 47fc561..8c0e113 100644
--- a/languages/norwegian.inc.php
+++ b/languages/norwegian.inc.php
@@ -177,6 +177,7 @@ $dateFormat_week_list = '%a %e. %b';
$dateFormat_week_jump = '%b %e';
$dateFormat_month = '%B %Y';
$dateFormat_month_list = '%A %e. %B';
+$dateFormat_year = '%Y';
/*
Notes about dateFormat_*
diff --git a/languages/polish.inc.php b/languages/polish.inc.php
index e5eb9a4..48507bc 100644
--- a/languages/polish.inc.php
+++ b/languages/polish.inc.php
@@ -163,6 +163,7 @@ $dateFormat_week_list = '%a, %e %b';
$dateFormat_week_jump = '%e %B';// new since last translation
$dateFormat_month = '%B %Y';
$dateFormat_month_list = '%A, %e %B';
+$dateFormat_year = '%Y';
/*
Notes about $dateFormat_*
diff --git a/languages/portuguese.inc.php b/languages/portuguese.inc.php
index c75e38a..f4dbd60 100644
--- a/languages/portuguese.inc.php
+++ b/languages/portuguese.inc.php
@@ -175,6 +175,7 @@ $dateFormat_week_list = '%a, %e %b';
$dateFormat_week_jump = '%e %b';
$dateFormat_month = '%B %Y';
$dateFormat_month_list = '%A, %e %B';
+$dateFormat_year = '%Y';
/*
Notes about dateFormat_*
diff --git a/languages/spanish.inc.php b/languages/spanish.inc.php
index 51ba938..6d8a239 100644
--- a/languages/spanish.inc.php
+++ b/languages/spanish.inc.php
@@ -175,6 +175,7 @@ $dateFormat_week_list = '%a, %e de %b';
$dateFormat_week_jump = '%e de %b';
$dateFormat_month = '%B de %Y';
$dateFormat_month_list = '%A, %e de %B';
+$dateFormat_year = '%Y';
/*
Notes about dateFormat_*
diff --git a/languages/swedish.inc.php b/languages/swedish.inc.php
index 2c8b33c..674cc04 100644
--- a/languages/swedish.inc.php
+++ b/languages/swedish.inc.php
@@ -176,6 +176,7 @@ $dateFormat_week_list = '%a, %e %b';
$dateFormat_week_jump = '%e %b';
$dateFormat_month = '%B %Y';
$dateFormat_month_list = '%A, %B %e';
+$dateFormat_year = '%Y';
/*
Notes about dateFormat_*
diff --git a/languages/traditional_chinese.inc.php b/languages/traditional_chinese.inc.php
index 6923dc0..2c5a1d0 100644
--- a/languages/traditional_chinese.inc.php
+++ b/languages/traditional_chinese.inc.php
@@ -165,6 +165,7 @@ $dateFormat_week_list = '%a, %b%e日';
$dateFormat_week_jump = '%b %e 日';
$dateFormat_month = '%Y 年 %B';
$dateFormat_month_list = '%A, %B %e 日';
+$dateFormat_year = '%Y';
/*
Notes about dateFormat_*
diff --git a/print.php b/print.php
index 34a9c92..cf09828 100644
--- a/print.php
+++ b/print.php
@@ -1,18 +1,17 @@
<?php
define('BASE', './');
-require_once(BASE.'functions/ical_parser.php');
-require_once(BASE.'functions/list_functions.php');
-require_once(BASE.'functions/template.php');
-header("Content-Type: text/html; charset=$charset");
-
+require_once(BASE.'functions/date_functions.php');
+require_once(BASE.'functions/init.inc.php');
+$current_view ='print';
$start_week_time = strtotime(dateOfWeek($getdate, $week_start_day));
$end_week_time = $start_week_time + (6 * 25 * 60 * 60);
$parse_month = date ("Ym", strtotime($getdate));
$cal_displayname = str_replace("32", " ", $cal);
$events_week = 0;
$unix_time = strtotime($getdate);
-if (!$printview) $printview = $_GET['printview'];
+$printview = 'month';
+if (isset($_GET['printview'])) $printview = $_GET['printview'];
if ($printview == 'day') {
$display_date = localizeDate ($dateFormat_day, strtotime($getdate));
@@ -34,7 +33,18 @@ if ($printview == 'day') {
$prev = date("Ymd", strtotime("-1 month", $unix_time));
$week_start = '';
$week_end = '';
+} elseif ($printview == 'year') {
+ $display_date = localizeDate ($dateFormat_year, strtotime($getdate));
+ $next = date("Ymd", strtotime("+1 year", $unix_time));
+ $prev = date("Ymd", strtotime("-1 year", $unix_time));
+ $week_start = '';
+ $week_end = '';
}
+require_once(BASE.'functions/ical_parser.php');
+require_once(BASE.'functions/list_functions.php');
+require_once(BASE.'functions/template.php');
+header("Content-Type: text/html; charset=$charset");
+
$page = new Page(BASE.'templates/'.$template.'/print.tpl');
diff --git a/rss/rss.php b/rss/rss.php
index 70c4413..f72d0ca 100644
--- a/rss/rss.php
+++ b/rss/rss.php
@@ -15,6 +15,9 @@
*********************************************************************************/
define('BASE', '../');
include(BASE.'functions/init.inc.php');
+if ($enable_rss != 'yes') {
+ die ("RSS feeds are not enabled on this site.");
+}
include_once(BASE.'functions/date_functions.php');
@@ -83,36 +86,19 @@ switch ($rssview){
#need to give ical_parser the most distant date to correctly set up master_array.
$getdate = $todate;
#echo "from:$fromdate to:$todate";
-include(BASE.'functions/ical_parser.php');
-if ($enable_rss != 'yes') {
- die ("RSS feeds are not enabled on this site.");
-}
-
-//Set calendar or calendar directory name for feed
-//Note that this depends on other modifications I've made to
-//allow phpicalendar to use calendar subdirectories - see bbs
-$cal_displayname = urldecode($cal);
-if ($cal == $ALL_CALENDARS_COMBINED) {
- $temp = explode("/",$calendar_path);
- $cal_displayname = str_replace("32"," ",ucfirst(array_pop($temp)));
-}
+#Note that ical_parser supplies cal_displayname.
+include(BASE.'functions/ical_parser.php');
$events_count = 0;
// calculate a value for Last Modified and ETag
-$filemod = time(); #default to now in case filemtime can't find the mod date
-$cal = str_replace("+"," ",$cal);
-$calendar_path = str_replace("+"," ",$calendar_path);
-$filemod = time(); #default to now in case filemtime can't find the mod date
-$cal = str_replace("+"," ",$cal);
-$calendar_path = str_replace("+"," ",$calendar_path);
-if ($cal == $ALL_CALENDARS_COMBINED) {
- $filemod = filemtime("$calendar_path");
-}else{
- if (is_file("$calendar_path/$cal.ics")){
- $filemod = filemtime("$calendar_path/$cal.ics");
-}
+$cal = implode(",",$cals);
+
+//get filemtime from master array
+$filemod = 0; #default to start of unix era, overwrite with most recent mtime from master array
+foreach ($master_array['-4'] as $calinfo){
+ if ($calinfo['mtime'] > $filemod) $filemod = $calinfo['mtime'];
}
$filemodtime = date("r", $filemod);
@@ -137,7 +123,13 @@ $rss .= '<channel>'."\n";
$rss .= '<title>'.$cal_displayname;
if ($theview !=""){$rss .= ' - '.$theview;}
$rss .= "</title>\n";
-$rss .= '<link>'.htmlspecialchars ("$default_path").'</link>'."\n";
+
+$views = array('day','week','month','year');
+if (in_array($rssview, $views)) $default_path .= "/$rssview.php";
+$rss_link = $default_path."/";
+if (isset($cpath) && $cpath !='') $rss_link.="?cpath=$cpath";
+$rss .= "<link>$rss_link</link>\n";
+
$rss .= '<description>'.$cal_displayname.' '.$lang['l_calendar'].' - '.$theview.'</description>'."\n";
$rss .= '<language>'.$language.'</language>'."\n";
$rss .= '<copyright>Copyright '.date('Y').', '.htmlspecialchars ("$default_path").'</copyright>'."\n";
@@ -183,7 +175,8 @@ $uid_arr = array();
$rss_title = urldecode ("$dayofweek: $event_text");
- $rss_link = htmlspecialchars ("$default_path/day.php?getdate=$thisdate&cal=$cal&cpath=$cpath");
+ $rss_link = "$default_path/day.php?getdate=$thisdate&amp;cal=$cal";
+ if (isset($cpath) && $cpath !='') $rss_link.="&amp;cpath=$cpath";
$rss_description = htmlspecialchars ("$dayofweek $event_start: $description");
$rss .= '<item>'."\n";
diff --git a/templates/default/footer.tpl b/templates/default/footer.tpl
index feb39e4..5d450c9 100644
--- a/templates/default/footer.tpl
+++ b/templates/default/footer.tpl
@@ -1,4 +1,4 @@
-<center class="V9"><br />{L_POWERED_BY} <a class="psf" href="http://phpicalendar.net/">PHP iCalendar 2.21</a><br />
+<center class="V9"><br />{L_POWERED_BY} <a class="psf" href="http://phpicalendar.net/">PHP iCalendar 2.22rc1</a><br />
<!-- switch rss_valid on -->
<p>
<a style="color:gray" href="http://feeds.archive.org/validator/check?url={FOOTER_CHECK}">
diff --git a/templates/default/print.tpl b/templates/default/print.tpl
index c1c8d4e..dfc773b 100644
--- a/templates/default/print.tpl
+++ b/templates/default/print.tpl
@@ -13,6 +13,7 @@
<td><a class="psf" href="print.php?cal={CAL}&amp;getdate={GETDATE}&amp;printview=day"><img src="templates/{TEMPLATE}/images/day_on.gif" alt="{L_DAY}" border="0" /></a></td>
<td><a class="psf" href="print.php?cal={CAL}&amp;getdate={GETDATE}&amp;printview=week"><img src="templates/{TEMPLATE}/images/week_on.gif" alt="{L_WEEK}" border="0" /></a></td>
<td><a class="psf" href="print.php?cal={CAL}&amp;getdate={GETDATE}&amp;printview=month"><img src="templates/{TEMPLATE}/images/month_on.gif" alt="{L_MONTH}" border="0" /></a></td>
+ <td><a class="psf" href="print.php?cal={CAL}&amp;getdate={GETDATE}&amp;printview=year"><img src="templates/{TEMPLATE}/images/year_on.gif" alt="{L_YEAR}" border="0" /></a></td>
</tr>
</table>
</div>
diff --git a/templates/default/year.tpl b/templates/default/year.tpl
index 2428fa1..eb89065 100644
--- a/templates/default/year.tpl
+++ b/templates/default/year.tpl
@@ -56,6 +56,10 @@
<td width="210" valign="top" align="left">
{MONTH_MEDIUM|03}
</td>
+ <td width="20" rowspan='8'>
+ <img src="images/spacer.gif" width="20" height="1" alt=" " />
+ </td>
+ <td rowspan='8' valign='top'>{SIDEBAR}</td>
</tr>
<tr>
<td colspan="5">
diff --git a/year.php b/year.php
index ba967fc..b9f0825 100644
--- a/year.php
+++ b/year.php
@@ -3,6 +3,7 @@
define('BASE', './');
$current_view = 'year';
require_once(BASE.'functions/ical_parser.php');
+require_once(BASE.'functions/list_functions.php');
require_once(BASE.'functions/template.php');
header("Content-Type: text/html; charset=$charset");
@@ -15,15 +16,45 @@ $next_year = date ("Ymd", $next_year);
$prev_year = strtotime ("-1 year", strtotime($getdate));
$prev_year = date ("Ymd", $prev_year);
+$sidebar_date = localizeDate($dateFormat_day, strtotime($getdate));
+
+// For the side months
+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];
+
+// select for calendars
+$list_icals = display_ical_list(availableCalendars($username, $password, $ALL_CALENDARS_COMBINED));
+$list_years = list_years();
+$list_months = list_months();
+$list_weeks = list_weeks();
+$list_jumps = list_jumps();
+$list_calcolors = '<img src="templates/'.$template.'/images/allday_dot.gif" alt=" " width="11" height="10" border="0" />'.$lang['l_all_day'].'<br>
+<img src="templates/'.$template.'/images/event_dot.gif" alt=" " width="11" height="10" border="0" />'.$lang['l_event']."<br>";
+;
+$list_icals_pick = display_ical_list(availableCalendars($username, $password, $ALL_CALENDARS_COMBINED), TRUE);
+
+// login/logout
+$is_logged_in = ($username != '' && !$invalid_login) ? true : false;
+$show_user_login = (!$is_logged_in && $allow_login == 'yes');
+$login_querys = login_querys();
+$logout_querys = logout_querys();
+
+
+
$page = new Page(BASE.'templates/'.$template.'/year.tpl');
$page->replace_files(array(
'header' => BASE.'templates/'.$template.'/header.tpl',
- 'footer' => BASE.'templates/'.$template.'/footer.tpl'
+ 'footer' => BASE.'templates/'.$template.'/footer.tpl',
+ 'sidebar' => BASE.'templates/'.$template.'/sidebar_year.tpl',
+ 'search_box' => BASE.'templates/'.$template.'/search_box.tpl'
));
$page->replace_tags(array(
'event_js' => '',
+ 'current_view' => $current_view,
'template' => $template,
'charset' => $charset,
'default_path' => '',
@@ -33,24 +64,56 @@ $page->replace_tags(array(
'getdate' => $getdate,
'calendar_name' => $cal_displayname,
'display_date' => $this_year,
+ 'sidebar_date' => $sidebar_date,
'rss_powered' => $rss_powered,
'rss_available' => '',
'rss_valid' => '',
'todo_available' => '',
'event_js' => '',
'this_year' => $this_year,
+ 'next_day' => $next_day,
+ 'next_week' => $next_week,
+ 'prev_day' => $prev_day,
+ 'prev_week' => $prev_week,
'next_year' => $next_year,
'prev_year' => $prev_year,
+ 'show_goto' => '',
+ 'show_user_login' => $show_user_login,
+ 'invalid_login' => $invalid_login,
+ 'login_querys' => $login_querys,
+ 'is_logged_in' => $is_logged_in,
+ 'username' => $username,
+ 'logout_querys' => $logout_querys,
+ 'list_icals' => $list_icals,
+ 'list_icals_pick' => $list_icals_pick,
+ 'list_years' => $list_years,
+ 'list_months' => $list_months,
+ 'list_weeks' => $list_weeks,
+ 'list_jumps' => $list_jumps,
+ 'legend' => $list_calcolors,
+ 'style_select' => $style_select,
+ 'l_goprint' => $lang['l_goprint'],
+ 'l_preferences' => $lang['l_preferences'],
+ 'l_calendar' => $lang['l_calendar'],
+ 'l_legend' => $lang['l_legend'],
+ 'l_tomorrows' => $lang['l_tomorrows'],
+ 'l_jump' => $lang['l_jump'],
+ 'l_todo' => $lang['l_todo'],
'l_day' => $lang['l_day'],
'l_week' => $lang['l_week'],
'l_month' => $lang['l_month'],
'l_year' => $lang['l_year'],
+ 'l_search' => $lang['l_search'],
+ 'l_subscribe' => $lang['l_subscribe'],
+ 'l_download' => $lang['l_download'],
'l_pick_multiple' => $lang['l_pick_multiple'],
'l_powered_by' => $lang['l_powered_by'],
'l_this_site_is' => $lang['l_this_site_is']
));
-
+$page->tomorrows_events($page);
+$page->get_vtodo($page);
+$page->draw_subscribe($page);
$page->output();
?>

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