diff --git a/config/global.ini b/config/global.ini index d21663e0..5bdd7bbb 100644 --- a/config/global.ini +++ b/config/global.ini @@ -13,3 +13,10 @@ dbhost = "127.0.0.1" [nav] Journal = "journal.php" +[classifications] +0 = "Public" +1 = "Membres" +2 = "Membres Impliqués" +3 = "Responsables" +4 = "Directeurs" +5 = "Administrateur" \ No newline at end of file diff --git a/html/admin.php b/html/admin.php index 4cca341d..b7732d01 100644 --- a/html/admin.php +++ b/html/admin.php @@ -2,7 +2,7 @@ require "../include/variables.php"; require "../include/functions.php"; -if(isset($_SESSION['userid']) == false) { +if(isset($_SESSION['role']) == false || $_SESSION['role'] < 4) { header("Location: login.php"); http_response_code(404); die(); diff --git a/html/compte.php b/html/compte.php new file mode 100644 index 00000000..90da78f3 --- /dev/null +++ b/html/compte.php @@ -0,0 +1,57 @@ + + + +
+ + + + +