Helper für Authentifizierung erstellt
This commit is contained in:
parent
8460df6eaf
commit
92ded0c378
11
app/Helpers/authenticatedUserHelper.php
Normal file
11
app/Helpers/authenticatedUserHelper.php
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
<?php
|
||||||
|
session_start();
|
||||||
|
|
||||||
|
if (empty($_SESSION['logged_in']) || $_SESSION['logged_in'] !== true) {
|
||||||
|
header("Location: login.php");
|
||||||
|
exit();
|
||||||
|
}
|
||||||
|
|
||||||
|
$username = $_SESSION['username'];
|
||||||
|
|
||||||
|
?>
|
||||||
Loading…
Reference in New Issue
Block a user