summaryrefslogtreecommitdiff
path: root/pages/splitting.inc
diff options
context:
space:
mode:
authorRaindropsSys <contact@minteck.org>2023-04-24 14:03:36 +0200
committerRaindropsSys <contact@minteck.org>2023-04-24 14:03:36 +0200
commit633c92eae865e957121e08de634aeee11a8b3992 (patch)
tree09d881bee1dae0b6eee49db1dfaf0f500240606c /pages/splitting.inc
parentc4657e4509733699c0f26a3c900bab47e915d5a0 (diff)
downloadpluralconnect-633c92eae865e957121e08de634aeee11a8b3992.tar.gz
pluralconnect-633c92eae865e957121e08de634aeee11a8b3992.tar.bz2
pluralconnect-633c92eae865e957121e08de634aeee11a8b3992.zip
Updated 18 files, added 1692 files and deleted includes/system/compare.inc (automated)
Diffstat (limited to 'pages/splitting.inc')
-rw-r--r--pages/splitting.inc7
1 files changed, 7 insertions, 0 deletions
diff --git a/pages/splitting.inc b/pages/splitting.inc
index d1dccae..2f5fa39 100644
--- a/pages/splitting.inc
+++ b/pages/splitting.inc
@@ -3,10 +3,15 @@
require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/init.inc"; global $title; global $isLoggedIn; global $lang; global $pages;
require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/components/header.inc';
+if (!file_exists($_SERVER['DOCUMENT_ROOT'] . "/includes/data/cache/splitting.json")) file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/cache/splitting.json", "{}");
+
+$cache = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/cache/splitting.json"), true);
+
?>
<br>
<div class="container">
+ <?php if (!isset($cache["content"])): ob_start(); ?>
<div id="page-content">
<h2>Members by splitting date</h2>
<?php $members = scoreOrderGlobal(); uasort($members, function ($a, $b) {
@@ -50,6 +55,8 @@ require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/components/header.inc';
}
}
</style>
+ <?php $cache["content"] = ob_get_contents(); ob_end_clean(); endif;
+ echo($cache["content"]); file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/cache/splitting.json", json_encode($cache)); ?>
</div>
<?php require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/components/footer.inc'; ?>