Pfadanpassung (test)

This commit is contained in:
NOrtmann1
2026-05-27 16:59:04 +02:00
parent 24a3ad0639
commit 04195f5d92
3 changed files with 9 additions and 9 deletions
+4 -4
View File
@@ -1,9 +1,9 @@
<?php
if (!isset($abs_path)) {
require_once "../../path.php";
require_once "path.php";
}
require_once $abs_path . '/php/model/LocalArticleManager.php';
require_once '/php/model/LocalArticleManager.php';
try {
$articleManager = ArticleManager::getInstance();
@@ -14,7 +14,7 @@ try {
if ($_SERVER["REQUEST_METHOD"] === "POST") {
if(!isset($_POST["title"]) ||!isset($_POST["content"]) || !isset($_POST["category"])){
$_SESSION["message"] = "missing_parameters";
header("location:" . $abs_path . "/index.php?pfad=createArticle");
header("location: index.php?pfad=createArticle");
}
$title = $_POST["title"];
@@ -26,7 +26,7 @@ if ($_SERVER["REQUEST_METHOD"] === "POST") {
$articleManager->addArticle($title, $content, $category, $author, $tags);
// Weiterleitung zur Homepage
header("location:". $abs_path . "/index.php");
header("location: index.php");
exit();
}
?>