summaryrefslogtreecommitdiff
path: root/pages/rules.inc
diff options
context:
space:
mode:
Diffstat (limited to 'pages/rules.inc')
-rw-r--r--pages/rules.inc12
1 files changed, 8 insertions, 4 deletions
diff --git a/pages/rules.inc b/pages/rules.inc
index 23447f2..0c57819 100644
--- a/pages/rules.inc
+++ b/pages/rules.inc
@@ -1,5 +1,9 @@
<?php
+if (time() >= 1682985600) {
+ peh_error("Page not found: rules", 404);
+}
+
require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/util/functions.inc";
require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/init.inc"; global $title; global $isLoggedIn; global $lang; global $pages;
require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/util/Parsedown.php"; $Parsedown = new Parsedown();
@@ -44,14 +48,16 @@ $cache = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/da
?>
-<?php if (!isset($cache["content"])): ob_start(); ?>
-
<br>
<div class="container">
<div id="page-content">
<h2>Rules</h2>
<p><a onclick="event.target.blur();" href="#" data-bs-toggle="modal" data-bs-target="#editor">Edit rules</a></p>
+ <div class="alert alert-warning">
+ The rules system will be removed on May 2<sup>nd</sup> 2023 at midnight UTC. This page will not be accessible anymore. If there is any data you want to keep, ask Raindrops System for a copy of the rules database.
+ </div>
+
<?php
$rules = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/rules/rules.json"), true);
@@ -279,7 +285,5 @@ $cache = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/da
filter: invert(1);
}
</style>
-<?php $cache["content"] = ob_get_contents(); ob_end_clean(); endif;
-echo($cache["content"]); file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/cache/rules.json", json_encode($cache)); ?>
<?php require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/components/footer.inc'; ?>