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 :

- +

+ Bienvenue, + + () +

+ +Mode ADMIN : accès complet au site

"; +} else { + echo "

Mode UTILISATEUR : accès limité

"; +} +?> + +

Informations :

+ \ No newline at end of file