summaryrefslogtreecommitdiff
path: root/includes/fragments/member.inc
diff options
context:
space:
mode:
Diffstat (limited to 'includes/fragments/member.inc')
-rw-r--r--includes/fragments/member.inc35
1 files changed, 0 insertions, 35 deletions
diff --git a/includes/fragments/member.inc b/includes/fragments/member.inc
index 8b153fa..0b1ce03 100644
--- a/includes/fragments/member.inc
+++ b/includes/fragments/member.inc
@@ -29,27 +29,8 @@ if ($memberData["name"] !== "unknown" && $memberData["name"] !== "fusion") {
global $isLoggedIn;
$frontersRaindrops = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/gdapd/fronters.json"), true);
-$frontersCloudburst = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/ynmuc/fronters.json"), true);
$frontersOther = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/other/fronters.json"), true);
-$fusionRaindrops = false;
-
-if ($memberData["name"] === "fusion") {
- if (in_array("fusion", array_map(function ($i) {
- return $i["name"];
- }, $frontersRaindrops["members"]))) {
- $fusionRaindrops = true;
-
- $memberData = array_values(array_filter($frontersRaindrops["members"], function ($i) {
- return $i["name"] === "fusion";
- }))[0];
- $memberCommonName = $memberData['display_name'] ?? $memberData['name'];
- $memberID = $memberData['id'];
- $system = $systemID === "gdapd" ? "cloudburst" : "raindrops";
- $systemID = $system === "cloudburst" ? "ynmuc" : "gdapd";
- }
-}
-
if (!file_exists($_SERVER['DOCUMENT_ROOT'] . "/includes/data/designs/" . $memberID . ".json")) file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/designs/" . $memberID . ".json", json_encode([
"_main" => [
"name" => "Main",
@@ -113,22 +94,6 @@ if (file_exists($_SERVER['DOCUMENT_ROOT'] . "/assets/ponies/" . $memberID . ".pn
<span>In all cases, feel free to ask!</span>
</div>
<br>
- <?php elseif ($memberData["name"] === "fusion"): ?>
- <br>
- <div class="alert alert-secondary" style="margin-bottom: 0 !important;">
- <p><?= $lang["member"]["fusion"][0] ?></p>
- <p><?= $lang["member"]["fusion"][1] ?></p>
- <p><?= $lang["member"]["fusion"][2] ?></p>
- <div class="list-group">
- <?php $foundFusion = false; $fusionOn = false; foreach ($fusionRaindrops ? $frontersRaindrops['members'] : $frontersCloudburst['members'] as $fronter): if ($fronter["name"] !== "fusion"): if ($fusionOn): $foundFusion = true; $name = str_ends_with($fronter['name'], "-travelling") ? substr($fronter['name'], 0, strlen($fronter['name']) - 11) : $fronter['name'] ?>
- <a class="list-group-item list-group-item-action text-black" href="/<?= $name ?>"><img src="<?= getAsset($system, $fronter["id"], "heads") ?>" style="filter:invert(1) hue-rotate(180deg);width:24px;"> <?= $fronter["display_name"] ?? $name ?></a>
- <?php endif; else: $fusionOn = true; endif; endforeach; ?>
- </div>
- <?php if (!$foundFusion): ?>
- <i><?= $lang["member"]["no_fusion"] ?></i>
- <?php endif; ?>
- </div>
- <br>
<?php else: ?><?php endif; ?>
</div>
</div>