diff options
Diffstat (limited to 'pages/front.inc')
-rw-r--r-- | pages/front.inc | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/pages/front.inc b/pages/front.inc deleted file mode 100644 index ad38a14..0000000 --- a/pages/front.inc +++ /dev/null @@ -1,28 +0,0 @@ -<?php - -$parts = explode("/", $_GET["_"]); - -if (isset($parts[2])) { - if ($parts[2] === "moonglow") { - $fronters = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/hrbom/fronters.json"), true); - } elseif ($parts[2] === "raindrops") { - $fronters = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/gdapd/fronters.json"), true); - } else { - peh_error("Invalid argument; got " . strip_tags($parts[2]), 400); - die(); - } - - if (count($fronters["members"]) > 0) { - header("Location: /" . $fronters["members"][0]["name"]); - die(); - } else { - if ($parts[2] === "moonglow") { - header("Location: /moonglow"); - } else { - header("Location: /raindrops"); - } - } -} else { - peh_error("Missing operand", 400); - die(); -}
\ No newline at end of file |