summaryrefslogtreecommitdiff
path: root/htdocs
diff options
context:
space:
mode:
Diffstat (limited to 'htdocs')
-rw-r--r--htdocs/index.php22
1 files changed, 20 insertions, 2 deletions
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") {
</body>
</html>
<?php
+ include_once($MODULES_DIR."/sitestats.php");
+ $stats = new SiteStats($DATA_DIR."/sitestats");
+
+ $page = "[splash]";
+ $stop_time = microtime(true);
+ $stats->log($stop_time - $start_time);
+
return;
}
}
@@ -143,11 +157,15 @@ $_p = $pages->getPage("footer");
if($_p) $_p->show();
?>
</div>
- <div class="generationtime">This document was generated in <?php $stop_time = microtime(true); echo $stop_time - $start_time; ?> seconds</div>
+ <div class="generationtime">This document was generated in <?php $stop_time = microtime(true); echo $stop_time - $start_time; ?> seconds</div>
</div>
<div>
<a href="?page=admin" class="admin_link"></a>
<a href="?page=admin" class="admin_link_text">Admin</a>
</div>
</body>
-</html>
+</html><?php
+include_once($MODULES_DIR."/sitestats.php");
+$stats = new SiteStats($DATA_DIR."/sitestats");
+$stats->log($stop_time - $start_time);
+?> \ No newline at end of file