From 6076903b4237d54b460f57a1bd453e1f772be6be Mon Sep 17 00:00:00 2001 From: NOrtmann1 <145041949+NOrtmann1@users.noreply.github.com> Date: Wed, 27 May 2026 17:39:58 +0200 Subject: [PATCH] testing --- php/controller/createArticle-controller.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/php/controller/createArticle-controller.php b/php/controller/createArticle-controller.php index fc3bbaf..a54513f 100644 --- a/php/controller/createArticle-controller.php +++ b/php/controller/createArticle-controller.php @@ -13,14 +13,13 @@ try { }catch (Exception $e){ die("Fehler bei der Initialisierung des Artikel-Managers: " . $e->getMessage()); } - +echo $articleManager->test(); +/* if ($_SERVER["REQUEST_METHOD"] === "POST") { if(!isset($_POST["title"]) ||!isset($_POST["content"]) || !isset($_POST["category"])){ $_SESSION["message"] = "missing_parameters"; header("location: index.php?pfad=createArticle"); } else { - /* - echo $articleManager->test(); $title = $_POST["title"]; $content = $_POST["content"]; @@ -33,8 +32,9 @@ if ($_SERVER["REQUEST_METHOD"] === "POST") { // Weiterleitung zur Homepage header("location: index.php"); exit(); - */ + } } +*/ ?> \ No newline at end of file