Kommentare bearbeiten - Fehlerkorrektur

This commit is contained in:
2026-07-18 19:27:36 +02:00
parent 031f2afd25
commit e3903b4f3e
2 changed files with 9 additions and 4 deletions
+6 -1
View File
@@ -34,15 +34,20 @@ if ($pfad === "logout") {
include_once "php/controller/logout-controller.php"; include_once "php/controller/logout-controller.php";
exit(); exit();
} }
if ($pfad === "deleteAccount") { if ($pfad === "deleteAccount") {
include_once "php/controller/deleteAccount-controller.php"; include_once "php/controller/deleteAccount-controller.php";
exit(); exit();
} }
if ($pfad === "updateComment") { if ($pfad === "updateComment") {
include_once "php/controller/updateComment-controller.php"; include_once "php/controller/updateComment-controller.php";
exit(); exit();
} }
if ($pfad === "deleteComment") {
include_once "php/controller/deleteComment-controller.php";
exit();
}
?> ?>
<!-- <!--
+3 -3
View File
@@ -34,12 +34,12 @@ if (!isset($_SESSION["user_email"])) {
if ($articleId !== false && $articleId !== null) { if ($articleId !== false && $articleId !== null) {
header( header(
"Location: ../../index.php?pfad=showArticle&id=" "Location: index.php?pfad=showArticle&id="
. urlencode((string) $articleId) . urlencode((string) $articleId)
. "#comments" . "#comments"
); );
} else { } else {
header("Location: ../../index.php"); header("Location: index.php");
} }
exit(); exit();
} }
@@ -58,7 +58,7 @@ if (
$_SESSION["comment_message_type"] = "error"; $_SESSION["comment_message_type"] = "error";
header("Location: ../../index.php"); header("Location: index.php");
exit(); exit();
} }