diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2011-11-27 09:02:15 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2011-11-27 09:02:15 +0100 |
commit | 02445ddda8dfabdc2648f4e8978ff84eb62b1733 (patch) | |
tree | 5060660cdd61a6245cb9378d7a6f0faaf739281e | |
parent | 3fb3e8e1995cc9db9336565b5a56b6e1ce656f16 (diff) |
-rw-r--r-- | utils/modules/sitestats.php | 19 |
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); |