summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore3
-rw-r--r--public/index.php10
2 files changed, 2 insertions, 11 deletions
diff --git a/.gitignore b/.gitignore
index ff87634..a725465 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1 @@
1vendor/ vendor/ \ No newline at end of file
2node_modules/ \ No newline at end of file
diff --git a/public/index.php b/public/index.php
index 233d85d..0c4c5f1 100644
--- a/public/index.php
+++ b/public/index.php
@@ -20,7 +20,6 @@ if(isset($_GET['action']) && $_GET['action'] == 'editor_submit'){
20elseif(isset($_GET['action']) && $_GET['action'] == 'delete_article'){ 20elseif(isset($_GET['action']) && $_GET['action'] == 'delete_article'){
21 // récupération des données 21 // récupération des données
22 $post = json_decode(file_get_contents('php://input'), true); 22 $post = json_decode(file_get_contents('php://input'), true);
23 //echo $post['id'];
24 23
25 if(json_last_error() === JSON_ERROR_NONE){ 24 if(json_last_error() === JSON_ERROR_NONE){
26 // Traitement côté serveur 25 // Traitement côté serveur
@@ -63,7 +62,6 @@ elseif(isset($_GET['action']) && $_GET['action'] == 'upload_image'){
63 } 62 }
64 die; 63 die;
65} 64}
66
67?> 65?>
68<!DOCTYPE html> 66<!DOCTYPE html>
69<html lang="fr"> 67<html lang="fr">
@@ -78,14 +76,8 @@ elseif(isset($_GET['action']) && $_GET['action'] == 'upload_image'){
78 .hidden{ 76 .hidden{
79 display: none; 77 display: none;
80 } 78 }
81 figure .align-center{
82
83 }
84 figcaption {
85
86 }
87 </style> 79 </style>
88 <script src="../node_modules/tinymce/tinymce.min.js"></script> 80 <script src="../vendor/tinymce/tinymce/tinymce.min.js"></script>
89 <!-- peut-être qu'on devra utiliser un lien symbolique vers ce fichier dans /public --> 81 <!-- peut-être qu'on devra utiliser un lien symbolique vers ce fichier dans /public -->
90 <script> 82 <script>
91 let editors = {}; 83 let editors = {};