diff options
author | polo <ordipolo@gmx.fr> | 2022-07-19 13:43:33 +0200 |
---|---|---|
committer | polo <ordipolo@gmx.fr> | 2022-07-19 13:43:33 +0200 |
commit | 66ee0f5f5416aed9f7a7264f18ae6bdf4c8ed50f (patch) | |
tree | 6ac70ed4c4df9b60ef19b0f720ff04ddbde6ef8f /controller/ajax.php | |
parent | ed5df18ed28a338ecd763e6492991ccbf5e23eb0 (diff) | |
download | melaine-66ee0f5f5416aed9f7a7264f18ae6bdf4c8ed50f.zip |
miniatures articles 1
Diffstat (limited to 'controller/ajax.php')
-rw-r--r-- | controller/ajax.php | 7 |
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 |
28 | if(isset($_GET['action']) && $_GET['action'] == 'restauration' | 33 | if(isset($_GET['action']) && $_GET['action'] == 'restauration' |