summaryrefslogtreecommitdiff
path: root/utils/modules
diff options
context:
space:
mode:
Diffstat (limited to 'utils/modules')
-rw-r--r--utils/modules/sitestats.php19
1 files changed, 11 insertions, 8 deletions
diff --git a/utils/modules/sitestats.php b/utils/modules/sitestats.php
index 693fba3..bc4a813 100644
--- a/utils/modules/sitestats.php
+++ b/utils/modules/sitestats.php
@@ -156,33 +156,36 @@ class SiteStats {
$url = preg_replace('/@/', '&', $url);
// Don't show 'banned' urls.
- if(strpos($url, "executionroom.com") != FALSE ||
- strpos($url, "google") != FALSE ||
+ if(strpos($url, "google") != FALSE ||
strpos($url, "bing") != FALSE ||
strpos($url, "viagra") != FALSE ||
strpos($url, "inthesetimes.com") != FALSE ||
strpos($url, "prescription") != FALSE ||
$url == "") continue;
+ if($entry->page != "") $this->pages[$entry->page]++;
+
+ // Don't track internal referral
+ if(strpos($url, "executionroom.com") != FALSE)
+ continue;
+
if(strpos($url, "youtube.com") != FALSE) {
$u = parse_url($url);
parse_str($u['query']);
if($v != "") {
//print_r($u['query']);
$youtubeurl = "http://www.youtube.com/watch?v=".$v;
- $this->referers[$youtubeurl]++;
- continue;
+ $url = $youtubeurl;//$this->referers[$youtubeurl]++;
+ // continue;
}
- }
-
+ } else
// If url exists already without www remove www from this url.
if(substr($url, 7, 3) == "www") {
$surl = "http://" . substr($url, 11);
if($this->referers[$surl]) $url = $surl;
}
+
$this->referers[$url]++;
-
- if($entry->page != "") $this->pages[$entry->page]++;
}
arsort($this->referers);