From e72d0adbcd7e69928a1ef380c7a841c160284c68 Mon Sep 17 00:00:00 2001 From: Minteck Date: Mon, 2 Jan 2023 20:29:01 +0100 Subject: Update --- pages/rules-old.inc | 253 +--------------------------------------------------- 1 file changed, 2 insertions(+), 251 deletions(-) (limited to 'pages/rules-old.inc') diff --git a/pages/rules-old.inc b/pages/rules-old.inc index 1fd7f94..a567bc5 100644 --- a/pages/rules-old.inc +++ b/pages/rules-old.inc @@ -1,253 +1,4 @@ $rule) { - if (!isset($rule["name"]) || !isset($rule["content"]) && !is_numeric($index)) { - header("Location: /-/rules"); - die(); - } - - if (trim($rule["name"]) === "") { - unset($_POST["payload"][$index]); - continue; - } - - if (!isset($rule["approved"])) $rule["approved"] = []; - if (isset($rule["approved"][0])) $rule["approved"][0] = true; else $rule["approved"][0] = false; - if (isset($rule["approved"][1])) $rule["approved"][1] = true; else $rule["approved"][1] = false; - - $_POST["payload"][$index] = $rule; - } - - file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/rules/rules.json", utf8_encode(json_encode($_POST["payload"]))); - - header("Location: /-/rules"); - die(); -} - -require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/header.inc'; - -?> - -
-
-
-

Systems rules

-

Click on a rule to view additional details. Edit rules

- - - -
    - -
  • -
    - - . - - Unapproved - - - -
    - This rule has not yet been approved. All rules need to be approved by the leaders from both systems. This rule is still missing approval from . -
    - -
    class="list-group-item"> - -
    -
    -
  • - -
-
-
- - - - - - - - +header("Location: /-/rules"); +die(); \ No newline at end of file -- cgit