From 38a3b0ce3ce9dac3630c283589ed998f0b837de6 Mon Sep 17 00:00:00 2001 From: Minteck Date: Sat, 11 Feb 2023 18:10:01 +0100 Subject: Updated includes/bitset.inc (automated) --- includes/bitset.inc | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'includes') diff --git a/includes/bitset.inc b/includes/bitset.inc index 8e3f5b2..131cb39 100644 --- a/includes/bitset.inc +++ b/includes/bitset.inc @@ -1,5 +1,21 @@ 1990) { + $age = (int)date('Y') - $metadata["birth"]["year"] + (strtotime(date('Y') . "-" . $metadata["birth"]["date"]) <= time() ? 0 : -1); + } + + if ($age > 0 && $age <= 10) { + $metadata["little"] = 2; + } else if ($age > 0 && $age <= 15) { + $metadata["little"] = 3; + } + return $metadata; } \ No newline at end of file -- cgit