Update 2 files
- /html/admin.php - /html/compte.php
This commit is contained in:
parent
92ea9a2990
commit
4bdffcc98f
@ -2,7 +2,7 @@
|
||||
require "../include/variables.php";
|
||||
require "../include/functions.php";
|
||||
|
||||
if($_SESSION['role'] < 1) {
|
||||
if($_SESSION['role'] < 3) {
|
||||
header("Location: index.php");
|
||||
http_response_code(404);
|
||||
die();
|
||||
|
@ -245,6 +245,7 @@ if($resultat) {
|
||||
</div>
|
||||
<div class="user-articles">
|
||||
<div class="user-content">
|
||||
<div><a href="upload.php" class="button">Publier un article</a></div>
|
||||
<?php
|
||||
$bdd = connect($dbhost, $dbname, $dbuser, $dbpass);
|
||||
$search = isset($_GET['search']) ? "%" . htmlspecialchars($_GET['search']) . "%" : "%%";
|
||||
|
Loading…
x
Reference in New Issue
Block a user