Update index.php

This commit is contained in:
NOrtmann1
2026-05-28 17:13:21 +02:00
parent 1513cbda7f
commit f4d144980d
+4 -5
View File
@@ -29,14 +29,13 @@ require_once $abs_path . "/php/controller/index-controller.php";
<body>
<?php if (isset($_SESSION["message"]) && $_SESSION["message"] == "new_article"): ?>
<?php
include_once $abs_path . '/includes/navbar.php';
if (isset($_SESSION["message"]) && $_SESSION["message"] == "new_article"): ?>
<p style="color:green">
Dein Beitrag wurde erfolgreich veröffentlicht!
</p>
<?php endif; ?>
<?php
include_once $abs_path . '/includes/navbar.php';
<?php endif;
//Dynamischer Inhalt:
if (isset($_GET["pfad"])) {
if (file_exists($abs_path . '/content/' . $_GET["pfad"] . '.php')) {