From 953ddd82e48dd206cef5ac94456549aed13b3ad5 Mon Sep 17 00:00:00 2001 From: RaindropsSys Date: Fri, 17 Nov 2023 23:25:29 +0100 Subject: Updated 30 files and deleted 2976 files (automated) --- pages/byfront.inc | 62 ++++++++++++++++++------------------------------------- 1 file changed, 20 insertions(+), 42 deletions(-) (limited to 'pages/byfront.inc') diff --git a/pages/byfront.inc b/pages/byfront.inc index a8ff483..d3b8bf0 100644 --- a/pages/byfront.inc +++ b/pages/byfront.inc @@ -90,50 +90,12 @@ $travelling = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includ }))) ]; uasort($members, function ($a, $b) { return $b["_lastFronted"] - $a["_lastFronted"]; - }); $members = array_reverse($members); foreach ($members as $member): if ($member["_lastFronted"] !== -1 && $member["_lastFronted"] !== time()): + }); $members = array_reverse($members); foreach ($members as $member): if ($member["_lastFronted"] <= time() - 86400 * 21): - $metadata = $member["_metadata"]; - - if (!isset($metadata["birth"]["year"]) || $metadata["birth"]["age"] > 0) { - if ($metadata["birth"]["age"] === -1) { - $age = abs(log(0)); - } elseif ($metadata["birth"]["age"] <= 0) { - $age = null; - } else { - $age = $metadata["birth"]["age"]; - } - } else { - if ($metadata["birth"]["year"] <= 1900) { - $age = null; - } else { - $age = (int)date('Y') - $metadata["birth"]["year"] + (strtotime(date('Y') . "-" . $metadata["birth"]["date"]) <= time() ? 0 : -1); - } - } - - if ((isset($age) && $age > 0 && time() > 1677628800) || time() <= 1677628800): ?> -
opacity: 0.75;"> + $metadata = $member["_metadata"];?> + - +
time() - 86400 * 21): + + $metadata = $member["_metadata"];?> +
+ "> + " style="width:24px;">  + + +
+ + Never fronted + + Last fronted () + +
+
+