"Beitrag erstellt"-Nachricht von index-php nach home.php
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
@@ -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')) {
|
||||||
|
|||||||
Reference in New Issue
Block a user