From: Maxious Date: Mon, 21 Mar 2011 13:12:50 +0000 Subject: FIx unclosed script tags in analytics X-Git-Url: https://maxious.lambdacomplex.org/git/?p=busui.git&a=commitdiff&h=07a6fb6a188bbe22a4b536dadf7816a651ed2e02 --- FIx unclosed script tags in analytics --- --- a/include/common-template.inc.php +++ b/include/common-template.inc.php @@ -43,6 +43,10 @@ '; else echo ' + '; if ($datepicker) echo '"; $googleAnalyticsImageUrl = googleAnalyticsGetImageUrl(); echo ''; } @@ -229,7 +233,7 @@ } function trackEvent($category, $action, $label = "", $value = -1) { if (isAnalyticsOn()) { - echo ""; } } ?> --- a/index.php +++ b/index.php @@ -1,6 +1,6 @@
--- a/routeList.php +++ b/routeList.php @@ -36,16 +36,16 @@ $suburb = filter_var($_REQUEST['suburb'], FILTER_SANITIZE_STRING); $url = $APIurl . "/json/stopzonesearch?q=" . $suburb; include_header("Routes by Suburb", "routeList"); - timePlaceSettings(true); trackEvent("Route Lists","Routes By Suburb", $suburb); - if (!isset($_SESSION['lat']) || !isset($_SESSION['lat']) || $_SESSION['lat'] == "" || $_SESSION['lon'] == "") { - include_footer(); - die(); - } } if ($_REQUEST['nearby']) { $url = $APIurl . "/json/neareststops?lat={$_SESSION['lat']}&lon={$_SESSION['lon']}&limit=15"; include_header("Routes Nearby", "routeList", true, true); + timePlaceSettings(true); + if (!isset($_SESSION['lat']) || !isset($_SESSION['lat']) || $_SESSION['lat'] == "" || $_SESSION['lon'] == "") { + include_footer(); + die(); + } } $stops = json_decode(getPage($url)); $routes = Array();