refactoring

This commit is contained in:
NOrtmann1
2026-06-10 18:08:23 +02:00
parent d0d93be96b
commit 93bd561ff9
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -18,13 +18,13 @@ try {
$_SESSION = []; $_SESSION = [];
session_destroy(); session_destroy();
header("Location: index.php"); header("Location: ../../index.php");
exit(); exit();
} catch (Exception $e) { } catch (Exception $e) {
$_SESSION["message"] = "internal_error"; $_SESSION["message"] = "internal_error";
header("Location: index.php?pfad=profile"); header("Location: ../../index.php?pfad=profile");
exit(); exit();
} }
+1 -1
View File
@@ -13,7 +13,7 @@ if ($_SERVER["REQUEST_METHOD"] === "POST") {
$_SESSION = []; $_SESSION = [];
session_destroy(); session_destroy();
header("Location: index.php"); header("Location: ../../index.php");
exit(); exit();
} }
+1 -1
View File
@@ -2,5 +2,5 @@
$_SESSION = []; $_SESSION = [];
session_destroy(); session_destroy();
header("Location: index.php"); header("Location: ../../index.php");
exit(); exit();