From ccc9a05b758f1dc0313b96807edfc447a9e8d278 Mon Sep 17 00:00:00 2001 From: polo Date: Thu, 8 Feb 2024 04:31:14 +0100 Subject: RGPD cookie uniquement en mode admin et avertissement, logo journal --- view/articlesContent.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'view/articlesContent.php') diff --git a/view/articlesContent.php b/view/articlesContent.php index 7abc289..8ec7f70 100644 --- a/view/articlesContent.php +++ b/view/articlesContent.php @@ -3,7 +3,7 @@ // tampon pour $articlesContent ob_start(); -if($_SESSION['admin'] == 1) +if(isset($_SESSION)) { // à la place du bouton après rechargement if(isset($_GET['action']) && $_GET['action'] == 'editor' && !isset($_GET['file_code'])) @@ -64,7 +64,7 @@ for($i = 0; $i < $Articles->fileListCount; $i++) global $host; // remplacer un article par l'éditeur - if($_SESSION['admin'] == 1 && isset($_GET['action']) && $_GET['action'] == 'editor' && isset($_GET['file_code']) + if(isset($_SESSION) && isset($_GET['action']) && $_GET['action'] == 'editor' && isset($_GET['file_code']) && $_GET['file_code'] == $Articles->fileList[$i]['fileCode'] ) { @@ -85,14 +85,14 @@ for($i = 0; $i < $Articles->fileListCount; $i++) echo($Articles->fileList[$i]['content'] . "\n"); ?> -

+

bouton -- cgit v1.2.3