Diff of /alx-src/trunk/alx-web/index.php
Parent Directory | Revision Log | Patch
revision 1608 by niro, Thu Dec 2 22:13:04 2010 UTC | revision 1609 by niro, Thu Dec 2 22:15:08 2010 UTC | |
---|---|---|
# | Line 24 | Line 24 |
24 | function check_online($dat, $bla) | function check_online($dat, $bla) |
25 | { | { |
26 | global $comps; | global $comps; |
27 | global $pingcmd; | |
28 | if(!isset($comps[$dat['serial']])) return false; | if(!isset($comps[$dat['serial']])) return false; |
29 | ||
30 | //passthru("/bin/ping -I eth0 -c 1 -W 1 -q ".$dat['ip']." &> /dev/null && exit 0 || exit 1",$retval); | //passthru("/bin/ping -I eth0 -c 1 -W 1 -q ".$dat['ip']." &> /dev/null && exit 0 || exit 1",$retval); |
|