Helper für Authentifizierung erstellt

This commit is contained in:
blaerf 2025-11-16 12:33:06 +01:00
parent 8460df6eaf
commit 92ded0c378

View 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'];
?>