Commit 6838e79d1eae4791f42cbf5b89b0d55a0ff5820e

Authored by grouille
1 parent 042431c5

MAJ

Showing 1 changed file with 5 additions and 2 deletions   Show diff stats
site/reception.php
... ... @@ -44,15 +44,18 @@ if(isset($_POST['sensor']))
44 44 if($a_spi) {$ini = $ini.$arduino_spi."\n";}
45 45 if($n) {$ini = $ini.$nucleo."\n";}
46 46  
  47 + $retour = array();
  48 + $statut;
  49 +
47 50 if(!$err)
48 51 {
49 52 file_put_contents('upload/inventaire.ini', $ini);
50 53 $upload = load($_FILES['fichier']['tmp_name'], $_FILES['fichier']['name']);
51 54 if($upload)
52 55 {
53   - $message = "Upload du fichier réussi !";
  56 + exec("super cmd.sh", $retour, $statut);
  57 + $message = "Upload du fichier réussi !\n".$statut;
54 58 $color = "alert-success";
55   - exec("super cmd.sh");
56 59 }
57 60 else
58 61 {
... ...