From eb89b15c0f044673c1206a418a21d0baba1a675e Mon Sep 17 00:00:00 2001 From: RaindropsSys Date: Sun, 12 Mar 2023 19:16:53 +0100 Subject: Updated 104 files, added 3 files, deleted 4 files and renamed 36 files (automated) --- includes/short.inc | 55 ------------------------------------------------------ 1 file changed, 55 deletions(-) delete mode 100644 includes/short.inc (limited to 'includes/short.inc') diff --git a/includes/short.inc b/includes/short.inc deleted file mode 100644 index 1c4760c..0000000 --- a/includes/short.inc +++ /dev/null @@ -1,55 +0,0 @@ - "/raindrops", - "cb" => "/cloudburst", - "minty" => "/cloudydreams", - "twilight" => "/twi", - "luna" => "/princessluna", - "cloudy" => "/cloudydreams", - "zipp" => "/zippstorm", - "babs" => "/babsseed", - "frost" => "/frostcrystals", - "violet" => "/violetdawn" -]; - -foreach ($members as $member) { - for ($i = 1; $i < strlen($member["name"]); $i++) { - $part = substr($member["name"], 0, $i); - - if (in_array($part, array_keys($list))) { - $list[$part] = false; - } else { - $list[$part] = "/" . $member["name"]; - } - } - - foreach ($member["proxy_tags"] as $proxy) { - $system = $member["_system"] === "gdapd" ? "rd" : "cb"; - $list[$system . preg_replace("/[^a-z]/m", "", $proxy["prefix"])] = "/" . $member["name"]; - } - - $list[$member["id"]] = "/" . $member["name"]; - $list[$member["uuid"]] = "/" . $member["name"]; -} - -$list["minty"] = "/cloudydreams"; -$list["twilight"] = "/twi"; - -if (in_array($toplevel, array_keys($list)) && $list[$toplevel]) { - if ($toplevel !== "unknown") { - header("Location: " . $list[$toplevel]); - } else { - peh_error("Page not found: " . strip_tags($toplevel), 404); - } -} else { - peh_error("Page not found: " . strip_tags($toplevel), 404); -} \ No newline at end of file -- cgit