From 1cfe99da6bcc7d3fc4b784d7b6272d19408c8165 Mon Sep 17 00:00:00 2001 From: Erwann Philippe Date: Fri, 27 Feb 2026 10:52:31 +0100 Subject: [PATCH] =?UTF-8?q?Authentification=20n=C3=A9cessaire=20pour=20dia?= =?UTF-8?q?porama?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- diapo.php | 6 ++++++ event.php | 1 - 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/diapo.php b/diapo.php index fbf2268..7579ca8 100644 --- a/diapo.php +++ b/diapo.php @@ -2,6 +2,12 @@ include("./Assets/functions.php"); $config = json_decode(file_get_contents("./Assets/config.json"), true); $bdd = connectBDD("localhost", $config["BDD_USER"], $config["BDD_PASSWD"], $config["BDD_NAME"]); + +/* Authentification */ +session_start(); +if(!isset($_SESSION['connected']) || !isset($_SESSION['site']) || !$_SESSION['connected']){ + header('location: ./event.php'); +} ?> diff --git a/event.php b/event.php index 900492f..562f73e 100644 --- a/event.php +++ b/event.php @@ -123,7 +123,6 @@ $couvertureImg = getEventBigImage($bdd, $_GET['event']); } } - // Fallback si pas de solution trouvée (cas avec 2-3 images) if (!$placed && !empty($images)) { $columns[$col][$row] = $images[0]['chemin']; }