Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2804 - (show annotations) (download)
Mon Aug 29 20:22:21 2011 UTC (12 years, 8 months ago) by niro
File size: 631 byte(s)
-merged branch alx-web-0_6_0 into trunk
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 passthru($pingcmd." ".$ip." &> /dev/null && exit 0 || exit 1",$retval);
9 if($retval==0)
10 {
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
16 echo '</td></tr></table>';
17 ?>

Properties

Name Value
svn:executable *