From 082ae3df0b9dd759d56684b0221df62ea171f8ec Mon Sep 17 00:00:00 2001 From: polo Date: Tue, 30 May 2023 23:19:28 +0200 Subject: bouton partager pour visiteurs --- view/articlesContent.php | 28 +++++++++++++++++++--------- 1 file changed, 19 insertions(+), 9 deletions(-) (limited to 'view/articlesContent.php') diff --git a/view/articlesContent.php b/view/articlesContent.php index 87b3676..a03b39d 100644 --- a/view/articlesContent.php +++ b/view/articlesContent.php @@ -61,7 +61,9 @@ for($i = 0; $i < $Articles->fileListCount; $i++)
> fileList[$i]['fileCode']; + global $host; + // remplacer un article par l'éditeur if($_SESSION['admin'] == 1 && isset($_GET['action']) && $_GET['action'] == 'editor' && isset($_GET['file_code']) && $_GET['file_code'] == $Articles->fileList[$i]['fileCode'] @@ -72,6 +74,15 @@ for($i = 0; $i < $Articles->fileListCount; $i++)

Modification d'un article

+
+

+ + + + +

+fileListCount; $i++) { // et voila echo($Articles->fileList[$i]['content'] . "\n"); - - // bouton - if($_SESSION['admin'] == 1) - { - $lien_partage = 'index.php?page=' . $page . '#' . $Articles->fileList[$i]['fileCode']; - global $host; - ?> +?>

+ @@ -109,7 +119,7 @@ for($i = 0; $i < $Articles->fileListCount; $i++)

- -- cgit v1.2.3