From 6b796258d413f00e498ce7f80f73a9f6c061f29c Mon Sep 17 00:00:00 2001 From: RaindropsSys Date: Sat, 30 Mar 2024 23:40:33 +0100 Subject: Updated 5 files, added 2 files, deleted 495 files and renamed 7 files (automated) --- pages/api.inc | 23 ---- pages/api/_main.php | 30 ------ pages/api/pluralkit-integration.php | 64 ------------ pages/api/timeline.php | 12 --- pages/api/violette.php | 23 ---- pages/home.inc | 13 --- pages/jobs.inc | 138 ------------------------ pages/login.inc | 48 --------- pages/logout.inc | 13 --- pages/page.inc | 113 -------------------- pages/public.inc | 203 ------------------------------------ 11 files changed, 680 deletions(-) delete mode 100644 pages/api.inc delete mode 100644 pages/api/_main.php delete mode 100644 pages/api/pluralkit-integration.php delete mode 100644 pages/api/timeline.php delete mode 100644 pages/api/violette.php delete mode 100644 pages/home.inc delete mode 100644 pages/jobs.inc delete mode 100644 pages/login.inc delete mode 100644 pages/logout.inc delete mode 100644 pages/page.inc delete mode 100644 pages/public.inc (limited to 'pages') diff --git a/pages/api.inc b/pages/api.inc deleted file mode 100644 index 8bcea02..0000000 --- a/pages/api.inc +++ /dev/null @@ -1,23 +0,0 @@ - $system - ]); - createJob("UpdateAssets", [ - "type" => "members" - ]); -} - -if ($input["type"] === "UPDATE_SYSTEM") { - createJob("PKSystem", [ - "system" => $system - ]); - createJob("UpdateAssets", [ - "type" => "system" - ]); -} - -if ($input["type"] === "CREATE_SWITCH" || $input["type"] === "UPDATE_SWITCH" || $input["type"] === "DELETE_SWITCH") { - createJob("PKFronters", [ - "system" => $system - ]); - createJob("PKSwitches", [ - "system" => $system - ]); - createJob("FrontersNotification", [ - "system" => $system - ]); -} diff --git a/pages/api/timeline.php b/pages/api/timeline.php deleted file mode 100644 index 8271b7a..0000000 --- a/pages/api/timeline.php +++ /dev/null @@ -1,12 +0,0 @@ - 0, - "ponies" => [] -]; - -$list = scoreOrder(json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/gdapd/members.json"), true), "gdapd"); - -$data["count"] = count($list); -$data["ponies"] = array_values(array_filter(array_map(function ($i) { - return [ - "url" => "https://ponycule.p.equestria.dev" . getAsset("gdapd", $i["id"] ?? "", "heads"), - "label" => $i["display_name"] ?? $i["name"] - ]; -}, $list), function ($i) { - return isset($i["url"]) && getAsset("gdapd", $i["id"] ?? "", "heads") !== null; -})); - -header("Content-Type: application/json"); -die(json_encode($data, JSON_PRETTY_PRINT)); \ No newline at end of file diff --git a/pages/home.inc b/pages/home.inc deleted file mode 100644 index b4dc96a..0000000 --- a/pages/home.inc +++ /dev/null @@ -1,13 +0,0 @@ - - - - -
-
-
-

Jobs history

- - -
Successfully enqueued a new job, it will be run shortly and appear on this page once it has finished.
- - -
- $file): $item = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/jobs/" . $file), true); ?> -
-
( $value): echo($name . "=" . json_encode($value)); endforeach; ?>)
-
-
RunningPending
-
- - - $item): ?> -
- -
-
-
CompletedFailed
-
- -
-
-

- Duration: ms · Enqueue again - -

- - Console output: -
- - - Server error message: -
- - - Job lifetime: -
    -
  • Queued by PHP
  • -
  • Picked up by the runner
  • -
  • Started
  • -

  • -
  • Tracking logged
  • -
-
-
-
- -
-
-
- - \ No newline at end of file diff --git a/pages/login.inc b/pages/login.inc deleted file mode 100644 index 0e306f1..0000000 --- a/pages/login.inc +++ /dev/null @@ -1,48 +0,0 @@ - - -
-
-
-

- -
- -
- - -
- You are already logged in. If you want to log into a different account or using a different authentication method, you may do so now. -
- -

Ponycule.

-
-
-
-
-

-

