Beitrag erstellen #13

Merged
niklas.ortmann merged 164 commits from Beitrag-erstellen into dev 2026-05-29 13:22:11 +02:00
Showing only changes of commit 91880b163d - Show all commits
+1 -10
View File
@@ -21,17 +21,8 @@ if ($_SERVER["REQUEST_METHOD"] === "POST") {
$articleManager->addArticle($title, $content, $author, $category, $tags);
foreach ($articleManager->getAllArticles() as $article) {
echo htmlspecialchars($article["id"])."<br>";
echo htmlspecialchars($article['title'])."<br>";
echo htmlspecialchars($article['content'])."<br>";
echo htmlspecialchars($article['author'])."<br>";
echo htmlspecialchars($article['category'])."<br>";
echo htmlspecialchars($article['tags'])."<br>";
echo htmlspecialchars($article['date'])."<br>";
}
// Weiterleitung zur Homepage
//header("location: ../../index.php");
header("location: ../../index.php");
exit();
}