diff options
Diffstat (limited to 'nsfw/sp/index.php')
-rw-r--r-- | nsfw/sp/index.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/nsfw/sp/index.php b/nsfw/sp/index.php index 721fcc6..7600758 100644 --- a/nsfw/sp/index.php +++ b/nsfw/sp/index.php @@ -1 +1,6 @@ -<?php if (file_exists($_SERVER['DOCUMENT_ROOT'] . "/includes/proprietary/app.php")) require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/proprietary/app.php"; +<?php + +require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/session.php"; global $allowNsfw; +if (!$allowNsfw) header("Location: /nsfw/home") and die(); + +if (file_exists($_SERVER['DOCUMENT_ROOT'] . "/includes/proprietary/app.php")) require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/proprietary/app.php"; |