From 5860551daa0f60103ad24e93da29f401a653f144 Mon Sep 17 00:00:00 2001 From: RaindropsSys Date: Fri, 29 Mar 2024 22:05:35 +0100 Subject: Updated 20 files, added 6 files, deleted 144 files and renamed .idea/ponycule.iml (automated) --- pages/account.inc | 30 ----- pages/alerts.inc | 35 ----- pages/alphabet.inc | 71 ---------- pages/api/_main.php | 30 +++++ pages/api/badger.php | 52 -------- pages/api/disconnect.php | 37 ------ pages/api/docs.php | 31 ----- pages/api/emergency-real.php | 37 ------ pages/api/emergency.php | 37 ------ pages/api/me.php | 39 ------ pages/api/pleasure-real.php | 50 ------- pages/api/pleasure.php | 50 ------- pages/api/pluralkit-integration.php | 4 +- pages/api/ponytown.php | 121 ----------------- pages/api/reauthenticate.php | 49 ------- pages/api/rename.php | 37 ------ pages/api/session.php | 29 ---- pages/api/token.php | 7 - pages/byfront.inc | 201 ---------------------------- pages/byspecies.inc | 97 -------------- pages/emergency.inc | 15 --- pages/front.inc | 28 ---- pages/lists.inc | 29 ---- pages/metadata.inc | 197 --------------------------- pages/page.inc | 6 +- pages/pair.inc | 216 ------------------------------ pages/pleasure.inc | 16 --- pages/ponytown.inc | 258 ------------------------------------ pages/public.inc | 4 +- pages/relations.inc | 135 ------------------- pages/schedule.inc | 235 -------------------------------- pages/sessions.inc | 226 ------------------------------- pages/splitting.inc | 62 --------- 33 files changed, 36 insertions(+), 2435 deletions(-) delete mode 100644 pages/account.inc delete mode 100644 pages/alerts.inc delete mode 100644 pages/alphabet.inc create mode 100644 pages/api/_main.php delete mode 100644 pages/api/badger.php delete mode 100644 pages/api/disconnect.php delete mode 100644 pages/api/docs.php delete mode 100644 pages/api/emergency-real.php delete mode 100644 pages/api/emergency.php delete mode 100644 pages/api/me.php delete mode 100644 pages/api/pleasure-real.php delete mode 100644 pages/api/pleasure.php delete mode 100644 pages/api/ponytown.php delete mode 100644 pages/api/reauthenticate.php delete mode 100644 pages/api/rename.php delete mode 100644 pages/api/session.php delete mode 100644 pages/api/token.php delete mode 100644 pages/byfront.inc delete mode 100644 pages/byspecies.inc delete mode 100644 pages/emergency.inc delete mode 100644 pages/front.inc delete mode 100644 pages/lists.inc delete mode 100644 pages/metadata.inc delete mode 100644 pages/pair.inc delete mode 100644 pages/pleasure.inc delete mode 100644 pages/ponytown.inc delete mode 100644 pages/relations.inc delete mode 100644 pages/schedule.inc delete mode 100644 pages/sessions.inc delete mode 100644 pages/splitting.inc (limited to 'pages') diff --git a/pages/account.inc b/pages/account.inc deleted file mode 100644 index 216892c..0000000 --- a/pages/account.inc +++ /dev/null @@ -1,30 +0,0 @@ - - -
-
-
-

Account and security

-
- - - -
- -

Ponycule Software, build . · © 2022- Equestria.dev Developers

-
-
- - diff --git a/pages/alerts.inc b/pages/alerts.inc deleted file mode 100644 index a47c84f..0000000 --- a/pages/alerts.inc +++ /dev/null @@ -1,35 +0,0 @@ - - -
-
- -
- - - diff --git a/pages/alphabet.inc b/pages/alphabet.inc deleted file mode 100644 index 2b57c76..0000000 --- a/pages/alphabet.inc +++ /dev/null @@ -1,71 +0,0 @@ - -
-

