From 209356b8ade1920b50d1d3a1a5e121c6623d167b Mon Sep 17 00:00:00 2001 From: Minteck Date: Fri, 11 Nov 2022 23:47:49 +0100 Subject: Update --- pages/rules.inc | 243 ++++++++++++++++---------------------------------------- 1 file changed, 70 insertions(+), 173 deletions(-) (limited to 'pages/rules.inc') diff --git a/pages/rules.inc b/pages/rules.inc index 21ae7e6..eee3508 100644 --- a/pages/rules.inc +++ b/pages/rules.inc @@ -1,39 +1,6 @@ $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'; ?> @@ -41,164 +8,95 @@ require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/header.inc';
-

Systems rules

-

Click on a rule to view additional details. Edit rules

+

General rules

+

Click on a rule in the list to view the history of that rule, including all amendments. Note that older versions of a rule cannot be enforced anymore and are provided only for informational purposes.

- $pcName = getMiniName($protectorCloudburst["display_name"] ?? $protectorCloudburst["name"]); - $prName = getMiniName($protectorRaindrops["display_name"] ?? $protectorRaindrops["name"]); - - ?> +
    -
  • - . - - Unapproved + 0): ?>-: : + + +
      + 0): ?> + + + +
    • Curent version:
    • + +
    • Amendment Preamble-:
    • + + + +
    • Original rule:
    • + +
    • + This rule was never amended. +
    • +
    +
    +
  • +
+ + + +

Articles .1 to .:

+ +
    + +
  • +
    + + Article . 0): ?>-: : - -
    - 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"> - -
    + +
      + 0): ?> + + + +
    • Curent version:
    • + +
    • Amendment Preamble-:
    • + + + +
    • Original rule:
    • + +
    • + This rule was never amended. +
    • + +
  • - +
-
-
- - -