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/album.php | 17 ++++++++++------- view/articlesContent.php | 28 +++++++++++++++++++--------- view/template-formulaires.php | 8 -------- 3 files changed, 29 insertions(+), 24 deletions(-) (limited to 'view') diff --git a/view/album.php b/view/album.php index 795491d..f8879aa 100644 --- a/view/album.php +++ b/view/album.php @@ -84,18 +84,19 @@ else ?>

+ @@ -104,8 +105,10 @@ if($_SESSION['admin'] == 1 && (!isset($_GET['action']) || $_GET['action'] !== 'e +

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++)

- diff --git a/view/template-formulaires.php b/view/template-formulaires.php index 8c1d161..0ffbba3 100644 --- a/view/template-formulaires.php +++ b/view/template-formulaires.php @@ -55,14 +55,6 @@ if($page === 'discographie' || $page === 'album') - - -