aboutsummaryrefslogtreecommitdiffstats
path: root/functions
diff options
context:
space:
mode:
authorChad Little <clittle@users.sourceforge.net>2004-02-01 04:38:45 +0000
committerChad Little <clittle@users.sourceforge.net>2004-02-01 04:38:45 +0000
commit360568009988ec4dc4cef2af54d6790550ab4c18 (patch)
tree41d786dcfd000e5e56254959691599a52baf4383 /functions
parent42ec254f9caa7322073f3356c82560970a7e3d32 (diff)
downloadphpicalendar-360568009988ec4dc4cef2af54d6790550ab4c18.tar.gz
phpicalendar-360568009988ec4dc4cef2af54d6790550ab4c18.tar.bz2
phpicalendar-360568009988ec4dc4cef2af54d6790550ab4c18.zip
Fixed event popup, works on new month template.
Diffstat (limited to 'functions')
-rw-r--r--functions/date_functions.php5
-rw-r--r--functions/init.inc.php5
-rw-r--r--functions/template.php2
3 files changed, 6 insertions, 6 deletions
diff --git a/functions/date_functions.php b/functions/date_functions.php
index ccd6bf6..67e96ea 100644
--- a/functions/date_functions.php
+++ b/functions/date_functions.php
@@ -14,11 +14,6 @@ if (phpversion() < '4.1') {
}
}
-function getmicrotime() {
- list($usec, $sec) = explode(' ',microtime());
- return ((float)$usec + (float)$sec);
-}
-
// takes iCalendar 2 day format and makes it into 3 characters
// if $txt is true, it returns the 3 letters, otherwise it returns the
// integer of that day; 0=Sun, 1=Mon, etc.
diff --git a/functions/init.inc.php b/functions/init.inc.php
index e6ba8e2..5be4847 100644
--- a/functions/init.inc.php
+++ b/functions/init.inc.php
@@ -179,4 +179,9 @@ if ($is_webcal) {
$rss_powered = ($enable_rss == 'yes') ? 'yes' : '';
+function getmicrotime() {
+ list($usec, $sec) = explode(' ',microtime());
+ return ((float)$usec + (float)$sec);
+}
+
?>
diff --git a/functions/template.php b/functions/template.php
index a84be3a..81b5016 100644
--- a/functions/template.php
+++ b/functions/template.php
@@ -208,7 +208,7 @@ class Page {
$this->page = str_replace('{' . strtoupper($tag) . '}', $data, $this->page);
}
- $php_ended = getmicrotime();
+ $php_ended = @getmicrotime();
$generated = number_format(($php_ended-$php_started),3);
$this->page = str_replace('{GENERATED}', $generated, $this->page);
print($this->page);

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