From f85e1443a041a1e4ad38a9d79dac81c94a07e05c Mon Sep 17 00:00:00 2001 From: deva Date: Tue, 16 Mar 2010 15:09:43 +0000 Subject: Add simple stat log mechanism. --- htdocs/index.php | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) (limited to 'htdocs') diff --git a/htdocs/index.php b/htdocs/index.php index a550f77..d389e6d 100644 --- a/htdocs/index.php +++ b/htdocs/index.php @@ -16,6 +16,13 @@ if(!isset($JPEG_CACHE_QUALITY)) $JPEG_CACHE_QUALITY = 85; if($mode == "imagecache") { include_once($UTIL_DIR. "/imagecache.php"); getCachedImage($uri, $mod, $cat); + + include_once($MODULES_DIR."/sitestats.php"); + $stats = new SiteStats($DATA_DIR."/sitestats"); + + $stop_time = microtime(true); + $stats->log($stop_time - $start_time); + return; } @@ -62,6 +69,13 @@ if($config->value('splash') == "true") { log($stop_time - $start_time); + return; } } @@ -143,11 +157,15 @@ $_p = $pages->getPage("footer"); if($_p) $_p->show(); ?> -
This document was generated in seconds
+
This document was generated in seconds
Admin
- +log($stop_time - $start_time); +?> \ No newline at end of file -- cgit v1.2.3