diff options
-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; } |