From 5026c2f48d2a1bf8fbd3a63c1e41e59431054878 Mon Sep 17 00:00:00 2001 From: Minteck Date: Wed, 8 Feb 2023 08:41:21 +0100 Subject: Updated 2 files (automated) --- pages/rules.inc | 55 +++++++++++++++++++++++++++++++++++++++++-------------- 1 file changed, 41 insertions(+), 14 deletions(-) (limited to 'pages') diff --git a/pages/rules.inc b/pages/rules.inc index 2268e75..bf156f2 100644 --- a/pages/rules.inc +++ b/pages/rules.inc @@ -50,14 +50,11 @@ require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/header.inc'; $rules = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/rules/rules.json"), true); $protectorCloudburst = array_values(array_filter(scoreOrderGlobal(), function ($i) { - return $i["_system"] === "ynmuc" && $i["_metadata"]["protector"]; - }))[0]; + return $i["_system"] === "ynmuc" && $i["_metadata"]["leader"]; + })); $protectorRaindrops = array_values(array_filter(scoreOrderGlobal(), function ($i) { - return $i["_system"] === "gdapd" && $i["_metadata"]["protector"]; - }))[0]; - - $pcName = getMiniName($protectorCloudburst["display_name"] ?? $protectorCloudburst["name"]); - $prName = getMiniName($protectorRaindrops["display_name"] ?? $protectorRaindrops["name"]); + return $i["_system"] === "gdapd" && $i["_metadata"]["leader"]; + })); ?> @@ -72,14 +69,34 @@ require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/header.inc';
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 $item) { + echo($item); + if ($index < count($list) - 2) { + echo(", "); + } else if ($index < count($list) - 1) { + echo(" and "); + } } ?>. @@ -93,6 +110,12 @@ require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/header.inc';
+ +