From a961c764a15d588685615ba21c91cfcfdea7a605 Mon Sep 17 00:00:00 2001
From: rubisalpha
Date: Mon, 23 Mar 2026 13:29:41 +0000
Subject: [PATCH] Actualiser dashboard.php
---
dashboard.php | 44 +++++++++++++++++++++++++++++++++-----------
1 file changed, 33 insertions(+), 11 deletions(-)
diff --git a/dashboard.php b/dashboard.php
index 6660a74..48b00b5 100644
--- a/dashboard.php
+++ b/dashboard.php
@@ -9,19 +9,41 @@ if (!isset($_SESSION['user'])) {
include 'include/header.php';
include 'include/nav.php';
-include 'personne1.php';
+
+// ✅ Include fiable (corrige ton erreur)
+include __DIR__ . '/personne1.php';
+
+// Vérification
+if (!isset($personne1)) {
+ echo "Erreur : personne1 non chargée";
+ exit();
+}
?>
-Dashboard
-Bienvenue, ()
+ Dashboard
-Informations de la personne 1 :
-
- - Nom :
- - Prénom :
- - Email :
- - Rôle :
- - Classe :
-
+
+ Bienvenue,
+
+ ()
+
+
+Mode ADMIN : accès complet au site
";
+} else {
+ echo "Mode UTILISATEUR : accès limité
";
+}
+?>
+
+ Informations :
+
+ - Nom :
+ - Prénom :
+ - Email :
+ - Rôle :
+ - Classe :
+
\ No newline at end of file