Magellan Linux

Annotation of /alx-src/trunk/alx-web/reboot.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2198 - (hide annotations) (download)
Tue Jun 7 18:28:14 2011 UTC (12 years, 11 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 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     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 niro 1600
15 niro 2198 echo '</td></tr></table>';
16 niro 1600 ?>

Properties

Name Value
svn:executable *