- - -
- -
-
.
-
- " title=" ()" data-bs-toggle="tooltip" data-bs-html="true">" style="width:24px;"> -
-
- 0): ?> - (
-
.
-
- " title=" ()" data-bs-toggle="tooltip" data-bs-html="true">" style="width:24px;"> -
-
) - -
- -
-
- - -
-
- -
- - diff --git a/pages/api/_main.php b/pages/api/_main.php new file mode 100644 index 0000000..215c1b2 --- /dev/null +++ b/pages/api/_main.php @@ -0,0 +1,30 @@ + 0) { - if ($metadata["birth"]["age"] === -1) { - $age = " - Eternal"; - } elseif ($metadata["birth"]["age"] <= 0) { - $age = ""; - } else { - $age = " - " . ($metadata["birth"]["age"]); - } - } else { - if ($metadata["birth"]["year"] <= 1900) { - $age = ""; - } else { - $age = " - " . ((int)date('Y') - $metadata["birth"]["year"] + (strtotime(date('Y') . "-" . $metadata["birth"]["date"]) <= time() ? 0 : -1)); - } - } - - return $age; -} - -header("Content-Type: application/json"); -die(json_encode(array_map(function ($i) { - return [ - "id" => $i["id"], - "name" => $i["display_name"] ?? $i["name"], - "system" => $i["system"], - "pronouns" => $i["pronouns"], - "species" => match ($i["_metadata"]["species"][0]) { - "earth" => $i["_metadata"]["robot"] ? "Robot earth pony" : (!$i["_metadata"]["plush"] ? "Earth pony" : "Earth pony plush"), - "alicorn" => $i["_metadata"]["robot"] ? "Robot alicorn" : (!$i["_metadata"]["plush"] ? "Alicorn" : "Alicorn plush"), - "crystal" => $i["_metadata"]["robot"] ? "Robot crystal pony" : (!$i["_metadata"]["plush"] ? "Crystal pony" : "Crystal pony plush"), - "pegasus" => $i["_metadata"]["robot"] ? "Robot pegasus" : (!$i["_metadata"]["plush"] ? "Pegasus" : "Pegasus plush"), - "batpony" => $i["_metadata"]["robot"] ? "Robot bat pony" : (!$i["_metadata"]["plush"] ? "Bat pony" : "Bat pony plush"), - "unicorn" => $i["_metadata"]["robot"] ? "Robot unicorn" : (!$i["_metadata"]["plush"] ? "Unicorn" : "Unicorn plush"), - "changeling" => "Changeling", - "human" => "Human", - "merpony" => "Merpony", - default => $i["_metadata"]["species"][0] . "_" . $i["_metadata"]["robot"] - }, - "age" => getAge($i["_metadata"]), - "avatar" => "https://ponycule.p.equestria.dev" . getAsset($i["system"], $i["id"], "heads") - ]; -}, $list), JSON_PRETTY_PRINT)); \ No newline at end of file diff --git a/pages/api/disconnect.php b/pages/api/disconnect.php deleted file mode 100644 index ffd3f40..0000000 --- a/pages/api/disconnect.php +++ /dev/null @@ -1,37 +0,0 @@ - [ - 'method' => 'POST', - 'header' => - "Content-Type: text/plain\r\n" . - "Title: " . formatPonypush("⚠️ Emergency alert") . "\r\n" . - "Priority: urgent\r\n" . - "Tags: emergency\r\n" . - "Authorization: Basic " . base64_encode($ntfy["user"] . ":" . $ntfy["password"]), - 'content' => formatPonypush("This is an emergency, " . $_PROFILE['name'] . " is in need of immediate help. Please act now!") - ] -]); - -foreach ($channels as $channel) { - file_get_contents('https://' . $ntfy["server"] . '/' . $channel, false, $context); -} - -die(); \ No newline at end of file diff --git a/pages/api/emergency.php b/pages/api/emergency.php deleted file mode 100644 index e682598..0000000 --- a/pages/api/emergency.php +++ /dev/null @@ -1,37 +0,0 @@ - [ - 'method' => 'POST', - 'header' => - "Content-Type: text/plain\r\n" . - "Title: " . formatPonypush("[Test] ⚠️ Emergency alert") . "\r\n" . - "Priority: urgent\r\n" . - "Tags: emergency\r\n" . - "Authorization: Basic " . base64_encode($ntfy["user"] . ":" . $ntfy["password"]), - 'content' => formatPonypush("[This notification is test] This is an emergency, " . $_PROFILE['name'] . " is in need of immediate help. Please act now! [This notification is test]") - ] -]); - -foreach ($channels as $channel) { - file_get_contents('https://' . $ntfy["server"] . '/' . $channel, false, $context); -} - -die(); \ No newline at end of file diff --git a/pages/api/me.php b/pages/api/me.php deleted file mode 100644 index 0e91189..0000000 --- a/pages/api/me.php +++ /dev/null @@ -1,39 +0,0 @@ - true, - "name" => "Raindrops System", - "id" => "raindrops", - "pluralkit" => "gdapd", - "avatar" => getAsset("gdapd"), - "email" => $_PROFILE["profile"]["email"]["email"] - ])); -} else if ($_PROFILE["login"] === "Moonglow") { - die(json_encode([ - "valid" => true, - "name" => "Moonglow", - "id" => "moonglow", - "pluralkit" => "hrbom", - "avatar" => getAsset("hrbom"), - "email" => $_PROFILE["profile"]["email"]["email"] - ])); -} else { - die(json_encode([ - "valid" => true, - "name" => $app["other"]["name"], - "id" => $app["other"]["slug"], - "pluralkit" => $app["other"]["id"], - "avatar" => getAsset($app["other"]["id"]), - "email" => $_PROFILE["profile"]["email"]["email"] - ])); -} \ No newline at end of file diff --git a/pages/api/pleasure-real.php b/pages/api/pleasure-real.php deleted file mode 100644 index c1cbd59..0000000 --- a/pages/api/pleasure-real.php +++ /dev/null @@ -1,50 +0,0 @@ - [ - 'method' => 'POST', - 'header' => - "Content-Type: text/plain\r\n" . - "Title: " . formatPonypush("🏩 $pony wants to play for a bit") . "\r\n" . - "Priority: high\r\n" . - "Tags: pleasure\r\n" . - "Authorization: Basic " . base64_encode($ntfy["user"] . ":" . $ntfy["password"]), - 'content' => formatPonypush("Hey, $pony wants to play and have fun with you, get up!") - ] -]); - -foreach ($channels as $channel) { - file_get_contents('https://' . $ntfy["server"] . '/' . $channel, false, $context); -} - -die(); \ No newline at end of file diff --git a/pages/api/pleasure.php b/pages/api/pleasure.php deleted file mode 100644 index 7b268cb..0000000 --- a/pages/api/pleasure.php +++ /dev/null @@ -1,50 +0,0 @@ - [ - 'method' => 'POST', - 'header' => - "Content-Type: text/plain\r\n" . - "Title: " . formatPonypush("[Test] 🏩 $pony wants to play for a bit") . "\r\n" . - "Priority: high\r\n" . - "Tags: pleasure\r\n" . - "Authorization: Basic " . base64_encode($ntfy["user"] . ":" . $ntfy["password"]), - 'content' => formatPonypush("[This notification is a test] Hey, $pony wants to play and have fun with you, get up! [This notification is a test]") - ] -]); - -foreach ($channels as $channel) { - file_get_contents('https://' . $ntfy["server"] . '/' . $channel, false, $context); -} - -die(); \ No newline at end of file diff --git a/pages/api/pluralkit-integration.php b/pages/api/pluralkit-integration.php index a3faa6f..9b0033d 100644 --- a/pages/api/pluralkit-integration.php +++ b/pages/api/pluralkit-integration.php @@ -1,7 +1,5 @@ $system ]); -} \ No newline at end of file +} diff --git a/pages/api/ponytown.php b/pages/api/ponytown.php deleted file mode 100644 index bc40975..0000000 --- a/pages/api/ponytown.php +++ /dev/null @@ -1,121 +0,0 @@ - 70) { - $errors[] = "0x{$_}000002A: Image #" . $_ . " is wider than it should, are you sure you set zoom to 1x? Maybe you inverted the files?"; - } - - if ($_ === 1 && $size[1] > 70) { - $errors[] = "0x{$_}000002B: Image #" . $_ . " is higher than it should, are you sure you set zoom to 1x? Maybe you inverted the files?"; - } - - if ($_ === 2 && $size[0] > 40) { - $errors[] = "0x{$_}000002A: Image #" . $_ . " is wider than it should, are you sure you set zoom to 1x? Maybe you inverted the files?"; - } - - if ($_ === 2 && $size[1] > 35) { - $errors[] = "0x{$_}000002B: Image #" . $_ . " is higher than it should, are you sure you set zoom to 1x? Maybe you inverted the files?"; - } -} - -if (count($errors) === 0 && isset($_GET["real"])) { - foreach ([1, 2] as $_) { - $input = $json_object[$_ - 1]; - - $mime = explode(";", substr($input, 5))[0]; - $file = base64_decode(explode(",", explode(";", substr($input, 5))[1])[1]); - - $image = @imagecreatefromstring($file); - - imagealphablending($image, false); - imagesavealpha($image, true); - - if ($_ === 1) { - imagepng($image, $_SERVER['DOCUMENT_ROOT'] . "/assets/ponies/" . $member["id"] . ".png"); - } else { - imagepng($image, $_SERVER['DOCUMENT_ROOT'] . "/assets/uploads/pt-" . $member["name"] . ".png"); - } - } -} - -createJob("UpdateAssets", [ - "type" => "ponytown" -]); - -die(json_encode([ - "success" => count($errors) === 0, - "errors" => $errors -])); \ No newline at end of file diff --git a/pages/api/reauthenticate.php b/pages/api/reauthenticate.php deleted file mode 100644 index b194098..0000000 --- a/pages/api/reauthenticate.php +++ /dev/null @@ -1,49 +0,0 @@ - true -]; - -global $token; -$data = json_decode(pf_utf8_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/sessions/" . str_replace("/", "", $token))), true); - -$data["name"] = $_POST["name"] ?? $_GET["name"] ?? $data["name"]; -$obj["pre_name"] = $data["name"]; - -$request_raw = file_get_contents('php://input'); -$json_object = json_decode($request_raw, true); - -if (json_last_error() === JSON_ERROR_NONE) { - $obj["json_error"] = [ json_last_error(), json_last_error_msg() ]; - if (isset($json_object["name"])) { - $data["name"] = $json_object["name"]; - $obj["json_name"] = $json_object["name"]; - } -} - -$obj["new_name"] = $data["name"]; - -file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/sessions/" . str_replace("/", "", $token), pf_utf8_encode(json_encode($data))); -die(json_encode($obj)); \ No newline at end of file diff --git a/pages/api/session.php b/pages/api/session.php deleted file mode 100644 index 25d833d..0000000 --- a/pages/api/session.php +++ /dev/null @@ -1,29 +0,0 @@ - null, - "created" => null, - "last_seen" => null, - "seen_at" => null - ], JSON_PRETTY_PRINT)); - } - - $data = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/sessions/" . str_replace("/", "", $token)), true); - - die(json_encode([ - "name" => $data["name"], - "created" => date('c', $data["created"]), - "last_seen" => date('c', $data["last"]), - "seen_at" => array_keys($data["addresses"] ?? []) - ], JSON_PRETTY_PRINT)); -} \ No newline at end of file diff --git a/pages/api/token.php b/pages/api/token.php deleted file mode 100644 index 5c80ca3..0000000 --- a/pages/api/token.php +++ /dev/null @@ -1,7 +0,0 @@ - - -
-
-
-

