Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 7737 - (show annotations) (download)
Tue Nov 3 10:52:54 2015 UTC (8 years, 5 months ago) by niro
File size: 813 byte(s)
-allow reboot via push-config
1 <?
2 include('include/config.inc.php');
3 include('include/basesql.php');
4 include('include/socket_send.php');
5
6 echo '<body onload="window.setTimeout(\'window.close()\', 1750)">';
7 echo '<table width=100% height=100% style="border:solid black 1px; background-color:#d5e5ff"><tr><td valign=middle align=center>';
8
9 # reboot des clients
10 $retval = ping_host($ip, $mcore_port, $ping_timeout);
11 if($retval==0)
12 {
13 echo '<img src="pics/online.gif" align=top> '.strtoupper($op.'ing client #'.$client.' ('.$ip.')...<br>');
14 if($op=="apply") mcore_socket_send($dbhost, $mcore_port, "push-config ".$client);
15 else mcore_socket_send($dbhost, $mcore_port, "control system.".$op." ".$client);
16 }
17 else echo '<img src="pics/offline.gif" align=top> '.strtoupper('Client not online, try again later...<br>');
18
19 echo '</td></tr></table>';
20 ?>

Properties

Name Value
svn:executable *