- -
-
-
-
-
- -
-
- - diff --git a/pages/logout.inc b/pages/logout.inc deleted file mode 100644 index 3d3f39b..0000000 --- a/pages/logout.inc +++ /dev/null @@ -1,13 +0,0 @@ - 2) || $parts[1] === "-")) { - $namesRaindrops = [...array_map(function ($i) { - return $i['name']; - }, json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/gdapd/members.json"), true)), "unknown-rd"]; - $namesMoonglow = array_map(function ($i) { - return $i['name']; - }, array_filter(json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/hrbom/members.json"), true), function ($i) { - return true; - })); - $namesOther = []; - - if ($isLoggedIn || $isLowerLoggedIn) { - $namesOther = [...array_map(function ($i) { - return $i['name']; - }, json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/other/members.json"), true)), $app["other"]["unknown"]]; - } - - $parts = explode("/", $_GET['_']); - array_unshift($parts, ""); - $parts = array_values($parts); - - if (in_array($parts[1], $namesRaindrops)) { - $parts[0] = "raindrops"; - } else if (in_array($parts[1], $namesMoonglow)) { - $parts[0] = "moonglow"; - } else if (in_array($parts[1], $namesOther) && ($isLoggedIn || $isLowerLoggedIn)) { - $parts[0] = $app["other"]["slug"]; - } - - if ($parts[1] === "unknown-rd" || $parts[1] === "unknown-cb" || (($isLoggedIn || $isLowerLoggedIn) && $parts[1] === $app["other"]["unknown"])) $parts[1] = "unknown"; -} - -$system = $parts[0]; -$member = ($parts[1] ?? null) === "" ? null : ($parts[1] ?? null); - -if ($system !== "raindrops" && $system !== "moonglow" && ($system !== $app["other"]["slug"] && !$isLowerLoggedIn && !$isLoggedIn)) peh_error("System not found", 404); -$systemCommonName = $system === $app["other"]["slug"] && ($isLoggedIn || $isLowerLoggedIn) ? $app["other"]["name"] : ($system === "moonglow" ? "Moonglow" : "Raindrops System"); -$systemID = $system === $app["other"]["slug"] && ($isLoggedIn || $isLowerLoggedIn) ? $app["other"]["id"] : ($system === "moonglow" ? "hrbom" : "gdapd"); - -if ($member === null) { - global $_SystemName; - $_SystemName = $system; - $pageFile = $_SERVER['DOCUMENT_ROOT'] . '/includes/fragments/system.inc'; - require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/fragments/system.inc'; -} else if ($member === "-" && isset($parts[2])) { - if (file_exists($_SERVER['DOCUMENT_ROOT'] . '/includes/system/' . $parts[2] . '.inc')) { - global $_SystemPage; - $_SystemPage = $parts[2]; - $pageFile = $_SERVER['DOCUMENT_ROOT'] . '/includes/system/' . $parts[2] . '.inc'; - require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/system/' . $parts[2] . '.inc'; - } else { - peh_error("System page not found: " . strip_tags($parts[2]), 404); - } -} else { - $memberFoundInAnotherSystem = false; - $traveller = false; - - $members = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/" . ($systemID === $app["other"]["id"] ? "other" : $systemID) . "/members.json"), true); - $members2 = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/" . ($systemID === "gdapd" ? "hrbom" : "gdapd") . "/members.json"), true); - $memberData = null; - $memberCommonName = null; - $memberID = null; - - foreach ($members as $m) {if ($m['name'] === $member) { - $memberData = $m; - $memberCommonName = $m['display_name'] ?? $m['name']; - $memberID = $m['id']; - } - } - - foreach ($members2 as $m) { - if ($m['name'] === $member) { - $memberFoundInAnotherSystem = true; - } - } - - global $_SystemName; - $_SystemName = $system; - - if (str_ends_with($member, "-travelling")) { - header("Location: /" . substr($member, 0, strlen($member) - 11)) and die(); - } - - if (isset($parts[2]) && $parts[2] === "-" && isset($parts[3])) { - if (file_exists($_SERVER['DOCUMENT_ROOT'] . '/includes/member/' . $parts[3] . '.inc')) { - global $_MemberPage; - $_MemberPage = $parts[3]; - $pageFile = $_SERVER['DOCUMENT_ROOT'] . '/includes/member/' . $parts[3] . '.inc'; - require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/member/' . $parts[3] . '.inc'; - } else { - peh_error("Member page not found: " . strip_tags($parts[3]), 404); - } - die(); - } - - global $_MemberName; - $_MemberName = $member; - $pageFile = $_SERVER['DOCUMENT_ROOT'] . '/includes/fragments/member.inc'; - require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/fragments/member.inc'; -} - -exit; diff --git a/pages/public.inc b/pages/public.inc deleted file mode 100644 index f714f89..0000000 --- a/pages/public.inc +++ /dev/null @@ -1,203 +0,0 @@ - -
- -

- -

-
-
- ;z-index: 9;margin-left: 8px;opacity: .75;"> -
-
- -
- -
- -
style="grid-template-columns: repeat(3, 1fr);"> - - - -
- -
- - -
-
- -
- - -
- - - - - -
- Notice: This website is temporarily under maintenance and the administrators have locked the database. Although you are logged in as , you cannot access any of the logged-in features while the website is under maintenance. Alerts dispatching remains possible in case of an emergency. -
- - - - -
-
- -
- - - - -
- You were previously logged in to Ponycule, however you have been logged out due to inactivity, due to your device being removed, or due to switching to a new authentication system (such as the v3). Please log in again. Learn more. -
- - - -
- - - - -- cgit