Kommentare bearbeiten - Fehlerkorrektur
This commit is contained in:
@@ -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();
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
|
|||||||
@@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user