diff options
author | RaindropsSys <raindrops@equestria.dev> | 2024-03-29 22:05:35 +0100 |
---|---|---|
committer | RaindropsSys <raindrops@equestria.dev> | 2024-03-29 22:05:35 +0100 |
commit | 5860551daa0f60103ad24e93da29f401a653f144 (patch) | |
tree | 9ad97e04152a6edc11d5096c87880978df39086a /pages/front.inc | |
parent | a51979ad60074db84af78a06d30fcb888ccb0b03 (diff) | |
download | pluralconnect-5860551daa0f60103ad24e93da29f401a653f144.tar.gz pluralconnect-5860551daa0f60103ad24e93da29f401a653f144.tar.bz2 pluralconnect-5860551daa0f60103ad24e93da29f401a653f144.zip |
Updated 20 files, added 6 files, deleted 144 files and renamed .idea/ponycule.iml (automated)
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 |