aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChad Little <clittle@users.sourceforge.net>2004-02-01 02:45:54 +0000
committerChad Little <clittle@users.sourceforge.net>2004-02-01 02:45:54 +0000
commit972908f8a0f06713db318770eb204579fa08a507 (patch)
treef72c96b85944101ed831cdff3cb7e9b96a58938d
parentacf7bbae2c2bf83f913c88f8a7a7659c7f6c2d15 (diff)
downloadphpicalendar-972908f8a0f06713db318770eb204579fa08a507.tar.gz
phpicalendar-972908f8a0f06713db318770eb204579fa08a507.tar.bz2
phpicalendar-972908f8a0f06713db318770eb204579fa08a507.zip
Page generated in x seconds added.
-rw-r--r--functions/template.php2
-rw-r--r--month.php4
-rw-r--r--year.php4
3 files changed, 3 insertions, 7 deletions
diff --git a/functions/template.php b/functions/template.php
index 52fc408..a59ea29 100644
--- a/functions/template.php
+++ b/functions/template.php
@@ -212,7 +212,7 @@ class Page {
$php_ended = getmicrotime();
$generated = number_format(($php_ended-$php_started),3);
- echo $generated;
+ $this->page = str_replace('{GENERATED}', $generated, $this->page);
print($this->page);
}
}
diff --git a/month.php b/month.php
index 9fb2cb1..760edba 100644
--- a/month.php
+++ b/month.php
@@ -69,9 +69,7 @@ $page->replace_tags(array(
'list_years' => $list_years,
'list_months' => $list_months,
'list_weeks' => $list_weeks,
- 'style_select' => $style_select,
- 'generated' => $generated
-
+ 'style_select' => $style_select
));
$page->output();
diff --git a/year.php b/year.php
index acd8d4d..a3bc09a 100644
--- a/year.php
+++ b/year.php
@@ -46,9 +46,7 @@ $page->replace_tags(array(
'list_years' => $list_years,
'list_months' => $list_months,
'list_weeks' => $list_weeks,
- 'style_select' => $style_select,
- 'generated' => $generated
-
+ 'style_select' => $style_select
));
$page->output();

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