summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/index.php b/index.php
index 1ece14f..96b3259 100644
--- a/index.php
+++ b/index.php
@@ -2,19 +2,19 @@
2// index.php 2// index.php
3 3
4require 'src/integration/ckeditor5/config.php'; 4require 'src/integration/ckeditor5/config.php';
5require $ckeditor_integration_path . 'init.php'; 5require $ckeditor_integration . 'init.php';
6makeTranslationSymLink(); 6makeTranslationSymLink();
7 7
8 8
9// routage 9// routage
10 10
11// upload images AJAX 11// upload images AJAX
12require $ckeditor_integration_path . 'image_upload.php'; 12require $ckeditor_integration . 'image_upload.php';
13 13
14// submit normal 14// submit normal
15if(isset($_GET['action']) && $_GET['action'] === 'submit') // HTML envoyé par l'éditeur 15if(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
29elseif(isset($_GET['page']) && $_GET['page'] === 'editor') 29elseif(isset($_GET['page']) && $_GET['page'] === 'editor')
30{ 30{
31 require $ckeditor_integration_path . 'create.php'; 31 require $ckeditor_integration . 'create.php';
32} 32}
33else // $previous_page, affichage sans l'article 33else // $previous_page, affichage sans l'article
34{ 34{