From 3c35bd40e92ef11230d5ad3ea2d9dbe516508eb4 Mon Sep 17 00:00:00 2001 From: polo Date: Mon, 24 Jul 2023 12:50:42 +0200 Subject: MAJ normalize.css, bug gd image non .jpg, bug extension image en majuscules --- controller/ckeditor.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'controller/ckeditor.php') diff --git a/controller/ckeditor.php b/controller/ckeditor.php index 7b4f1bb..1707128 100644 --- a/controller/ckeditor.php +++ b/controller/ckeditor.php @@ -64,7 +64,7 @@ function submitCKeditor() exit(); } - // POST de l'éditeur + // sécurité du HTML if(isset($_POST['contenu'])) // optionnel pour discographie { $html = Security::secureString($_POST['contenu']); @@ -85,6 +85,8 @@ function submitCKeditor() } + // enregistrement du HTML + // // page discographie if($_GET['page'] === 'discographie' || $_GET['page'] === 'album') { @@ -155,7 +157,7 @@ function submitCKeditor() $Album->update($html); } } - // pages avec des articles simples (melaine...) + // pages articles simples (melaine...) //if($_GET['page'] != 'discographie') else { @@ -177,6 +179,7 @@ function submitCKeditor() } } + // redirection if($_GET['page'] === 'discographie' || $_GET['page'] === 'album') { if($html === '') -- cgit v1.2.3