summaryrefslogtreecommitdiff
path: root/includes/sysbanner.inc
diff options
context:
space:
mode:
Diffstat (limited to 'includes/sysbanner.inc')
-rw-r--r--includes/sysbanner.inc16
1 files changed, 11 insertions, 5 deletions
diff --git a/includes/sysbanner.inc b/includes/sysbanner.inc
index d240869..2ca3ee8 100644
--- a/includes/sysbanner.inc
+++ b/includes/sysbanner.inc
@@ -6,7 +6,7 @@ global $memberID;
global $systemCommonName;
global $systemID;
global $system;
-global $lang; global $pages;
+global $lang; global $pages; global $app;
$travelling = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/travelling/travelling.json"), true);
$pages = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/pages.json"), true);
@@ -14,7 +14,9 @@ $pages = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/pa
?>
<div id="system-info" style="display:grid;grid-template-columns: 128px 1fr;background-color:rgba(255, 255, 255, .05);margin-left: -20px; margin-right: -20px;margin-top:-20px;padding: 20px 20px 10px;">
- <img src="/assets/uploads/<?= $system ?>.png" alt="" style="height:128px;border-top-left-radius:10px;border-bottom-left-radius:10px;">
+ <div style="display: flex; align-items: center; justify-content: center;">
+ <img src="<?= getAsset($systemID) ?>" alt="" style="width:128px;max-height:128px;border-top-left-radius:10px;border-bottom-left-radius:10px;">
+ </div>
<div style="padding:10px 10px 10px 20px;text-align:center;">
<div style="display: grid; grid-template-columns: 1fr;height:100%;grid-template-rows: max-content max-content 1fr;">
<h3 style="height:max-content;"><?= $systemCommonName ?></h3>
@@ -81,9 +83,13 @@ $pages = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/pa
<span>
<?php
- $travellers = array_filter(json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/" . ($systemID === "gdapd" ? "ynmuc" : "gdapd") . "/members.json"), true), function ($i) use ($travelling) {
- return $travelling[$i['id']]['travelling'] && !$travelling[$i['id']]['equestria'];
- });
+ if ($systemID === $app["other"]["id"]) {
+ $travellers = [];
+ } else {
+ $travellers = array_filter(json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/" . ($systemID === "gdapd" ? "ynmuc" : "gdapd") . "/members.json"), true), function ($i) use ($travelling) {
+ return $travelling[$i['id']]['travelling'] && !$travelling[$i['id']]['equestria'];
+ });
+ }
?>
<b><?= $lang["system"]["members"] ?> </b><?= count(scoreOrder(json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/$systemID/members.json"), true), $systemID)) ?><?php