summaryrefslogtreecommitdiff
path: root/includes/short.inc
diff options
context:
space:
mode:
authorRaindropsSys <contact@minteck.org>2023-03-12 19:16:53 +0100
committerRaindropsSys <contact@minteck.org>2023-03-12 19:16:53 +0100
commiteb89b15c0f044673c1206a418a21d0baba1a675e (patch)
tree39ac31a576d8b8392cbd9baf8d67621bf2cefa86 /includes/short.inc
parent5385f0ed8fbb4325203a222a75e6700ffb519349 (diff)
downloadpluralconnect-eb89b15c0f044673c1206a418a21d0baba1a675e.tar.gz
pluralconnect-eb89b15c0f044673c1206a418a21d0baba1a675e.tar.bz2
pluralconnect-eb89b15c0f044673c1206a418a21d0baba1a675e.zip
Updated 104 files, added 3 files, deleted 4 files and renamed 36 files (automated)
Diffstat (limited to 'includes/short.inc')
-rw-r--r--includes/short.inc55
1 files changed, 0 insertions, 55 deletions
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 @@
-<?php
-
-require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/functions.inc";
-require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/bitset.inc";
-require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/score.inc";
-
-global $toplevel; global $lang; global $pages;
-
-header("Content-Type: text/plain");
-$members = scoreOrderGlobal();
-$list = [
- "rd" => "/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