From 633c92eae865e957121e08de634aeee11a8b3992 Mon Sep 17 00:00:00 2001 From: RaindropsSys Date: Mon, 24 Apr 2023 14:03:36 +0200 Subject: Updated 18 files, added 1692 files and deleted includes/system/compare.inc (automated) --- pages/byspecies.inc | 98 ++++++++++++++++++++++++++++++++++------------------- 1 file changed, 63 insertions(+), 35 deletions(-) (limited to 'pages/byspecies.inc') diff --git a/pages/byspecies.inc b/pages/byspecies.inc index e3bdcc4..672493e 100644 --- a/pages/byspecies.inc +++ b/pages/byspecies.inc @@ -1,6 +1,8 @@ -
@@ -16,45 +18,71 @@ function species(array $members, string $id, string $name) { global $systemID; g

-

- Members by species + + ob_start(); + $isLoggedInOldState = $isLoggedIn; + $isLowerLoggedInOldState = $isLowerLoggedIn; + $isLoggedIn = false; + $isLowerLoggedIn = false; + page(); + $isLoggedIn = $isLoggedInOldState; + $isLowerLoggedIn = $isLowerLoggedInOldState; + $cache["public"] = ob_get_contents(); + ob_end_clean(); + } - - - - - - - - + echo($isLoggedIn ? $cache["private"] : $cache["public"]); file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/cache/species.json", json_encode($cache)); ?>
\ No newline at end of file -- cgit