--- a/routeList.php +++ b/routeList.php @@ -1,123 +1,141 @@ '; } -if ($_REQUEST['bysuburb']) { - include_header("Routes by Suburb", "routeList"); - navbar(); - echo ' '; -} -else if ($_REQUEST['nearby'] || $_REQUEST['suburb']) { - $routes = Array(); - if ($_REQUEST['suburb']) { - $suburb = filter_var($_REQUEST['suburb'], FILTER_SANITIZE_STRING); - include_header($suburb ." - ".ucwords(service_period()), "routeList"); - navbar(); - timePlaceSettings(); - trackEvent("Route Lists", "Routes By Suburb", $suburb); - $routes = getRoutesBySuburb($suburb); - - } - if ($_REQUEST['nearby']) { - include_header("Routes Nearby", "routeList", true, true); - trackEvent("Route Lists", "Routes Nearby", $_SESSION['lat'].",".$_SESSION['lon']); - navbar(); - timePlaceSettings(true); - if (!isset($_SESSION['lat']) || !isset($_SESSION['lat']) || $_SESSION['lat'] == "" || $_SESSION['lon'] == "") { - include_footer(); - die(); - } - $routes = getRoutesNearby($_SESSION['lat'],$_SESSION['lon']); - } - echo '