summaryrefslogtreecommitdiff
path: root/includes/bitset.inc
diff options
context:
space:
mode:
authorRaindropsSys <contact@minteck.org>2023-03-12 19:16:53 +0100
committerRaindropsSys <contact@minteck.org>2023-03-12 19:16:53 +0100
commiteb89b15c0f044673c1206a418a21d0baba1a675e (patch)
tree39ac31a576d8b8392cbd9baf8d67621bf2cefa86 /includes/bitset.inc
parent5385f0ed8fbb4325203a222a75e6700ffb519349 (diff)
downloadpluralconnect-eb89b15c0f044673c1206a418a21d0baba1a675e.tar.gz
pluralconnect-eb89b15c0f044673c1206a418a21d0baba1a675e.tar.bz2
pluralconnect-eb89b15c0f044673c1206a418a21d0baba1a675e.zip
Updated 104 files, added 3 files, deleted 4 files and renamed 36 files (automated)
Diffstat (limited to 'includes/bitset.inc')
-rw-r--r--includes/bitset.inc21
1 files changed, 0 insertions, 21 deletions
diff --git a/includes/bitset.inc b/includes/bitset.inc
deleted file mode 100644
index 131cb39..0000000
--- a/includes/bitset.inc
+++ /dev/null
@@ -1,21 +0,0 @@
-<?php
-
-function parseMetadata ($metadata) {
- $metadata["little"] = 0;
-
- $age = -1;
-
- if (isset($metadata["birth"]["age"]) && $metadata["birth"]["age"] !== 0) {
- $age = $metadata["birth"]["age"];
- } else if (isset($metadata["birth"]["year"]) && $metadata["birth"]["year"] > 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