Magellan Linux

Diff of /alx-src/trunk/alx-web/index.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 428 by niro, Wed Jun 4 22:35:14 2008 UTC revision 429 by niro, Wed Jun 4 23:09:52 2008 UTC
# Line 1  Line 1 
1  <?  <?
2     include('include/config.inc.php');
3   include('include/basesql.php');   include('include/basesql.php');
4   session_start();   session_start();
5   session_register('alx_sort_krit'); session_register('alx_sort_onfirst'); session_register('alx_sort_loc');   session_register('alx_sort_krit'); session_register('alx_sort_onfirst'); session_register('alx_sort_loc');
# Line 26  Line 27 
27   global $comps;   global $comps;
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($pingcmd.$dat['ip']." &> /dev/null && exit 0 || exit 1",$retval);
  passthru("/usr/sbin/fping -c 1 -t 50 -q ".$dat['ip']." &> /dev/null && exit 0 || exit 1",$retval);  
31   if($retval==0)   if($retval==0)
32   {   {
33   $comps[$dat['serial']]['online'] = true;   $comps[$dat['serial']]['online'] = true;

Legend:
Removed from v.428  
changed lines
  Added in v.429