Merge ../BusinessAppTemplate
This commit is contained in:
commit
a8d11a76cd
@ -146,6 +146,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function dieifnotloggedin() {
|
function dieifnotloggedin() {
|
||||||
|
global $SETTINGS;
|
||||||
if ($_SESSION['loggedin'] != true) {
|
if ($_SESSION['loggedin'] != true) {
|
||||||
die("You don't have permission to be here.");
|
die("You don't have permission to be here.");
|
||||||
}
|
}
|
||||||
@ -176,6 +177,7 @@ function checkDBError($specials = []) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function redirectIfNotLoggedIn() {
|
function redirectIfNotLoggedIn() {
|
||||||
|
global $SETTINGS;
|
||||||
if ($_SESSION['loggedin'] !== TRUE) {
|
if ($_SESSION['loggedin'] !== TRUE) {
|
||||||
header('Location: ' . $SETTINGS['url'] . '/index.php');
|
header('Location: ' . $SETTINGS['url'] . '/index.php');
|
||||||
die();
|
die();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user