Diff of /alx-src/tags/alx-web-0_7_0_20170830_4/show.php
Parent Directory | Revision Log | Patch
revision 7123 by niro, Fri Sep 11 15:21:11 2015 UTC | revision 7124 by niro, Fri Sep 11 15:35:13 2015 UTC | |
---|---|---|
# | Line 354 echo '</td><td valign=top>'; | Line 354 echo '</td><td valign=top>'; |
354 | $state = 'Off'; | $state = 'Off'; |
355 | if(count($conn)>0) | if(count($conn)>0) |
356 | { | { |
357 | if($retval==0) $state = 'On'; | if($retval==0) |
358 | { | |
359 | // first try mcore, then get ssh | |
360 | $ping_retval = ping_host($conn['ip'],$mcore_port,$ping_timeout); | |
361 | if($ping_retval==1) $ping_retval = ping_host($dat['ip'],$ssh_port,$ping_timeout); | |
362 | if($ping_retval==0) | |
363 | { | |
364 | $state = 'On'; | |
365 | } | |
366 | } | |
367 | } | } |
368 | ||
369 | echo '<img src="pics/logo2.jpg"><br><br>'; | echo '<img src="pics/logo2.jpg"><br><br>'; |
|