Annotation of /alx-src/tags/alx-web-0_7_0_20160208_1/reboot.php
Parent Directory | Revision Log
Revision 7711 -
(hide annotations)
(download)
Fri Sep 25 08:59:31 2015 UTC (9 years ago) by niro
Original Path: alx-src/branches/alx-web-070/reboot.php
File size: 713 byte(s)
Fri Sep 25 08:59:31 2015 UTC (9 years ago) by niro
Original Path: alx-src/branches/alx-web-070/reboot.php
File size: 713 byte(s)
-use mcore_port variable
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 | 2421 | passthru($pingcmd." ".$ip." &> /dev/null && exit 0 || exit 1",$retval); |
10 | 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 | 7711 | mcore_socket_send($ip, $mcore_port, $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 | * |