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