Magellan Linux

Contents of /alx-src/branches/alx-web-070/reboot.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 7711 - (show annotations) (download)
Fri Sep 25 08:59:31 2015 UTC (8 years, 7 months ago) by niro
File size: 713 byte(s)
-use mcore_port variable
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, $mcore_port, $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 *