--- a/servicealerts/servicealert_editor.php
+++ b/servicealerts/servicealert_editor.php
@@ -1,1 +1,152 @@
+\n";
+ die();
+ }
+if ($_REQUEST['networkinform']) {
+ addInformedAlert($_REQUEST['networkinform'], "agency", "0", "inform");
+ echo "Added network inform for" . $_REQUEST['networkinform'];
+ die();
+ }
+if ($_REQUEST['stopsearch']) {
+ addInformedAlert($_REQUEST['stopsearch'], "stop", $_REQUEST['stopid'], "remove");
+ echo "Added stop remove for" . $_REQUEST['stopsearch'] . ", stop" . $_REQUEST['stopid'] . "
\n";
+
+ foreach ($service_periods as $sp) {
+ echo "Remove from $sp routes
\n";
+ foreach (getStopRoutes($_REQUEST['stopid'], $sp) as $route) {
+ addInformedAlert($_REQUEST['stopsearch'], "route", $route['route_id'], "patch");
+ echo "Added route patch for" . $_REQUEST['stopsearch'] . ", route" . $route['route_id'] . "
\n";
+ }
+ }
+ die();
+ }
+if ($_REQUEST['streetsearch']) {
+
+ echo "Informing stops of street
\n";
+ foreach(getStopByName() as $stop) {
+ addInformedAlert($_REQUEST['stopsearch'], "stop", $_REQUEST['stopid'], "inform");
+ echo "Added stop inform for" . $_REQUEST['stopsearch'] . ", stop" . $_REQUEST['stopid'] . "
\n";
+
+ foreach ($service_periods as $sp) {
+ echo "Informing $sp routes
\n";
+ foreach (getStopRoutes($_REQUEST['stopid'], $sp) as $route) {
+ addInformedAlert($_REQUEST['stopsearch'], "route", $route['route_id'], "inform");
+ echo "Added route inform for stop" . $_REQUEST['stopsearch'] . ", route" . $route['route_id'] . "
\n";
+ }
+ }
+ die();
+ }
+ }
+?>
+Active and Future Alerts:
+
{$alert['start']} | {$alert['end']} | " . substr($alert['description'], 0, 999) . ' | edit | '; + } +?> +