diff --git a/admin/session.php b/admin/session.php new file mode 100644 index 0000000..a394c34 --- /dev/null +++ b/admin/session.php @@ -0,0 +1,27 @@ + 2 +// superviseur => 1 +// autre => 0 +function Profil($username) { + global $administrateurs, $superviseurs; + if (in_array($username, $administrateurs)) { + return 2; + } + elseif (in_array($username, $superviseurs)) { + return 1; + } + else { + return 0; + } +} +?> \ No newline at end of file