Contents of /alx-src/branches/alx-web-070/reboot.php
Parent Directory | Revision Log
Revision 2198 -
(show annotations)
(download)
Tue Jun 7 18:28:14 2011 UTC (13 years, 3 months ago) by niro
Original Path: alx-src/branches/alx-web-060/reboot.php
File size: 565 byte(s)
Tue Jun 7 18:28:14 2011 UTC (13 years, 3 months ago) by niro
Original Path: alx-src/branches/alx-web-060/reboot.php
File size: 565 byte(s)
-fixed whitepaces -use sshdo() for all client actions
1 | <? |
2 | include('include/common-functions.php'); |
3 | |
4 | echo '<body onload="window.setTimeout(\'window.close()\', 1750)">'; |
5 | echo '<table width=100% height=100% style="border:solid black 1px; background-color:#d5e5ff"><tr><td valign=middle align=center>'; |
6 | |
7 | # reboot des clients |
8 | if(online($ip) == 0) |
9 | { |
10 | echo '<img src="pics/online.gif" align=top> '.strtoupper($op.'ing client #'.$client.' ('.$ip.')...<br>'); |
11 | sshdo('/sbin/'.$op, $ip); |
12 | } |
13 | else echo '<img src="pics/offline.gif" align=top> '.strtoupper('Client not online, try again later...<br>'); |
14 | |
15 | echo '</td></tr></table>'; |
16 | ?> |
Properties
Name | Value |
---|---|
svn:executable | * |