Actualiser dashboard.php

This commit is contained in:
2026-03-26 13:15:22 +00:00
parent d39823d9ef
commit 60b1ed6650

View File

@@ -1,15 +1,17 @@
<?php
session_start();
// Vérifier si l'utilisateur est connecté
if (!isset($_SESSION['user'])) {
header("Location: login.php");
exit();
}
// Inclure header
include 'include/header.php';
?>
<h2>Dashboard Smart House</h2>
<p>
Bienvenue, <?php echo htmlspecialchars($_SESSION['user']); ?>
(<?php echo htmlspecialchars($_SESSION['role']); ?>)