diff options
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 === '') |