diff options
Diffstat (limited to 'pages/api/pleasure.php')
-rw-r--r-- | pages/api/pleasure.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/pages/api/pleasure.php b/pages/api/pleasure.php index b300a70..705adfe 100644 --- a/pages/api/pleasure.php +++ b/pages/api/pleasure.php @@ -1,7 +1,12 @@ <?php require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/util/session.inc"; global $isLoggedIn; global $isLowerLoggedIn; -if (!$isLoggedIn && !$isLowerLoggedIn) header("Location: /-/login") and die(); + +if (!$isLoggedIn && !$isLowerLoggedIn) { + header("Location: /-/login"); + die(); +} + global $_PROFILE; if ($_PROFILE["login"] === "cloudburst") return; |