From 69c453c408f0599920ee9eb6e9bc186c60550be2 Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Fri, 27 Dec 2019 21:37:08 +0100 Subject: [PATCH] Affichage du site en maintenance --- dispatcher.php | 3 ++- server_files/views/header.php | 7 ++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/dispatcher.php b/dispatcher.php index 2328005..23234b0 100644 --- a/dispatcher.php +++ b/dispatcher.php @@ -73,8 +73,9 @@ foreach ($ROUTES as $route => $file) { exit(); } + $view = $file[0]; /** @noinspection PhpIncludeInspection */ - require $file[0]; + require $view; exit(); } } diff --git a/server_files/views/header.php b/server_files/views/header.php index 8689a06..031317a 100644 --- a/server_files/views/header.php +++ b/server_files/views/header.php @@ -115,4 +115,9 @@
Erreur :
-

Cette plateforme ouvrira le 22 janvier 2020 ! :)

"; + require_once "footer.php"; + } \ No newline at end of file