Members by last fronted

- - - 0) { - $thisIndex = array_search($thisMember[0], $switches); - - $frontingStart = $thisMember[0]; - $frontingEnd = $switches[$thisIndex - 1]; - } - - if ($frontingEnd !== null && isset($frontingStart)) { - $i["_lastFronted"] = strtotime($frontingEnd["timestamp"]); - } - } - - return $i; - }, array_values(array_filter(scoreOrderGlobal(), function ($i) { - return $i["_system"] === "gdapd"; - }))), - ...array_map(function ($i) { - $system = "hrbom"; - $i["_lastFronted"] = -1; - $id = $i["id"]; - $memberData = $i; - - $fronters = array_map(function ($item) { - return $item["id"]; - }, json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/$system/fronters.json"), true)["members"]); - - if (in_array($id, $fronters)) { - $i["_lastFronted"] = time(); - } else { - $switches = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/$system/switches.json"), true); - - $thisMember = array_filter($switches, function ($item) use ($memberData) { - return in_array($memberData["id"], $item["members"]); - }); - - $thisMember = array_values($thisMember); - $frontingEnd = null; - - if (count($thisMember) > 0) { - $thisIndex = array_search($thisMember[0], $switches); - - $frontingStart = $thisMember[0]; - $frontingEnd = $switches[$thisIndex - 1]; - } - - if ($frontingEnd !== null && isset($frontingStart)) { - $i["_lastFronted"] = strtotime($frontingEnd["timestamp"]); - } - } - - return $i; - }, array_values(array_filter(scoreOrderGlobal(), function ($i) { - return $i["_system"] === "hrbom"; - }))), - ...array_map(function ($i) { - global $app; - $system = $app["other"]["id"]; - $i["_lastFronted"] = -1; - $id = $i["id"]; - $memberData = $i; - - $fronters = array_map(function ($item) { - return $item["id"]; - }, json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/$system/fronters.json"), true)["members"]); - - if (in_array($id, $fronters)) { - $i["_lastFronted"] = time(); - } else { - $switches = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/$system/switches.json"), true); - - $thisMember = array_filter($switches, function ($item) use ($memberData) { - return in_array($memberData["id"], $item["members"]); - }); - - $thisMember = array_values($thisMember); - $frontingEnd = null; - - if (count($thisMember) > 0) { - $thisIndex = array_search($thisMember[0], $switches); - - $frontingStart = $thisMember[0]; - $frontingEnd = $switches[$thisIndex - 1]; - } - - if ($frontingEnd !== null && isset($frontingStart)) { - $i["_lastFronted"] = strtotime($frontingEnd["timestamp"]); - } - } - - return $i; - }, array_values(array_filter(scoreOrderGlobal(), function ($i) { - global $app; - return $i["_system"] === $app["other"]["id"]; - }))) - ]; uasort($members, function ($a, $b) { - return $b["_lastFronted"] - $a["_lastFronted"]; - }); $members = array_reverse($members); foreach ($members as $member): - - $metadata = $member["_metadata"];?> -
" class="relation" style="display: none; margin-bottom:10px;padding:10px;border-radius:10px;grid-template-columns: 1fr 2fr max-content;"> - "> - " style="width:24px;">  - - -
- - Never fronted - - Last fronted () - -
-
- - - - - -
- - diff --git a/pages/byspecies.inc b/pages/byspecies.inc deleted file mode 100644 index 4a9ce66..0000000 --- a/pages/byspecies.inc +++ /dev/null @@ -1,97 +0,0 @@ - -
-
- () -
- -
- 0): ?> - ">" style="width:24px;"> ,
'); $index++; endforeach; ?> - - -
-
- 0) species($earth, "earth", $lang["species"]["earth"][3]); - if (count($pegasus) > 0) species($pegasus, "pegasus", $lang["species"]["pegasus"][3]); - if (count($unicorn) > 0) species($unicorn, "unicorn", $lang["species"]["unicorn"][3]); - if (count($alicorn) > 0) species($alicorn, "alicorn", $lang["species"]["alicorn"][3]); - if (count($batpony) > 0) species($batpony, "batpony", $lang["species"]["batpony"][3]); - if (count($crystal) > 0) species($crystal, "crystal", $lang["species"]["crystal"][3]); - if (count($deer) > 0 ) species($deer, "deer", "Deers"); - if (count($kirin) > 0) species($kirin, "kirin", "Kirins"); - if (count($changeling) > 0) species($changeling, "changeling", "Changelings"); - if (count($merpony) > 0) species($merpony, "merpony", "Merponies"); - if (count($human) > 0) species($human, "human", "Humans"); -} - -?> - -
-
-

