From 93bd561ff9662a7558373e4de8a020826f7048d1 Mon Sep 17 00:00:00 2001 From: NOrtmann1 <145041949+NOrtmann1@users.noreply.github.com> Date: Wed, 10 Jun 2026 18:08:23 +0200 Subject: [PATCH] refactoring --- php/controller/deleteAccount-controller.php | 4 ++-- php/controller/deleteArticle-controller.php | 2 +- php/controller/logout-controller.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/php/controller/deleteAccount-controller.php b/php/controller/deleteAccount-controller.php index 8d42198..1252fa2 100644 --- a/php/controller/deleteAccount-controller.php +++ b/php/controller/deleteAccount-controller.php @@ -18,13 +18,13 @@ try { $_SESSION = []; session_destroy(); - header("Location: index.php"); + header("Location: ../../index.php"); exit(); } catch (Exception $e) { $_SESSION["message"] = "internal_error"; - header("Location: index.php?pfad=profile"); + header("Location: ../../index.php?pfad=profile"); exit(); } \ No newline at end of file diff --git a/php/controller/deleteArticle-controller.php b/php/controller/deleteArticle-controller.php index 27858d4..a8cda7f 100644 --- a/php/controller/deleteArticle-controller.php +++ b/php/controller/deleteArticle-controller.php @@ -13,7 +13,7 @@ if ($_SERVER["REQUEST_METHOD"] === "POST") { $_SESSION = []; session_destroy(); - header("Location: index.php"); + header("Location: ../../index.php"); exit(); } diff --git a/php/controller/logout-controller.php b/php/controller/logout-controller.php index 49386ab..d88a634 100644 --- a/php/controller/logout-controller.php +++ b/php/controller/logout-controller.php @@ -2,5 +2,5 @@ $_SESSION = []; session_destroy(); -header("Location: index.php"); +header("Location: ../../index.php"); exit(); \ No newline at end of file