Update 2 files

- /html/admin.php
- /html/compte.php
This commit is contained in:
Jan BELLON 2024-03-12 12:32:28 +00:00
parent 92ea9a2990
commit 4bdffcc98f
2 changed files with 2 additions and 1 deletions

View File

@ -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();

View File

@ -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']) . "%" : "%%";