summaryrefslogtreecommitdiff
path: root/includes/util/short.inc
diff options
context:
space:
mode:
authorRaindropsSys <raindrops@equestria.dev>2024-03-29 22:05:35 +0100
committerRaindropsSys <raindrops@equestria.dev>2024-03-29 22:05:35 +0100
commit5860551daa0f60103ad24e93da29f401a653f144 (patch)
tree9ad97e04152a6edc11d5096c87880978df39086a /includes/util/short.inc
parenta51979ad60074db84af78a06d30fcb888ccb0b03 (diff)
downloadpluralconnect-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 'includes/util/short.inc')
-rw-r--r--includes/util/short.inc55
1 files changed, 0 insertions, 55 deletions
diff --git a/includes/util/short.inc b/includes/util/short.inc
deleted file mode 100644
index 1654d93..0000000
--- a/includes/util/short.inc
+++ /dev/null
@@ -1,55 +0,0 @@
-<?php
-
-require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/util/functions.inc";
-require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/util/score.inc";
-
-global $toplevel; global $lang; global $pages;
-
-header("Content-Type: text/plain");
-$members = scoreOrderGlobal();
-$list = [
- "rd" => "/raindrops",
- "minty" => "/cloudydreams",
- "violetdawn" => "/sandydawn",
- "cloudy" => "/cloudydreams",
- "zipp" => "/zippstorm",
- "babs" => "/fleurheartseed",
- "frost" => "/frostcrystals",
- "violet" => "/sandydawn",
- "scootaloo" => "/scoots",
- "babsseed" => "/fleurheartseed",
- "flurryheart" => "/fleurheartseed"
-];
-
-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