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