summaryrefslogtreecommitdiff
path: root/pages/money.inc
diff options
context:
space:
mode:
Diffstat (limited to 'pages/money.inc')
-rw-r--r--pages/money.inc6
1 files changed, 6 insertions, 0 deletions
diff --git a/pages/money.inc b/pages/money.inc
index aa2e57e..67a9a56 100644
--- a/pages/money.inc
+++ b/pages/money.inc
@@ -27,6 +27,12 @@ if (isset($parts[2])) {
$systemID = $_PROFILE["login"] === "cloudburst" ? "ynmuc" : "gdapd";
$fronters = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/" . ($_PROFILE["login"] === "cloudburst" ? "ynmuc" : "gdapd") . "/fronters.json"), true)["members"];
+if (!isset($parts[2])) {
+ unset($systemID);
+} else {
+ $systemID = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/money/" . $parts[2] . ".json"), true)["owner"] === "cloudburst" ? "ynmuc" : "gdapd";
+}
+
if (count($fronters) > 0) {
$myId = $fronters[0]["id"];
} else {