Annotation of /alx-src/branches/alx-web-070/reboot.php
Parent Directory | Revision Log
Revision 7714 -
(hide annotations)
(download)
Fri Sep 25 09:04:08 2015 UTC (9 years ago) by niro
File size: 709 byte(s)
Fri Sep 25 09:04:08 2015 UTC (9 years ago) by niro
File size: 709 byte(s)
-use ping_host() function
1 | niro | 1600 | <? |
2 | niro | 2198 | include('include/common-functions.php'); |
3 | niro | 7709 | include('include/socket_send.php'); |
4 | niro | 1600 | |
5 | niro | 2198 | 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 | niro | 1600 | |
8 | niro | 2198 | # reboot des clients |
9 | niro | 7714 | $retval = ping_host($ip, $mcore_port, $ping_timeout); |
10 | niro | 2421 | if($retval==0) |
11 | niro | 2198 | { |
12 | echo '<img src="pics/online.gif" align=top> '.strtoupper($op.'ing client #'.$client.' ('.$ip.')...<br>'); | ||
13 | niro | 7709 | //@sshdo('/sbin/'.$op, $ip); |
14 | niro | 7713 | mcore_socket_send($ip, $mcore_port, "set system.".$op); |
15 | niro | 2198 | } |
16 | else echo '<img src="pics/offline.gif" align=top> '.strtoupper('Client not online, try again later...<br>'); | ||
17 | niro | 1600 | |
18 | niro | 2198 | echo '</td></tr></table>'; |
19 | niro | 1600 | ?> |
Properties
Name | Value |
---|---|
svn:executable | * |