Actualiser dashboard.php
This commit is contained in:
@@ -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']); ?>)
|
||||
|
||||
Reference in New Issue
Block a user