Browse Source

Merge ../BusinessAppTemplate

master
Skylar Ittner 8 months ago
parent
commit
a8d11a76cd
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      required.php

+ 2
- 0
required.php View File

@@ -146,6 +146,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
}

function dieifnotloggedin() {
global $SETTINGS;
if ($_SESSION['loggedin'] != true) {
die("You don't have permission to be here.");
}
@@ -176,6 +177,7 @@ function checkDBError($specials = []) {
}

function redirectIfNotLoggedIn() {
global $SETTINGS;
if ($_SESSION['loggedin'] !== TRUE) {
header('Location: ' . $SETTINGS['url'] . '/index.php');
die();

Loading…
Cancel
Save