Members by species

- -
- - \ No newline at end of file diff --git a/pages/emergency.inc b/pages/emergency.inc deleted file mode 100644 index d57269a..0000000 --- a/pages/emergency.inc +++ /dev/null @@ -1,15 +0,0 @@ - - -
-
-
- -
-
- - 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 @@ - 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 diff --git a/pages/lists.inc b/pages/lists.inc deleted file mode 100644 index e14f706..0000000 --- a/pages/lists.inc +++ /dev/null @@ -1,29 +0,0 @@ - - -
- - - diff --git a/pages/metadata.inc b/pages/metadata.inc deleted file mode 100644 index 53d5c05..0000000 --- a/pages/metadata.inc +++ /dev/null @@ -1,197 +0,0 @@ - "01-01", - "year" => null, - "age" => 0 - ]; - - if (isset($_GET["age"]) && is_numeric($_GET["age"])) { - $toUpdate["birth"]["age"] = (int)$_GET["age"]; - } else if (isset($_GET["age"]) && preg_match("/^\d{1,2}-\d{1,2}$/", $_GET["age"]) === 1) { - $toUpdate["birth"]["age"] = $_GET["age"]; - } - - if (isset($_GET["birth"]) && trim($_GET['birth']) !== "" && !!preg_match("/^\d{4}-\d{2}-\d{2}$/m", $_GET['birth'])) { - $toUpdate["birth"]["year"] = (int)substr($_GET["birth"],0, 4); - $toUpdate["birth"]["date"] = substr($_GET["birth"],5); - } - - if (isset($_GET["membc"])) { - $toUpdate["code"] = $_GET['membc']; - } - - $flags = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/flags.json"), true); - - foreach ($flags as $id => $name) if (!is_array($name)) { - if (isset($_GET['flags'][$id])) { - $toUpdate[$id] = true; - } else { - $toUpdate[$id] = false; - } - } else foreach ($name as $id2 => $_) { - if (isset($_GET['flags'][$id][$id2])) { - $toUpdate[$id][$id2] = true; - } else { - $toUpdate[$id][$id2] = false; - } - } - - foreach ($toUpdate as $item => $value) { - $metadata[$item] = $value; - } - - if (isset($metadata["bitset"])) unset($metadata["bitset"]); - if (isset($metadata["code"])) unset($metadata["code"]); - if (trim($metadata["species"][1]) === "") unset($metadata["species"][1]); - - file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/metadata/" . $memberID . ".json", json_encode($metadata)); - file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/cache/navigation.json", "{}"); - file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/cache/home.json", "{}"); - file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/cache/species.json", "{}"); - file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/cache/relations.json", "{}"); - file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/cache/planner.json", "{}"); - - createJob("RefreshCache", []); - - header("Location: /" . $_GET['_']); - } else { - require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/fragments/metadata.inc'; - } -} - -exit; \ No newline at end of file diff --git a/pages/page.inc b/pages/page.inc index fa82a10..4de846b 100644 --- a/pages/page.inc +++ b/pages/page.inc @@ -4,7 +4,7 @@ global $lang; global $pages; global $isLoggedIn; global $isLowerLoggedIn; $app = $GLOBALS["ColdHazeApp"]; -$travelling = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/travelling/travelling.json"), true); +$travelling = []; if (!isset($_GET['_']) || trim($_GET['_']) === "") peh_error("Invalid request", 400); $parts = explode("/", $_GET['_']); @@ -16,7 +16,7 @@ if (($parts[0] !== "raindrops" && $parts[0] !== "moonglow" && $parts[0] !== $app $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 file_exists($_SERVER['DOCUMENT_ROOT'] . "/includes/data/metadata/" . $i["id"] . ".json"); + return true; })); $namesOther = []; @@ -110,4 +110,4 @@ if ($member === null) { require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/fragments/member.inc'; } -exit; \ No newline at end of file +exit; diff --git a/pages/pair.inc b/pages/pair.inc deleted file mode 100644 index 3adc14f..0000000 --- a/pages/pair.inc +++ /dev/null @@ -1,216 +0,0 @@ - - -
-
-

Pair a new device

- - - - - -

Pairing allows a connected device that cannot normally use Ponycule to gather data. This device will get full access to your account as if they were acting on your behalf, so make sure you trust the device and/or application you are using.

- - -

Equestria.dev may not have verified the application you use, always check for a signature. Enter the pairing code displayed on your device below:

- - - -
- Error: You cannot use the pairing feature because your current session is using the old authentication system. Please log out and log in again to continue. -
- -
- - - - - - - - - diff --git a/pages/pleasure.inc b/pages/pleasure.inc deleted file mode 100644 index 5435bd1..0000000 --- a/pages/pleasure.inc +++ /dev/null @@ -1,16 +0,0 @@ - - -
-
-
- -
-
- - diff --git a/pages/ponytown.inc b/pages/ponytown.inc deleted file mode 100644 index b268aa3..0000000 --- a/pages/ponytown.inc +++ /dev/null @@ -1,258 +0,0 @@ - - -
-
-
-

Pony Town uploader for

- - -
Successfully uploaded a new Pony Town character for this member, it may take a few minutes to update across the website.
- - -
-
-
-

Current version

- -
-
- " style="width: 100%; border: 1px dashed rgba(255, 255, 255, .5); border-radius: 10px;"> -
-
- " style="width: 100%; border: 1px dashed rgba(255, 255, 255, .5); border-radius: 10px;"> -
-
- - 60): ?> -

