Contents of /alx-src/tags/alx-web-0_7_0_20170802_1/reboot.php
Parent Directory | Revision Log
Revision 7714 -
(show annotations)
(download)
Fri Sep 25 09:04:08 2015 UTC (9 years ago) by niro
Original Path: alx-src/branches/alx-web-070/reboot.php
File size: 709 byte(s)
Fri Sep 25 09:04:08 2015 UTC (9 years ago) by niro
Original Path: alx-src/branches/alx-web-070/reboot.php
File size: 709 byte(s)
-use ping_host() function
1 | <? |
2 | include('include/common-functions.php'); |
3 | include('include/socket_send.php'); |
4 | |
5 | echo '<body onload="window.setTimeout(\'window.close()\', 1750)">'; |
6 | echo '<table width=100% height=100% style="border:solid black 1px; background-color:#d5e5ff"><tr><td valign=middle align=center>'; |
7 | |
8 | # reboot des clients |
9 | $retval = ping_host($ip, $mcore_port, $ping_timeout); |
10 | if($retval==0) |
11 | { |
12 | echo '<img src="pics/online.gif" align=top> '.strtoupper($op.'ing client #'.$client.' ('.$ip.')...<br>'); |
13 | //@sshdo('/sbin/'.$op, $ip); |
14 | mcore_socket_send($ip, $mcore_port, "set system.".$op); |
15 | } |
16 | else echo '<img src="pics/offline.gif" align=top> '.strtoupper('Client not online, try again later...<br>'); |
17 | |
18 | echo '</td></tr></table>'; |
19 | ?> |
Properties
Name | Value |
---|---|
svn:executable | * |