Annotation of /alx-src/branches/alx-web-070/reboot.php
Parent Directory | Revision Log
Revision 2421 -
(hide annotations)
(download)
Wed Jun 15 16:45:14 2011 UTC (13 years, 3 months ago) by niro
Original Path: alx-src/branches/alx-web-060/reboot.php
File size: 631 byte(s)
Wed Jun 15 16:45:14 2011 UTC (13 years, 3 months ago) by niro
Original Path: alx-src/branches/alx-web-060/reboot.php
File size: 631 byte(s)
-online functions needs permissions for raw sockets, which needs root priviledges - cannot use this atm
1 | niro | 1600 | <? |
2 | niro | 2198 | include('include/common-functions.php'); |
3 | niro | 1600 | |
4 | niro | 2198 | 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 | niro | 1600 | |
7 | niro | 2198 | # reboot des clients |
8 | niro | 2421 | passthru($pingcmd." ".$ip." &> /dev/null && exit 0 || exit 1",$retval); |
9 | if($retval==0) | ||
10 | niro | 2198 | { |
11 | echo '<img src="pics/online.gif" align=top> '.strtoupper($op.'ing client #'.$client.' ('.$ip.')...<br>'); | ||
12 | sshdo('/sbin/'.$op, $ip); | ||
13 | } | ||
14 | else echo '<img src="pics/offline.gif" align=top> '.strtoupper('Client not online, try again later...<br>'); | ||
15 | niro | 1600 | |
16 | niro | 2198 | echo '</td></tr></table>'; |
17 | niro | 1600 | ?> |
Properties
Name | Value |
---|---|
svn:executable | * |