Actualiser dashboard.php

This commit is contained in:
2026-03-19 15:05:44 +00:00
parent f6e50b1f97
commit 4201a1b26f

View File

@@ -1,7 +1,7 @@
<?php <?php
session_start(); session_start();
// PROTECTION // Sécurité
if (!isset($_SESSION['user'])) { if (!isset($_SESSION['user'])) {
header("Location: login.php"); header("Location: login.php");
exit(); exit();
@@ -12,6 +12,6 @@ include 'include/nav.php';
?> ?>
<h2>Dashboard</h2> <h2>Dashboard</h2>
<p>Bienvenue <?= $_SESSION['user'] ?></p> <p>Bienvenue <?php echo $_SESSION['user']; ?></p>
<?php include 'include/footer.php'; ?> <?php include 'include/footer.php'; ?>