From: Maxious Date: Sun, 04 Sep 2011 15:33:12 +0000 Subject: Merge branch 'master' of https://github.com/maxious/ACTBus-ui X-Git-Url: https://maxious.lambdacomplex.org/git/?p=busui.git&a=commitdiff&h=a956bd0cd793766df08deed2efa33f4e642e103e --- Merge branch 'master' of https://github.com/maxious/ACTBus-ui --- --- a/include/common-template.inc.php +++ b/include/common-template.inc.php @@ -32,7 +32,7 @@ -' . $pageTitle . ' +' . $pageTitle . ' - Canberra Bus Timetable --- a/include/common.inc.php +++ b/include/common.inc.php @@ -49,7 +49,9 @@ function isAnalyticsOn() { - return !isDebugServer(); + $user_agent = $_SERVER['HTTP_USER_AGENT']; + return !isDebugServer() && !preg_match('/cloudkick/i', $user_agent) && !preg_match('/googlebot/i', $user_agent) && +!preg_match('/baidu/i', $user_agent); } function isDebug($debugReason = "other") {