Update 4 files
- /html/admin.php - /html/compte.php - /html/editpage.php - /html/users.php
This commit is contained in:
parent
03bd67ca7d
commit
a4c91749bc
@ -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();
|
||||
}
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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();
|
||||
}
|
||||
|
@ -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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user