Нужно в overall_header.tpl выводить скрипт такого типа:
Код: Выделить всё
<?php
$ip = gethostbyname("172.16.147.48");
echo("<center>");
echo "<table class=bodyline width=760 cellspacing=0 cellpadding=0 border=0 align=center>\n";
echo "<tr>\n";
if($fp = @fsockopen($ip, 27780,$un,$sinn,2)) {
echo("<b><th>Login Server: </b></th><td class=font4 ><b><font color=\"green\">ONLINE</font></b></td>");
fclose($fp);
} else {
echo("<b><th>Login Server: </b></th><td class=font4 ><b><font color=\"#DD0000\">OFFLINE</font></b></td>");
}
if($fp = @fsockopen($ip, 28000,$un,$sinn,2)) {
echo("<b><th>Account Server: </b></th><td class=font4><b><font color=\"green\">ONLINE</font></b></td>");
fclose($fp);
} else {
echo("<b><th>Account Server: </b></th><td class=font4 ><b><font color=\"#DD0000\">OFFLINE</font></b></td>");
}
if($fp = @fsockopen($ip, 17888,$un,$sinn,2)) {
echo("<b><th>Control Server: </b></th><td class=font4 ><b><font color=\"green\">ONLINE</font></b></td>");
fclose($fp);
} else {
echo("<b><th>Control Server: </b></th><td class=font4 ><b><font color=\"#DD0000\">OFFLINE</font></b></td>");
}
if($fp = @fsockopen($ip, 10001,$un,$sinn,2)) {
echo("<b><th>Zone Server: </b></th><td class=font4 ><b><font color=\"green\">ONLINE</font></b></td>");
fclose($fp);
} else {
echo("<b><th>Zone Server: </b></th><td class=font4 ><b><font color=\"#DD0000\">OFFLINE</font></b></td>");
}
echo "</tr>\n";
echo "</table>\n";
echo "<br><br>\n";
echo("</center>");
?>