Вовка держи...
<?php
//Do not remove this header
//This script package is distributed by kadar of L2j.sourceforge
//You are free to distribute this package as long as the headers stay intact.
//
//This file must stay in the parent directory of the script folder
//and must be filled out correctly for the scripts to work.
//
//It is suggested to make a new user and pass for the scripts
//and set the permissions to select only.
$db_user = "user"; //your sql username goes here
$db_pass = "pass"; //your sql password goes here
$db_name = "l2jdb"; //your database name goes here
$db_serv = "localhost"; //the address of the database goes here
$res = mysql_connect ( $db_serv, $db_user, $db_pass ) or die ("Coudn't connect to [$db_serv]");
mysql_select_db ( $db_name );
?>
<html>
<head>
<title>Online Server</title>
</head>
<body bgcolor="#00192c" text="#FFFFFF" link="#FFFF00" vlink="#FFFF80" alink="#FFFFF9">
<hr><td><tr><center><b><a href="http://site">Сайт</a> <a href="http://site/forum">Форум</a> </b></center></td></tr><hr>
<?php
include("Connection.php");
$FORM = "<table width=100% border="0" cellpadding="0" cellspacing="0">
<tr>
<td width=100% height=34 colspan=2 align=center class="toprow"><B>
Статус Сервера</td></tr>";
//get server status
//Insert your IP below, in 2 places
$fgame = fsockopen ("свой IP",7777, $errno, $errstr, 1);
if ( $fgame )
$FORM .= "<tr><td><center><img src=up.gif> Включен</td></tr>";
else
$FORM .= "<tr><td><center><img src=down.gif> Выключен</td></tr>";
//get online players
$query = "select count(char_name) from characters";
$link = mysql_query($query);
$all = mysql_fetch_row($link);
$query = "select char_name from characters where online=1";
$link = mysql_query($query);
$num = mysql_num_rows($link);
$FORM .= "<tr><td><hr><B><span style="font-size:10px;font-family:verdana;color:#FFFFFF"><center>В Игре - $num / Всего Игроков - $all[0]</span></td></tr><tr><td align=justify><hr><B><span style="font-size:12px;font-family:Verdana;color:#FFFFFF">";
while ( $char = mysql_fetch_row($link) )
{
$FORM .= " $char[0] ";
}
$FORM .= "</span></td></tr></table><center>";
echo $FORM;
$FORM1 .= "<hr>";
$classes = array("Fighter","Warrior","Gladiator","Warlord","Knight","Paladin","Dark Avenger","Rogue","Treasure Hunter","Hawkeye","Mage","Wizard","Sorceror","Necromancer","Warlock","Cleric","Bishop","Prophet",
"Fighter","Knight","Temple Knight","SwordSinger","Scout","Plains Walker","Silver Ranger","Mage","Wizard","SpellSinger","Elemental Summoner","Oracle","Elder",
"Fighter","Paulus Knight","Shillien Knight","BladeDancer","Assassin","Abyss Walker","Phantom Ranger","Mage","Dark Wizard","Spellhowler","Phantom Summoner","Shillien Oracle","Shillien Elder",
"Fighter","Raider","Destroyer","Monk","Tyrant","Mage","Shaman","Overlord","Warcryer",
"Fighter","Scavenger","Bounty Hunter","Artisan","Warsmith");
$sexes = array('male', 'female');
$levels = array('-100' => "Banned", '100' => "GM");
$FORM2 = "<table width=100% cellspacing="0" cellpadding="0">
<tr>
<td width=100% height=34 colspan=8 align=center class="toprow">
Top 50 Players
</td>
</tr>
<tr>
<td style="width:24px;padding-left:10px" height=34 class=catrow align=center>
<span class=catrowtext>позиция</span>
</td>
<td style="width:70px" class=catrow align=center>
<span class=catrowtext>чар</span>
</td>
<td style="width:36px" class=catrow align=center>
<span class=catrowtext>уровень</span>
</td>
<td style="width:28px" class=catrow align=center>
<span class=catrowtext>пол</span>
</td>
<td class=catrow align=center>
<span class=catrowtext>профа</span>
</td>
<td class=catrow align=center>
<span class=catrowtext>клан</span>
</td>
</tr>";
$query_chars = "select char_name,level,exp,sex,classid,clanid,accesslevel from characters where accesslevel = 0 order by level desc limit 50;";
$link = mysql_query($query_chars);
$i=1;
$r=255;
while ( $row=mysql_fetch_row($link) )
{
$query = "select clan_name from clan_data where clan_id=$row[5]";
$link2 = mysql_query($query);
$clan = mysql_fetch_row($link2);
$style_string = "<span style="color: rgb($b,10,50)">";
$FORM2 .= "<tr>
<td style="border-right:1px solid red" class=row1 align=center>$style_string$i</span></td>
<td style="border-right:1px solid red" class=row2 align=center>$style_string$row[0]</td>
<td style="border-right:1px solid red" class=row2 align=center>$style_string$row[1]</td>
<td style="border-right:1px solid red" class=row2 align=center>$style_string".$sexes[$row[3]]."</td>
<td style="border-right:1px solid red" class=row2 align=center>$style_string".$classes[$row[4]]."</td>
<td style="border-right:1px solid red" class=row2 align=center>$style_string ".$clan[0]."</td>
</tr>";
$i++;
$r -= 5;
}
echo $FORM2;
echo $FORM1;
mysql_close();
?>
</body>
</html>
В корень закинь еще пару картинок up.gif и down.gif для отображения состояния сервера.
Итого имеем...
1. Ссылки на сайт...форум.
2. Состояние сервера - онлайн оффлайн...
3. В Игре - xx / Всего Игроков - xx
4. Кто в онлайне - по никам список...
5. Top 50 Players с отображением позиция ник уровень пол профа клан.