diff options
Diffstat (limited to 'pages/front.inc')
-rw-r--r-- | pages/front.inc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/pages/front.inc b/pages/front.inc index a60be1d..cd4f952 100644 --- a/pages/front.inc +++ b/pages/front.inc @@ -2,15 +2,13 @@ $parts = explode("/", $_GET["_"]); -var_dump($parts); - if (isset($parts[2])) { if ($parts[2] === "cloudburst") { $fronters = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/ynmuc/fronters.json"), true); } elseif ($parts[2] === "raindrops") { $fronters = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/gdapd/fronters.json"), true); } else { - header("Location: /"); + header("Location: /?error=Invalid argument; got " . $parts[2]); die(); } @@ -25,6 +23,6 @@ if (isset($parts[2])) { } } } else { - header("Location: /"); + header("Location: /?error=Missing operand"); die(); }
\ No newline at end of file |