From 96d340d253774e52a464231140810aba6f350951 Mon Sep 17 00:00:00 2001 From: deva Date: Thu, 18 Aug 2011 09:14:13 +0000 Subject: Clean out annoying urls. Don't remove www. unless really nessecary. --- utils/modules/sitestats.php | 164 ++++++++++++++++++++++++++++++++++++++------ 1 file changed, 142 insertions(+), 22 deletions(-) (limited to 'utils/modules/sitestats.php') diff --git a/utils/modules/sitestats.php b/utils/modules/sitestats.php index 63db39a..d16e491 100644 --- a/utils/modules/sitestats.php +++ b/utils/modules/sitestats.php @@ -4,6 +4,15 @@ global $UTIL_DIR; include_once($UTIL_DIR . "/convert.php"); +class StatEntry { + public $time; + public $remoteaddr; + public $page; + public $agent; + public $referer; + public $uri; +} + class SiteStats { public $statsdir; @@ -47,7 +56,13 @@ class SiteStats { } echo "\n"; + $hits = 0; + foreach($this->pages as $k => $v) { + $hits += $v; + } + echo "

Pages:

\n"; + echo "

".$hits." hits.

\n"; echo "