diff options
Diffstat (limited to 'pages/page.inc')
-rw-r--r-- | pages/page.inc | 6 |
1 files changed, 3 insertions, 3 deletions
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; |