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