Affichage du site en maintenance

This commit is contained in:
Yohann D'ANELLO 2019-12-27 21:37:08 +01:00
parent 1c6c480d4c
commit 69c453c408
2 changed files with 8 additions and 2 deletions

View File

@ -73,8 +73,9 @@ foreach ($ROUTES as $route => $file) {
exit(); exit();
} }
$view = $file[0];
/** @noinspection PhpIncludeInspection */ /** @noinspection PhpIncludeInspection */
require $file[0]; require $view;
exit(); exit();
} }
} }

View File

@ -115,4 +115,9 @@
<div class="alert alert-danger"> <div class="alert alert-danger">
<strong>Erreur :</strong> <?= $error_message ?> <strong>Erreur :</strong> <?= $error_message ?>
</div> </div>
<?php } <?php }
if (!isset($_SESSION["user"]) && $view != "server_files/controllers/connexion.php") {
echo "<div style=\"text-align: center;\" class=\"alert alert-success\"><h1>Cette plateforme ouvrira le 22 janvier 2020 ! :)</h1></div>";
require_once "footer.php";
}