diff --git a/wol/www/index.php b/wol/www/index.php index 4c806522c90cdfff9272f12cc538e57416ee04be..f8af7736b93f7a40c58578ba0eb6b00c4cd27247 100644 --- a/wol/www/index.php +++ b/wol/www/index.php @@ -33,17 +33,13 @@ error_reporting(E_ALL); extract($_POST); if(!isset($action)){ - $lines=explode(PHP_EOL, shell_exec("../scripts/get_registry.sh")); + exec("../scripts/get_registry.sh", $lines, $code); ?> <p> <?php $n=count($lines); if(empty($lines)){ - echo "Impossible de récupérer le registre"; - ob_start(); - shell_exec("../scripts/get_registry.sh"); - $lines=ob_get_clean(); - echo "$lines"; + echo "Impossible de récupérer le registre, code $code"; }else if ($n == 1){ echo "$n poste est enregistré sur ce serveur"; }else{