$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'; ?>

Rules

Edit rules

Rule : 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 .

text(strip_tags($rule["content"])) ?>