Contents of /alx-src/tags/alx-web-0_7_0_20170802_2/reboot.php
Parent Directory | Revision Log
Revision 7709 -
(show annotations)
(download)
Fri Sep 25 08:57:27 2015 UTC (9 years ago) by niro
Original Path: alx-src/branches/alx-web-070/reboot.php
File size: 708 byte(s)
Fri Sep 25 08:57:27 2015 UTC (9 years ago) by niro
Original Path: alx-src/branches/alx-web-070/reboot.php
File size: 708 byte(s)
-use mcore_socket_send() to reboot clients
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 | passthru($pingcmd." ".$ip." &> /dev/null && exit 0 || exit 1",$retval); |
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, "6666", $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 | * |