Weitere Reviewänderungen

This commit is contained in:
2026-05-31 22:21:50 +02:00
parent f9ab3f8db2
commit 541d5b4c5e
7 changed files with 158 additions and 71 deletions
+20
View File
@@ -0,0 +1,20 @@
<?php
require_once "includes/LocalUserDAO.php";
$dao = new LocalUserDAO();
if (!isset($_SESSION["user"])) {
header("Location: index.php?pfad=login");
exit();
}
$user = $dao->findUser($_SESSION["user_email"] ?? "");
if (!$user) {
$_SESSION = [];
session_destroy();
header("Location: index.php?pfad=login");
exit();
}