URL parameter to filter stop trips display by route or another stop on the route
[busui.git] / include / common-request.inc.php
blob:a/include/common-request.inc.php -> blob:b/include/common-request.inc.php
--- a/include/common-request.inc.php
+++ b/include/common-request.inc.php
@@ -30,6 +30,9 @@
 if (isset($_REQUEST['nearby'])) {
     $nearby = true;
 }
+if (isset($_REQUEST['labs'])) {
+    $labs = true;
+}
 if (isset($_REQUEST['suburb'])) {
     $suburb = $_REQUEST['suburb'];
 }
@@ -50,6 +53,9 @@
 }
 if (isset($_REQUEST['routeDestination'])) {
     $routeDestination = urldecode(filter_var($_REQUEST['routeDestination'], FILTER_SANITIZE_ENCODED));
+}
+if (isset($_REQUEST['routename'])) {
+    $routename = urldecode(filter_var($_REQUEST['routename'], FILTER_SANITIZE_ENCODED));
 }
 if (isset($_REQUEST['stopcode'])) {
     $stopcode = filter_var($_REQUEST['stopcode'], FILTER_SANITIZE_STRING);