Update 4 files

- /html/admin.php
- /html/compte.php
- /html/editpage.php
- /html/users.php
This commit is contained in:
Jan BELLON 2024-03-07 20:55:10 +00:00
parent 03bd67ca7d
commit a4c91749bc
4 changed files with 9 additions and 3 deletions

View File

@ -3,7 +3,7 @@ require "../include/variables.php";
require "../include/functions.php";
if($role < 4) {
header("Location: login.php");
header("Location: index.php");
http_response_code(404);
die();
}

View File

@ -2,6 +2,12 @@
require "../include/variables.php";
require "../include/functions.php";
if(isset($_SESSION['userid']) == false) {
header("Location: index.php");
http_response_code(404);
die();
}
if(isset($_POST['delete_account'])) {
$bdd = connect($dbhost, $dbname, $dbuser, $dbpass);

View File

@ -3,7 +3,7 @@ require "../include/variables.php";
require "../include/functions.php";
if($role < 3) {
header("Location: login.php");
header("Location: index.php");
http_response_code(404);
die();
}

View File

@ -3,7 +3,7 @@ require "../include/variables.php";
require "../include/functions.php";
if($role < 4) {
header("Location: login.php");
header("Location: index.php");
http_response_code(404);
die();
}