Commit aee7c1d9f39fd3a289b38ce76374aadf0ef7c33b
1 parent
ef5cf8ee
Test
Showing
1 changed file
with
4 additions
and
4 deletions
Show diff stats
site/add.php
... | ... | @@ -40,12 +40,12 @@ session_start(); |
40 | 40 | { |
41 | 41 | $ini = $nucleo; |
42 | 42 | } |
43 | - $ini = $ini.$_POST['raspberry']." capteur=".$_POST['numero']."'".$_POST['version']." setup=".$setup."\n"; | |
43 | + $ini = $ini.$_POST['raspberry']." capteur=".$_POST['numero']."-".$_POST['version']." setup=".$setup."\n"; | |
44 | 44 | file_put_contents('upload/inventaire.ini', $ini); |
45 | 45 | setup($_POST['raspberry']); |
46 | - $cmd = "./cmd.sh"; | |
47 | - $retour = system($cmd, $retval); | |
48 | - $message = $message." Retour : ".$retval."---".$retour; | |
46 | + $cmd = "cmd.sh"; | |
47 | + //$retour = system($cmd, $retval); | |
48 | + shell_exec($cmd); | |
49 | 49 | ?> |
50 | 50 | <div class="alert alert-success" role="alert"> |
51 | 51 | Le capteur a bien été ajouté ! | ... | ... |