From: <ji...@us...> - 2005-02-13 17:53:01
|
Update of /cvsroot/phpicalendar/phpicalendar/functions In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26898/phpicalendar/functions Modified Files: template.php Log Message: changes to template.php to work with cpath variable (alternate calendar directories selected by REQUEST). Index: template.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/functions/template.php,v retrieving revision 1.62 retrieving revision 1.63 diff -C2 -d -r1.62 -r1.63 *** template.php 29 Nov 2004 23:36:37 -0000 1.62 --- template.php 13 Feb 2005 17:52:52 -0000 1.63 *************** *** 177,181 **** $loop_dof = trim($match1[1]); $start_wt = strtotime(dateOfWeek($getdate, $week_start_day)); ! $start_wt = strtotime(dateOfWeek($getdate, $week_start_day)); for ($i=0; $i<7; $i++) { $day_num = date("w", $start_day); --- 177,181 ---- $loop_dof = trim($match1[1]); $start_wt = strtotime(dateOfWeek($getdate, $week_start_day)); ! $start_day = strtotime($week_start_day); for ($i=0; $i<7; $i++) { $day_num = date("w", $start_day); *************** *** 942,946 **** function output() { ! global $template, $php_started, $lang, $enable_rss, $template_started; // Looks for {MONTH} before sending page out --- 942,946 ---- function output() { ! global $template, $php_started, $lang, $enable_rss, $template_started, $cpath; // Looks for {MONTH} before sending page out *************** *** 978,981 **** --- 978,984 ---- $this->page = str_replace('{BASE}', BASE, $this->page); } + if ($cpath){ + $this->page = str_replace('&getdate', "&cpath=$cpath&getdate", $this->page); + } print($this->page); } |