summaryrefslogtreecommitdiff
path: root/app.php
diff options
context:
space:
mode:
Diffstat (limited to 'app.php')
-rw-r--r--app.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/app.php b/app.php
index eb35cd2..edf2439 100644
--- a/app.php
+++ b/app.php
@@ -62,7 +62,7 @@ if (in_array($toplevel, ["editor", "icons", "species", "uploads"])) {
$GLOBALS["ColdHazePerformance"]["router"] = (microtime(true) - $start) * 1000;
require_once $_SERVER['DOCUMENT_ROOT'] . "/pages/" . $toplevel . ".inc";
}
- } else if ($toplevel === "cloudburst" || $toplevel === "raindrops" || (($isLoggedIn || $isLowerLoggedIn) && $toplevel === $app["other"]["slug"])) {
+ } else if ($toplevel === "cloudburst" || $toplevel === "raindrops" || $toplevel === "moonglow" || (($isLoggedIn || $isLowerLoggedIn) && $toplevel === $app["other"]["slug"])) {
$parts = explode("/", $_GET['_']);
if (isset($parts[1]) && $parts[1] !== "-") {
@@ -96,6 +96,11 @@ if (in_array($toplevel, ["editor", "icons", "species", "uploads"])) {
}, array_filter(json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/gdapd/members.json"), true), function ($i) {
return file_exists($_SERVER['DOCUMENT_ROOT'] . "/includes/data/metadata/" . $i["id"] . ".json");
})), "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 file_exists($_SERVER['DOCUMENT_ROOT'] . "/includes/data/metadata/" . $i["id"] . ".json");
+ }));
$namesOther = [];
if ($isLoggedIn || $isLowerLoggedIn) {
@@ -106,7 +111,7 @@ if (in_array($toplevel, ["editor", "icons", "species", "uploads"])) {
})), $app["other"]["unknown"]];
}
- if ((in_array($toplevel, $namesCloudburst) || in_array($toplevel, $namesRaindrops) || in_array($toplevel, $namesOther)) && $toplevel !== "unknown") {
+ if ((in_array($toplevel, $namesCloudburst) || in_array($toplevel, $namesRaindrops) || in_array($toplevel, $namesOther) || in_array($toplevel, $namesMoonglow)) && $toplevel !== "unknown") {
$pageFile = $_SERVER['DOCUMENT_ROOT'] . "/pages/page.inc";
$GLOBALS["ColdHazePerformance"]["router"] = (microtime(true) - $start) * 1000;
require_once $_SERVER['DOCUMENT_ROOT'] . "/pages/page.inc";