Skylar Ittner 3 months ago
parent
commit
7531dc362d
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      required.php

+ 2
- 0
required.php View File

@@ -132,6 +132,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
132 132
 }
133 133
 
134 134
 function dieifnotloggedin() {
135
+    global $SETTINGS;
135 136
     if ($_SESSION['loggedin'] != true) {
136 137
         sendError("Session expired.  Please log out and log in again.");
137 138
     }
@@ -162,6 +163,7 @@ function checkDBError($specials = []) {
162 163
 }
163 164
 
164 165
 function redirectIfNotLoggedIn() {
166
+    global $SETTINGS;
165 167
     if ($_SESSION['loggedin'] !== TRUE) {
166 168
         header('Location: ' . $SETTINGS['url'] . '/index.php');
167 169
         die();

Loading…
Cancel
Save