diff options
| author | polo <ordipolo@gmx.fr> | 2023-07-24 12:50:42 +0200 |
|---|---|---|
| committer | polo <ordipolo@gmx.fr> | 2023-07-24 12:50:42 +0200 |
| commit | 3c35bd40e92ef11230d5ad3ea2d9dbe516508eb4 (patch) | |
| tree | 650957460b0afb2809342471579e84dc865e1d40 /controller/ckeditor.php | |
| parent | fdef77d4a8817b6e8940951f3301ad94bde0e6c6 (diff) | |
| download | melaine-3c35bd40e92ef11230d5ad3ea2d9dbe516508eb4.tar.gz melaine-3c35bd40e92ef11230d5ad3ea2d9dbe516508eb4.tar.bz2 melaine-3c35bd40e92ef11230d5ad3ea2d9dbe516508eb4.zip | |
MAJ normalize.css, bug gd image non .jpg, bug extension image en majuscules
Diffstat (limited to 'controller/ckeditor.php')
| -rw-r--r-- | controller/ckeditor.php | 7 |
1 files changed, 5 insertions, 2 deletions
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() | |||
| 64 | exit(); | 64 | exit(); |
| 65 | } | 65 | } |
| 66 | 66 | ||
| 67 | // POST de l'éditeur | 67 | // sécurité du HTML |
| 68 | if(isset($_POST['contenu'])) // optionnel pour discographie | 68 | if(isset($_POST['contenu'])) // optionnel pour discographie |
| 69 | { | 69 | { |
| 70 | $html = Security::secureString($_POST['contenu']); | 70 | $html = Security::secureString($_POST['contenu']); |
| @@ -85,6 +85,8 @@ function submitCKeditor() | |||
| 85 | } | 85 | } |
| 86 | 86 | ||
| 87 | 87 | ||
| 88 | // enregistrement du HTML | ||
| 89 | // | ||
| 88 | // page discographie | 90 | // page discographie |
| 89 | if($_GET['page'] === 'discographie' || $_GET['page'] === 'album') | 91 | if($_GET['page'] === 'discographie' || $_GET['page'] === 'album') |
| 90 | { | 92 | { |
| @@ -155,7 +157,7 @@ function submitCKeditor() | |||
| 155 | $Album->update($html); | 157 | $Album->update($html); |
| 156 | } | 158 | } |
| 157 | } | 159 | } |
| 158 | // pages avec des articles simples (melaine...) | 160 | // pages articles simples (melaine...) |
| 159 | //if($_GET['page'] != 'discographie') | 161 | //if($_GET['page'] != 'discographie') |
| 160 | else | 162 | else |
| 161 | { | 163 | { |
| @@ -177,6 +179,7 @@ function submitCKeditor() | |||
| 177 | } | 179 | } |
| 178 | } | 180 | } |
| 179 | 181 | ||
| 182 | // redirection | ||
| 180 | if($_GET['page'] === 'discographie' || $_GET['page'] === 'album') | 183 | if($_GET['page'] === 'discographie' || $_GET['page'] === 'album') |
| 181 | { | 184 | { |
| 182 | if($html === '') | 185 | if($html === '') |
