From: maxious Date: Thu, 24 Mar 2011 10:16:56 +0000 Subject: Fix routeList ajax dependency X-Git-Url: https://maxious.lambdacomplex.org/git/?p=busui.git&a=commitdiff&h=4bd37d3d6ffa3f9f562bc7158e0057ef08702554 --- Fix routeList ajax dependency --- --- a/include/common-template.inc.php +++ b/include/common-template.inc.php @@ -215,7 +215,7 @@
- Current Time? + Current Time?
--- a/include/common.inc.php +++ b/include/common.inc.php @@ -7,8 +7,8 @@ "phperror", "awsgtfs", "awsotp", - "squallotp", - "vanilleotp", + //"squallotp", + //"vanilleotp", "other" ); if (isDebug("awsgtfs")) { --- 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"); - trackEvent("Route Lists","Routes By Suburb", $suburb); + trackEvent("Route Lists", "Routes By Suburb", $suburb); } 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(); - } + timePlaceSettings(true); + if (!isset($_SESSION['lat']) || !isset($_SESSION['lat']) || $_SESSION['lat'] == "" || $_SESSION['lon'] == "") { + include_footer(); + die(); + } } $stops = json_decode(getPage($url)); $routes = Array(); @@ -63,7 +63,7 @@ echo '
  • ' . $row[1] . ' ' . $row[2] . " (" . ucwords($row[4]) . ")
  • \n"; } } -else if ($_REQUEST['bynumber']) { +else if ($_REQUEST['bynumber'] || $_REQUEST['numberSeries']) { include_header("Routes by Number", "routeList"); navbar(); echo '