From 5860551daa0f60103ad24e93da29f401a653f144 Mon Sep 17 00:00:00 2001 From: RaindropsSys Date: Fri, 29 Mar 2024 22:05:35 +0100 Subject: Updated 20 files, added 6 files, deleted 144 files and renamed .idea/ponycule.iml (automated) --- pages/schedule.inc | 235 ----------------------------------------------------- 1 file changed, 235 deletions(-) delete mode 100644 pages/schedule.inc (limited to 'pages/schedule.inc') diff --git a/pages/schedule.inc b/pages/schedule.inc deleted file mode 100644 index 3c6bc2a..0000000 --- a/pages/schedule.inc +++ /dev/null @@ -1,235 +0,0 @@ - 0) { - $thisIndex = array_search($thisMember[0], $switches); - - $frontingStart = $thisMember[0]; - $frontingEnd = $switches[$thisIndex - 1]; - } - - if ($frontingEnd !== null && isset($frontingStart)) { - $i["_lastFronted"] = strtotime($frontingEnd["timestamp"]); - } - } - - return $i; -}, array_values(array_filter(scoreOrderGlobal(), function ($i) { - return $i["_system"] === "gdapd"; -}))); - -if (isset($_GET["ignore"]) && isset($_GET["day"])) { - if ($_GET["ignore"] === "1") { - if (preg_match("/^\d{4}-\d{2}-\d{2}$/m", $_GET["day"]) === false) { - header("Location: /-/schedule"); - die(); - } - - if (!in_array($_GET["day"], $ignored)) { - $ignored[] = $_GET["day"]; - } - - file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/schedule/ignored.json", json_encode($ignored)); - header("Location: /-/schedule"); - die(); - } elseif ($_GET["ignore"] === "0") { - if (preg_match("/^\d{4}-\d{2}-\d{2}$/m", $_GET["day"]) === false) { - header("Location: /-/schedule"); - die(); - } - - if (in_array($_GET["day"], $ignored)) { - unset($ignored[array_search($_GET["day"], $ignored)]); - } - - file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/schedule/ignored.json", json_encode($ignored)); - header("Location: /-/schedule"); - die(); - } - - die(); -} - - -?> - - - -
-
-
- -

Raindrops System schedule

-
-
    - " . (getMemberWithoutSystem($id)["display_name"] ?? getMemberWithoutSystem($id)["name"]) . ""); - } else { - echo("
  • NULL (" . $id . ")
  • "); - } - } ?> -
-
    - 0) $times[] = getLastFronted($members, $id); - } - - $timeA = time() - min($times); - $times = []; - - foreach ($b as $id) { - if (getLastFronted($members, $id) > 0) $times[] = getLastFronted($members, $id); - } - - $timeB = time() - min($times); - - if ($timeA < 5 || $timeB < 5) { - return -INF; - } else { - return $timeB - $timeA; - } - }); $pairsM = array_values($pairs); foreach ($pairsM as $pair): $times = []; ?> -
  • - - "> - - () -
  • - -
-
    - 0) $times[] = getLastFronted($members, $id); - } - - $timeA = time() - min($times); - $times = []; - - foreach ($b as $id) { - if (getLastFronted($members, $id) > 0) $times[] = getLastFronted($members, $id); - } - - $timeB = time() - min($times); - - if ($timeA < 5 || $timeB < 5) { - return -INF; - } else { - return $timeB - $timeA; - } - }); $pairsM = array_values($pairs2); foreach ($pairsM as $pair): $times = []; ?> -
  • - - "> - - () -
  • - -
-
- -
- -
- : -
-
- - ">"> - and - -
- - -
-
- - -- cgit