From 82bb506c9dc6bf990624e123f175991f33b91e1f Mon Sep 17 00:00:00 2001 From: grouille Date: Sun, 26 Apr 2020 13:21:18 +0200 Subject: [PATCH] MAJ --- site/reception.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/site/reception.php b/site/reception.php index 8673516..8d4a380 100644 --- a/site/reception.php +++ b/site/reception.php @@ -53,9 +53,14 @@ if(isset($_POST['sensor'])) $upload = load($_FILES['fichier']['tmp_name'], $_FILES['fichier']['name']); if($upload) { - exec("super cmd.sh", $retour, $statut); - $message = "Upload du fichier réussi !\n".$statut; + exec("super cmd.sh", $retour, $statut); + $size = count($retour); + $message = "Upload du fichier réussi !".$statut; $color = "alert-success"; + for($i = 0; i<$size; i++) + { + $message = $message."---".$retour[$i]."---"; + } } else { -- libgit2 0.21.2