From aee7c1d9f39fd3a289b38ce76374aadf0ef7c33b Mon Sep 17 00:00:00 2001 From: grouille Date: Wed, 25 Mar 2020 15:49:31 +0100 Subject: [PATCH] Test --- site/add.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/site/add.php b/site/add.php index 6f95a4e..767f084 100644 --- a/site/add.php +++ b/site/add.php @@ -40,12 +40,12 @@ session_start(); { $ini = $nucleo; } - $ini = $ini.$_POST['raspberry']." capteur=".$_POST['numero']."'".$_POST['version']." setup=".$setup."\n"; + $ini = $ini.$_POST['raspberry']." capteur=".$_POST['numero']."-".$_POST['version']." setup=".$setup."\n"; file_put_contents('upload/inventaire.ini', $ini); setup($_POST['raspberry']); - $cmd = "./cmd.sh"; - $retour = system($cmd, $retval); - $message = $message." Retour : ".$retval."---".$retour; + $cmd = "cmd.sh"; + //$retour = system($cmd, $retval); + shell_exec($cmd); ?>