diff options
Diffstat (limited to 'index.php')
| -rw-r--r-- | index.php | 8 |
1 files changed, 4 insertions, 4 deletions
| @@ -2,19 +2,19 @@ | |||
| 2 | // index.php | 2 | // index.php |
| 3 | 3 | ||
| 4 | require 'src/integration/ckeditor5/config.php'; | 4 | require 'src/integration/ckeditor5/config.php'; |
| 5 | require $ckeditor_integration_path . 'init.php'; | 5 | require $ckeditor_integration . 'init.php'; |
| 6 | makeTranslationSymLink(); | 6 | makeTranslationSymLink(); |
| 7 | 7 | ||
| 8 | 8 | ||
| 9 | // routage | 9 | // routage |
| 10 | 10 | ||
| 11 | // upload images AJAX | 11 | // upload images AJAX |
| 12 | require $ckeditor_integration_path . 'image_upload.php'; | 12 | require $ckeditor_integration . 'image_upload.php'; |
| 13 | 13 | ||
| 14 | // submit normal | 14 | // submit normal |
| 15 | if(isset($_GET['action']) && $_GET['action'] === 'submit') // HTML envoyé par l'éditeur | 15 | if(isset($_GET['action']) && $_GET['action'] === 'submit') // HTML envoyé par l'éditeur |
| 16 | { | 16 | { |
| 17 | require $ckeditor_integration_path . 'clean_html.php'; | 17 | require $ckeditor_integration . 'clean_html.php'; |
| 18 | $html_from_editor = getAndCleanEditorOutput(); // manipule $_POST['contenu']; | 18 | $html_from_editor = getAndCleanEditorOutput(); // manipule $_POST['contenu']; |
| 19 | 19 | ||
| 20 | // enregistrement des données | 20 | // enregistrement des données |
| @@ -28,7 +28,7 @@ if(isset($_GET['action']) && $_GET['action'] === 'submit') // HTML envoyé par l | |||
| 28 | // ouvrir l'éditeur | 28 | // ouvrir l'éditeur |
| 29 | elseif(isset($_GET['page']) && $_GET['page'] === 'editor') | 29 | elseif(isset($_GET['page']) && $_GET['page'] === 'editor') |
| 30 | { | 30 | { |
| 31 | require $ckeditor_integration_path . 'create.php'; | 31 | require $ckeditor_integration . 'create.php'; |
| 32 | } | 32 | } |
| 33 | else // $previous_page, affichage sans l'article | 33 | else // $previous_page, affichage sans l'article |
| 34 | { | 34 | { |
