/web/acc/welcome.php |
---|
22,7 → 22,7 |
} |
// router test |
function routerTest($host,$nic) { |
$out = exec("(sudo arping -I$nic -c1 $host|grep response|cut -d' ' -f2)"); |
$out = exec("(sudo LANG=en_US.UTF-8 arping -I$nic -c1 $host|grep response|cut -d' ' -f2)"); |
return ($out == "1") ? true : false; |
} |