This Pony Town character needs to be updated.
Ponycule now relies on pixel-perfect versions of one's Pony Town character to work properly, and the current character for this member is not compliant or non-existant.

- -
-
- -
-
-

Upload a new version

- -
-
    -
  1. Open Pony Town [main, event, eventblue, eventgreen, breezy, building], login if needed, and select the right pony
  2. -
  3. Click on edit
  4. -
  5. Focus on Export and click on Image export zoom
  6. -
  7. In the menu, select 1x
  8. -
  9. Click on Image export settings and uncheck everything, like this:
    [all settings unchecked]
  10. -
  11. Click on PNG and download the file to your device
  12. -
  13. Upload this file here (yes this is a button):
  14. -
  15. Go back to Pony Town, click on Image export settings again
  16. -
  17. Check "Head only", and nothing else, like this:
    [Head only checked]
  18. -
  19. Click on PNG once again and download the file to your device
  20. -
  21. Upload this file (the second one) here (yes this is also a button):
  22. -
  23. We will check if you used the correct settings and save it if everything is good.
  24. -
-
- - - - - - -
-
- - -
-
-
- - \ No newline at end of file diff --git a/pages/public.inc b/pages/public.inc index f87256b..f714f89 100644 --- a/pages/public.inc +++ b/pages/public.inc @@ -20,7 +20,7 @@ function banner() { $isLoggedIn = false; $isLowerLoggedIn = false; $byColor = ge

- " data-bs-toggle="tooltip" src="" style="height:32px;position:absolute;z-index:99;"> +

@@ -200,4 +200,4 @@ function members() { $isLoggedIn = false; $isLowerLoggedIn = false; global $app; - \ No newline at end of file + diff --git a/pages/relations.inc b/pages/relations.inc deleted file mode 100644 index 5d3f7ef..0000000 --- a/pages/relations.inc +++ /dev/null @@ -1,135 +0,0 @@ - - - - - - -
-
- -
- - diff --git a/pages/schedule.inc b/pages/schedule.inc deleted file mode 100644 index 3c6bc2a..0000000 --- a/pages/schedule.inc +++ /dev/null @@ -1,235 +0,0 @@ - 0) { - $thisIndex = array_search($thisMember[0], $switches); - - $frontingStart = $thisMember[0]; - $frontingEnd = $switches[$thisIndex - 1]; - } - - if ($frontingEnd !== null && isset($frontingStart)) { - $i["_lastFronted"] = strtotime($frontingEnd["timestamp"]); - } - } - - return $i; -}, array_values(array_filter(scoreOrderGlobal(), function ($i) { - return $i["_system"] === "gdapd"; -}))); - -if (isset($_GET["ignore"]) && isset($_GET["day"])) { - if ($_GET["ignore"] === "1") { - if (preg_match("/^\d{4}-\d{2}-\d{2}$/m", $_GET["day"]) === false) { - header("Location: /-/schedule"); - die(); - } - - if (!in_array($_GET["day"], $ignored)) { - $ignored[] = $_GET["day"]; - } - - file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/schedule/ignored.json", json_encode($ignored)); - header("Location: /-/schedule"); - die(); - } elseif ($_GET["ignore"] === "0") { - if (preg_match("/^\d{4}-\d{2}-\d{2}$/m", $_GET["day"]) === false) { - header("Location: /-/schedule"); - die(); - } - - if (in_array($_GET["day"], $ignored)) { - unset($ignored[array_search($_GET["day"], $ignored)]); - } - - file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/schedule/ignored.json", json_encode($ignored)); - header("Location: /-/schedule"); - die(); - } - - die(); -} - - -?> - - - -
-
-
- -

