summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2011-11-17 13:02:21 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2011-11-17 13:02:21 +0100
commit3fb3e8e1995cc9db9336565b5a56b6e1ce656f16 (patch)
tree2e3ebd49341a2dba25a018cd39491933dd86d86d /utils
parent07e3562479c4c3f15b9b281d02f275f04c16016b (diff)
Youtube movies are now grouped for easier overview.
Diffstat (limited to 'utils')
-rw-r--r--utils/modules/sitestats.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/utils/modules/sitestats.php b/utils/modules/sitestats.php
index d16e491..693fba3 100644
--- a/utils/modules/sitestats.php
+++ b/utils/modules/sitestats.php
@@ -164,6 +164,17 @@ class SiteStats {
strpos($url, "prescription") != FALSE ||
$url == "") 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;
+ }
+ }
+
// If url exists already without www remove www from this url.
if(substr($url, 7, 3) == "www") {
$surl = "http://" . substr($url, 11);