Authentification nécessaire pour diaporama
This commit is contained in:
parent
320cb3ffb3
commit
1cfe99da6b
2 changed files with 6 additions and 1 deletions
|
|
@ -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');
|
||||
}
|
||||
?>
|
||||
|
||||
<!DOCTYPE html>
|
||||
|
|
|
|||
|
|
@ -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'];
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue