"Beitrag erstellt"-Nachricht von index-php nach home.php

This commit is contained in:
2026-05-29 11:08:00 +02:00
parent c4e7ca3ac2
commit e499ffba22
2 changed files with 5 additions and 6 deletions
+5
View File
@@ -51,6 +51,11 @@ try {
Es ist ein Fehler beim Speichern aufgetreten. Bitte versuche es erneut. Es ist ein Fehler beim Speichern aufgetreten. Bitte versuche es erneut.
</p> </p>
<?php endif; ?> <?php endif; ?>
<?php if (isset($_SESSION["message"]) && $_SESSION["message"] == "new_article"): ?>
<p class="alert-message is-success">
Dein Beitrag wurde erfolgreich veröffentlicht!
</p>
<?php endif; ?>
<h1>Home</h1> <h1>Home</h1>
<p> <p>
-6
View File
@@ -31,12 +31,6 @@ require_once $abs_path . "/php/controller/index-controller.php";
<body> <body>
<?php <?php
include_once $abs_path . '/includes/navbar.php';
if (isset($_SESSION["message"]) && $_SESSION["message"] == "new_article"): ?>
<p class="alert-message is-success">
Dein Beitrag wurde erfolgreich veröffentlicht!
</p>
<?php endif;
//Dynamischer Inhalt: //Dynamischer Inhalt:
if (isset($_GET["pfad"])) { if (isset($_GET["pfad"])) {
if (file_exists($abs_path . '/content/' . $_GET["pfad"] . '.php')) { if (file_exists($abs_path . '/content/' . $_GET["pfad"] . '.php')) {