diff options
| author | Horus | 2016-09-27 22:03:13 +0200 |
|---|---|---|
| committer | Horus | 2016-09-27 22:03:13 +0200 |
| commit | 4d89a18e0579783bb9a221f71d42630c6d79d3f6 (patch) | |
| tree | 9700b065cd4cc2e343c6467379323ebc49cf9751 /intern.gospeladlershof.de/index.php | |
| parent | 350f1679eee7969cf1cf46c35488201619fc2ae0 (diff) | |
| download | gospeladlershof.de-4d89a18e0579783bb9a221f71d42630c6d79d3f6.tar.gz | |
Login gebaut + Seite sieht schöner aus.
Diffstat (limited to 'intern.gospeladlershof.de/index.php')
| -rw-r--r-- | intern.gospeladlershof.de/index.php | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/intern.gospeladlershof.de/index.php b/intern.gospeladlershof.de/index.php index b62ea3b..ded0435 100644 --- a/intern.gospeladlershof.de/index.php +++ b/intern.gospeladlershof.de/index.php @@ -1,5 +1,8 @@ <?php $title="Gospelchor Adlershof"; +$class_index = 'class="active"'; +$class_konzert= ''; +$class_proben= ''; require_once __DIR__ . '/header.php'; ?> @@ -16,8 +19,7 @@ require_once __DIR__ . '/header.php'; require_once __DIR__ . '/code/termine.php'; $konzert = $konzert[0]; - -if ( ! empty($_SESSION) && ! is_null($_SESSION["error"]) ) { +if ( isset($_SESSION["error"]) && ! is_null($_SESSION["error"]) ) { ?> <div class="alert alert-danger" role="alert"> <?php @@ -26,15 +28,23 @@ if ( ! empty($_SESSION) && ! is_null($_SESSION["error"]) ) { ?> </div> <?php -} else if ( ! empty($_SESSION) && ! is_null($_SESSION["success"]) ) { +} else if ( isset($_SESSION["success"]) && ! is_null($_SESSION["success"]) ) { ?> <div class="alert alert-success" role="alert"> <?php echo htmlentities($_SESSION["success"]); - unset($_SESSION["success"]); + + if ( isset($_SESSION["dontdisplaydeploybutton"]) ) { + unset($_SESSION["dontdisplaydeploybutton"]); + } else { ?> <hr> Um die Änderung zu veröffentlichen, klicke auf den Button "Webseite aktualisieren". +<?php + } + + unset($_SESSION["success"]); +?> </div> <?php } else if ( isset($_REQUEST["deploy"]) ) { @@ -128,6 +138,7 @@ if ( ! empty($_SESSION) && ! is_null($_SESSION["error"]) ) { </table> </div> +<p>Mit Klick auf den Button wird die Webseite <a href="//www.gospeladlershof.de/">https://www.gospeladlershof.de</a> aktualisiert.</p> <a href="/code/deploy.php" class="btn btn-success"><span class="glyphicon glyphicon-refresh"></span> Webseite aktualisieren</a> </div> <!-- /container --> |
