Commit 82bb506c9dc6bf990624e123f175991f33b91e1f
1 parent
6838e79d
MAJ
Showing
1 changed file
with
7 additions
and
2 deletions
Show diff stats
site/reception.php
... | ... | @@ -53,9 +53,14 @@ if(isset($_POST['sensor'])) |
53 | 53 | $upload = load($_FILES['fichier']['tmp_name'], $_FILES['fichier']['name']); |
54 | 54 | if($upload) |
55 | 55 | { |
56 | - exec("super cmd.sh", $retour, $statut); | |
57 | - $message = "Upload du fichier réussi !\n".$statut; | |
56 | + exec("super cmd.sh", $retour, $statut); | |
57 | + $size = count($retour); | |
58 | + $message = "Upload du fichier réussi !".$statut; | |
58 | 59 | $color = "alert-success"; |
60 | + for($i = 0; i<$size; i++) | |
61 | + { | |
62 | + $message = $message."---".$retour[$i]."---"; | |
63 | + } | |
59 | 64 | } |
60 | 65 | else |
61 | 66 | { | ... | ... |