Update of /cvsroot/phpicalendar/phpicalendar/functions
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11494/functions
Modified Files:
ical_parser.php template.php
Log Message:
Added template generation time.
Index: ical_parser.php
===================================================================
RCS file: /cvsroot/phpicalendar/phpicalendar/functions/ical_parser.php,v
retrieving revision 1.162
retrieving revision 1.163
diff -C2 -d -r1.162 -r1.163
*** ical_parser.php 19 May 2004 07:51:58 -0000 1.162
--- ical_parser.php 20 May 2004 04:15:19 -0000 1.163
***************
*** 1110,1113 ****
--- 1110,1115 ----
$calendar_name = $all_cal_comb_lang;
}
+
+ $template_started = getmicrotime();
?>
Index: template.php
===================================================================
RCS file: /cvsroot/phpicalendar/phpicalendar/functions/template.php,v
retrieving revision 1.44
retrieving revision 1.45
diff -C2 -d -r1.44 -r1.45
*** template.php 19 May 2004 05:50:09 -0000 1.44
--- template.php 20 May 2004 04:15:19 -0000 1.45
***************
*** 882,886 ****
function output() {
! global $template, $php_started, $lang, $enable_rss;
// Looks for {MONTH} before sending page out
--- 882,886 ----
function output() {
! global $template, $php_started, $lang, $enable_rss, $template_started;
// Looks for {MONTH} before sending page out
***************
*** 909,914 ****
$php_ended = @getmicrotime();
! $generated = number_format(($php_ended-$php_started),3);
! $this->page = str_replace('{GENERATED}', $generated, $this->page);
if ($enable_rss != 'yes') {
$this->page = preg_replace('!<\!-- switch rss_powered on -->(.*)<\!-- switch rss_powered off -->!is', '', $this->page);
--- 909,916 ----
$php_ended = @getmicrotime();
! $generated1 = number_format(($php_ended-$php_started),3);
! $generated2 = number_format(($php_ended-$template_started),3);
! $this->page = str_replace('{GENERATED1}', $generated1, $this->page);
! $this->page = str_replace('{GENERATED2}', $generated2, $this->page);
if ($enable_rss != 'yes') {
$this->page = preg_replace('!<\!-- switch rss_powered on -->(.*)<\!-- switch rss_powered off -->!is', '', $this->page);
|