Affichage du site en maintenance
This commit is contained in:
parent
1c6c480d4c
commit
69c453c408
|
@ -73,8 +73,9 @@ foreach ($ROUTES as $route => $file) {
|
|||
exit();
|
||||
}
|
||||
|
||||
$view = $file[0];
|
||||
/** @noinspection PhpIncludeInspection */
|
||||
require $file[0];
|
||||
require $view;
|
||||
exit();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -115,4 +115,9 @@
|
|||
<div class="alert alert-danger">
|
||||
<strong>Erreur :</strong> <?= $error_message ?>
|
||||
</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";
|
||||
}
|
Loading…
Reference in New Issue