diff options
author | Minteck <contact@minteck.org> | 2023-02-22 22:06:58 +0100 |
---|---|---|
committer | Minteck <contact@minteck.org> | 2023-02-22 22:06:58 +0100 |
commit | 6563d542af0930ebb6b2f9b71f2b7538d7467665 (patch) | |
tree | 2d0c1f34382ab3c1fc4a7422cc87be2a5714356e /pages/front.inc | |
parent | 737f5008f8a4a011c832e83f6b2019d3dc27dbd0 (diff) | |
download | pluralconnect-6563d542af0930ebb6b2f9b71f2b7538d7467665.tar.gz pluralconnect-6563d542af0930ebb6b2f9b71f2b7538d7467665.tar.bz2 pluralconnect-6563d542af0930ebb6b2f9b71f2b7538d7467665.zip |
Updated 8 files (automated)
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 |