From 6563d542af0930ebb6b2f9b71f2b7538d7467665 Mon Sep 17 00:00:00 2001 From: Minteck Date: Wed, 22 Feb 2023 22:06:58 +0100 Subject: Updated 8 files (automated) --- pages/front.inc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'pages/front.inc') 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 -- cgit