From eb89b15c0f044673c1206a418a21d0baba1a675e Mon Sep 17 00:00:00 2001 From: RaindropsSys Date: Sun, 12 Mar 2023 19:16:53 +0100 Subject: Updated 104 files, added 3 files, deleted 4 files and renamed 36 files (automated) --- includes/util/bitset.inc | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 includes/util/bitset.inc (limited to 'includes/util/bitset.inc') diff --git a/includes/util/bitset.inc b/includes/util/bitset.inc new file mode 100644 index 0000000..131cb39 --- /dev/null +++ b/includes/util/bitset.inc @@ -0,0 +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