diff options
Diffstat (limited to 'view/articlesContent.php')
| -rw-r--r-- | view/articlesContent.php | 8 |
1 files changed, 4 insertions, 4 deletions
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 @@ | |||
| 3 | 3 | ||
| 4 | // tampon pour $articlesContent | 4 | // tampon pour $articlesContent |
| 5 | ob_start(); | 5 | ob_start(); |
| 6 | if($_SESSION['admin'] == 1) | 6 | if(isset($_SESSION)) |
| 7 | { | 7 | { |
| 8 | // à la place du bouton après rechargement | 8 | // à la place du bouton après rechargement |
| 9 | if(isset($_GET['action']) && $_GET['action'] == 'editor' && !isset($_GET['file_code'])) | 9 | if(isset($_GET['action']) && $_GET['action'] == 'editor' && !isset($_GET['file_code'])) |
| @@ -64,7 +64,7 @@ for($i = 0; $i < $Articles->fileListCount; $i++) | |||
| 64 | global $host; | 64 | global $host; |
| 65 | 65 | ||
| 66 | // remplacer un article par l'éditeur | 66 | // remplacer un article par l'éditeur |
| 67 | if($_SESSION['admin'] == 1 && isset($_GET['action']) && $_GET['action'] == 'editor' && isset($_GET['file_code']) | 67 | if(isset($_SESSION) && isset($_GET['action']) && $_GET['action'] == 'editor' && isset($_GET['file_code']) |
| 68 | && $_GET['file_code'] == $Articles->fileList[$i]['fileCode'] | 68 | && $_GET['file_code'] == $Articles->fileList[$i]['fileCode'] |
| 69 | ) | 69 | ) |
| 70 | { | 70 | { |
| @@ -85,14 +85,14 @@ for($i = 0; $i < $Articles->fileListCount; $i++) | |||
| 85 | echo($Articles->fileList[$i]['content'] . "\n"); | 85 | echo($Articles->fileList[$i]['content'] . "\n"); |
| 86 | ?> | 86 | ?> |
| 87 | </div> | 87 | </div> |
| 88 | <p class="boutonArticle" > | 88 | <p> |
| 89 | <a class="infobulle" href="<?= $lien_partage ?>" > | 89 | <a class="infobulle" href="<?= $lien_partage ?>" > |
| 90 | <img src="public/icone_partager.png" onclick="copierDansPressePapier('<?= $host ?>/<?= $lien_partage ?>')" alt="bouton"> | 90 | <img src="public/icone_partager.png" onclick="copierDansPressePapier('<?= $host ?>/<?= $lien_partage ?>')" alt="bouton"> |
| 91 | <button>Partager</button> | 91 | <button>Partager</button> |
| 92 | </a> | 92 | </a> |
| 93 | <?php | 93 | <?php |
| 94 | // bouton | 94 | // bouton |
| 95 | if($_SESSION['admin'] == 1) | 95 | if(isset($_SESSION)) |
| 96 | { | 96 | { |
| 97 | ?> | 97 | ?> |
| 98 | <a class="infobulle" href="index.php?page=<?= $page ?>&action=editor&file_code=<?= $Articles->fileList[$i]['fileCode'] ?>#<?= $Articles->fileList[$i]['fileCode'] ?>" > | 98 | <a class="infobulle" href="index.php?page=<?= $page ?>&action=editor&file_code=<?= $Articles->fileList[$i]['fileCode'] ?>#<?= $Articles->fileList[$i]['fileCode'] ?>" > |
