From 3fb3e8e1995cc9db9336565b5a56b6e1ce656f16 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Thu, 17 Nov 2011 13:02:21 +0100 Subject: Youtube movies are now grouped for easier overview. --- utils/modules/sitestats.php | 11 +++++++++++ 1 file changed, 11 insertions(+) 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); -- cgit v1.2.3