скажите пож что тут нетак??? <?
require_once ('conf.php');
$mysql_connect ("$host"localhost":$port"8085"$login"root","$pass"mangos");
?><?
$fp = @fsockopen("127.0.0.1",3724, $errno, $errstr, 1);
if($fp >= 1){
$login = '<font color=#00CC00 size=1 face=verdana>On</font>';
} else {
$login = '<font color=#CC0000 size=1 face=verdana>Off</font>';
}
$fp = @fsockopen("127.0.0.1", 8085, $errno, $errstr, 1);
if($fp >= 1){
$gamen = '<font color=#00CC00 size=1 face=verdana><img src="/images/on.gif"></font>';
} else {
$gamen = '<font color=#CC0000 size=1 face=verdana><img src="/images/off.gif"></font>';
}
echo "
<b> <center>Статус: $gamen</b>
<br>
"
?><?
mysql_selectdb ("$dbc"realmd");
$online = mysql_query ("select count(*) from characters where online = 1");
$online = mysql_result ($online,0);
$allianceonline = mysql_query ("select count(*) from characters where online = 1 and race in (1,3,4,7,11)");
$allianceonline = mysql_result ($allianceonline,0);
$hordeonline = mysql_query ("select count(*) from characters where online = 1 and race in (2,5,6,8,10)");
$hordeonline = mysql_result ($hordeonline,0);
mysql_selectdb ("$dbr");
$max = mysql_query ("select max(`maxplayers`) from uptime");
$max = mysql_result ($max,0);
echo "Игроков Онлайн: $online<br>";
echo "Альянса Онлайн: $allianceonline<br>";
echo "Орды Онлайн: $hordeonline<br>";
echo "МаксОнлайн: $max<br> </BR>";
?>
<?
include('config.php');
mysql_connect("$ip", "$dblogin"root", "$dbpass"mangos");
mysql_select_db ("$rdb");
$uptime = mysql_query ("select max(`starttime`) from `uptime`");
$uptime = time()-mysql_result ($uptime,0);
$sec = $uptime%60;
$uptime = intval ($uptime/60);
$min = $uptime%60;
$uptime = intval ($uptime/60);
$hours = $uptime%24;
$uptime = intval($uptime/24);
$days = $uptime;
echo "<strong><font color=#CC0000>Время pаботы </strong>:<br><img src='img/clock.png'> $days <strong>д</strong> $hours <strong>ч</strong> $min <strong>м</strong> $sec <strong>с</strong><br>";
?> </p>