Subversion Repositories ALCASAR

Rev

Rev 3132 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 3132 Rev 3190
Line 20... Line 20...
20
		$mysqli->close();
20
		$mysqli->close();
21
		return $strResult;
21
		return $strResult;
22
 }
22
 }
23
// router test
23
// router test
24
function routerTest($host,$nic) {
24
function routerTest($host,$nic) {
25
	$out = exec("(sudo arping -I$nic -c1 $host|grep response|cut -d' ' -f2)");
25
	$out = exec("(sudo LANG=en_US.UTF-8 arping -I$nic -c1 $host|grep response|cut -d' ' -f2)");
26
	return ($out == "1") ? true : false;
26
	return ($out == "1") ? true : false;
27
}
27
}
28
 
28
 
29
// Internet test
29
// Internet test
30
function internetTest() {
30
function internetTest() {