diff options
author | RaindropsSys <contact@minteck.org> | 2023-03-29 22:44:11 +0200 |
---|---|---|
committer | RaindropsSys <contact@minteck.org> | 2023-03-29 22:44:11 +0200 |
commit | a6d67b13d563e5b3f75ad3e7d92f35dc0c63bf07 (patch) | |
tree | 1f5e6e84b721ec4bb81677064757e776e20046e1 /includes | |
parent | dd8f22ea3c3f4301868a43c59d9d499e9294c3fb (diff) | |
download | booru-a6d67b13d563e5b3f75ad3e7d92f35dc0c63bf07.tar.gz booru-a6d67b13d563e5b3f75ad3e7d92f35dc0c63bf07.tar.bz2 booru-a6d67b13d563e5b3f75ad3e7d92f35dc0c63bf07.zip |
Updated includes/session.php (automated)
Diffstat (limited to 'includes')
-rw-r--r-- | includes/session.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/includes/session.php b/includes/session.php index bcb2bc2..54f70c8 100644 --- a/includes/session.php +++ b/includes/session.php @@ -120,10 +120,10 @@ if (file_exists("/peh") && file_exists("/peh/gdapd") && file_exists("/peh/ynmuc" if ($debug) echo(" Defined fixed age: " . (isset($info["birth"]["age"]) && ($info["birth"]["age"] > 0 || $info["birth"]["age"] === -1) ? "yes (" . ($info["birth"]["age"] === -1 ? "eternal" : $info["birth"]["age"]) . ")" : "no") . "\n"); if ($debug) echo(" Below 16 by fixed age: "); - if (isset($info["birth"]["age"]) && $info["birth"]["age"] < 16 && $info["birth"]["age"] > 0) { + if (isset($info["birth"]["age"]) && $info["birth"]["age"] < 15 && $info["birth"]["age"] > 0) { if ($debug) echo("yes <--\n"); if ($debug) echo(" Has set birth year: no\n"); - if ($debug) echo(" Calculated age over 16: no\n"); + if ($debug) echo(" Calculated age over 15: no\n"); if ($debug) echo(" Is otherwise permitted: no\n"); $allowNsfw = false; } else if (isset($info["birth"]["year"]) && $info["birth"]["year"] > 1900) { @@ -134,11 +134,11 @@ if (file_exists("/peh") && file_exists("/peh/gdapd") && file_exists("/peh/ynmuc" if ($debug) echo(" Has set birth year: yes (" . $info["birth"]["year"] . ", " . $age . ")\n"); - if ($age < 16) { - if ($debug) echo(" Calculated age over 16: no <--\n"); + if ($age < 15) { + if ($debug) echo(" Calculated age over 15: no <--\n"); $allowNsfw = false; } else { - if ($debug) echo(" Calculated age over 16: yes <--\n"); + if ($debug) echo(" Calculated age over 15: yes <--\n"); $allowNsfw = true; } @@ -146,13 +146,13 @@ if (file_exists("/peh") && file_exists("/peh/gdapd") && file_exists("/peh/ynmuc" } else if ((!isset($info["birth"]["age"]) || $info["birth"]["age"] === 0) && (!isset($info["birth"]["year"]) || $info["birth"]["year"] > 1900)) { if ($debug) echo("no\n"); if ($debug) echo(" Has set birth year: no\n"); - if ($debug) echo(" Calculated age over 16: no\n"); + if ($debug) echo(" Calculated age over 15: no\n"); if ($debug) echo(" Is otherwise permitted: no <--\n"); $allowNsfw = false; } else { if ($debug) echo("no\n"); if ($debug) echo(" Has set birth year: no\n"); - if ($debug) echo(" Calculated age over 16: no\n"); + if ($debug) echo(" Calculated age over 15: no\n"); if ($debug) echo(" Is otherwise permitted: yes <--\n"); $allowNsfw = true; } |