Raindrops System schedule

-
-
    - " . (getMemberWithoutSystem($id)["display_name"] ?? getMemberWithoutSystem($id)["name"]) . ""); - } else { - echo("
  • NULL (" . $id . ")
  • "); - } - } ?> -
-
    - 0) $times[] = getLastFronted($members, $id); - } - - $timeA = time() - min($times); - $times = []; - - foreach ($b as $id) { - if (getLastFronted($members, $id) > 0) $times[] = getLastFronted($members, $id); - } - - $timeB = time() - min($times); - - if ($timeA < 5 || $timeB < 5) { - return -INF; - } else { - return $timeB - $timeA; - } - }); $pairsM = array_values($pairs); foreach ($pairsM as $pair): $times = []; ?> -
  • - - "> - - () -
  • - -
-
    - 0) $times[] = getLastFronted($members, $id); - } - - $timeA = time() - min($times); - $times = []; - - foreach ($b as $id) { - if (getLastFronted($members, $id) > 0) $times[] = getLastFronted($members, $id); - } - - $timeB = time() - min($times); - - if ($timeA < 5 || $timeB < 5) { - return -INF; - } else { - return $timeB - $timeA; - } - }); $pairsM = array_values($pairs2); foreach ($pairsM as $pair): $times = []; ?> -
  • - - "> - - () -
  • - -
-
- -
- -
- : -
-
- - ">"> - and - -
- - -
-
- - diff --git a/pages/sessions.inc b/pages/sessions.inc deleted file mode 100644 index 444e981..0000000 --- a/pages/sessions.inc +++ /dev/null @@ -1,226 +0,0 @@ - - -
-
-

Sessions

- - -

Here are all the currently open sessions for your account. Clicking on a session will delete it, meaning the device using this session will be logged out.

- - - - -
- Error: You cannot use the session manager because your current session is using the old authentication system. Please log out and log in again to continue. -
- -
- - - - - - - - diff --git a/pages/splitting.inc b/pages/splitting.inc deleted file mode 100644 index 2f5fa39..0000000 --- a/pages/splitting.inc +++ /dev/null @@ -1,62 +0,0 @@ - - -
-
- -
-

Members by splitting date

- -
- "> - " style="width:24px;">  - - -
- Formed at least () -
-
- -
- - - -
- - -- cgit