From 7531dc362d15b8b1db49c659500b529d2bf835b2 Mon Sep 17 00:00:00 2001 From: Skylar Ittner Date: Wed, 2 Jan 2019 23:54:53 -0700 Subject: [PATCH] Whoops --- required.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/required.php b/required.php index 45be1df..b89147b 100644 --- a/required.php +++ b/required.php @@ -132,6 +132,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { } function dieifnotloggedin() { + global $SETTINGS; if ($_SESSION['loggedin'] != true) { sendError("Session expired. Please log out and log in again."); } @@ -162,6 +163,7 @@ function checkDBError($specials = []) { } function redirectIfNotLoggedIn() { + global $SETTINGS; if ($_SESSION['loggedin'] !== TRUE) { header('Location: ' . $SETTINGS['url'] . '/index.php'); die();