summaryrefslogtreecommitdiff
path: root/controller/ajax.php
diff options
context:
space:
mode:
Diffstat (limited to 'controller/ajax.php')
-rw-r--r--controller/ajax.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/controller/ajax.php b/controller/ajax.php
index 489e814..13f5c08 100644
--- a/controller/ajax.php
+++ b/controller/ajax.php
@@ -19,10 +19,15 @@ if(isset($_GET['action']) && isset($_GET['page']) && $_GET['action'] == 'upload_
19 $Image = new Image(true); 19 $Image = new Image(true);
20 $Image->upload(); 20 $Image->upload();
21 echo($Image->reponseAjax); // attendu par l'éditeur 21 echo($Image->reponseAjax); // attendu par l'éditeur
22
23 $Image->makeThumbnail(630); // => taille de la <div>
24 // on pourra l'agrandir en cliquant dessus
25 // code exécuté alors que l'utilisateur récupère la main
22 } 26 }
23 exit; // stop !! 27 exit(); // stop !!
24} 28}
25 29
30
26// page restauration quand le fichier zip est lourd 31// page restauration quand le fichier zip est lourd
27// -> input file onchange 32// -> input file onchange
28if(isset($_GET['action']) && $_GET['action'] == 'restauration' 33if(isset($_GET['action']) && $_GET['action'] == 'restauration'