[help]Вывод онлайн
2 replies152 viewsCurrently viewing: 1
· 06/26/2009, 06:50 AM
Есть вывод онлайна,сейчас он выглидит так:
Код
<?php
/********************************************************************/
/* */
/* Lineage2 DLE Module, Copyright © 2007-2008, hellEVIL TEAM */
/* http://www.hellevil.net */
/* */
/********************************************************************/
if(!defined('DATALIFEENGINE')) {
die("Hacking attempt!");
}
define("MOD","serverslist");
require_once ENGINE_DIR.'/lineage/admin/include/common.php';
$servl2 = dle_cache("servl2", $config["skin"]);
if (!$servl2) {
$servl2 = "<table id='l2online'>";
$servl2.= "<tr><th class='servName'></th><th></th><th colspan='2'></th></tr> <tr><th colspan='2'> </th><th></th><th></th></tr>\n";
$loginonline = CheckServerOnline($la2config["loginserver"]["host"], $la2config["loginserver"]["port"], 1);
foreach ($serverList as $i) {
$online = CheckServerOnline($la2config["gameserver"][$i]["server"]["host"], $la2config["gameserver"][$i]["server"]["port"]);
$servl2.= "<tr><td class='servName'>".$la2config["gameserver"][$i]["title"]."</td>\n";
$servl2.= "<td>".GetServerOnline($i)."</td>\n";
$servl2.= "<td><img src='{THEME}/lineage/img/ico-".($loginonline?"on":"of").".png' alt='".($online?"on":"off")."' /></td>\n";
$servl2.= "<td><img src='{THEME}/lineage/img/ico-".($online?"on":"of").".png' alt='".($online?"on":"off")."' /></td></tr>\n";
}
$servl2.= "</table><br>";
}
$l2menu = dle_cache("l2menu", $config["skin"]);
if (empty($l2menu)) {
$l2menu = "<a href='/?do=lineage&module=registration'>Регистрация</a><br />";
$l2menu.= "<a href='/?do=lineage&module=account'>Личный кабинет</a><br />";
$l2menu.= "<a href='/?do=lineage&module=stat'>Статистика</a><br />";
}
?>
/********************************************************************/
/* */
/* Lineage2 DLE Module, Copyright © 2007-2008, hellEVIL TEAM */
/* http://www.hellevil.net */
/* */
/********************************************************************/
if(!defined('DATALIFEENGINE')) {
die("Hacking attempt!");
}
define("MOD","serverslist");
require_once ENGINE_DIR.'/lineage/admin/include/common.php';
$servl2 = dle_cache("servl2", $config["skin"]);
if (!$servl2) {
$servl2 = "<table id='l2online'>";
$servl2.= "<tr><th class='servName'></th><th></th><th colspan='2'></th></tr> <tr><th colspan='2'> </th><th></th><th></th></tr>\n";
$loginonline = CheckServerOnline($la2config["loginserver"]["host"], $la2config["loginserver"]["port"], 1);
foreach ($serverList as $i) {
$online = CheckServerOnline($la2config["gameserver"][$i]["server"]["host"], $la2config["gameserver"][$i]["server"]["port"]);
$servl2.= "<tr><td class='servName'>".$la2config["gameserver"][$i]["title"]."</td>\n";
$servl2.= "<td>".GetServerOnline($i)."</td>\n";
$servl2.= "<td><img src='{THEME}/lineage/img/ico-".($loginonline?"on":"of").".png' alt='".($online?"on":"off")."' /></td>\n";
$servl2.= "<td><img src='{THEME}/lineage/img/ico-".($online?"on":"of").".png' alt='".($online?"on":"off")."' /></td></tr>\n";
}
$servl2.= "</table><br>";
}
$l2menu = dle_cache("l2menu", $config["skin"]);
if (empty($l2menu)) {
$l2menu = "<a href='/?do=lineage&module=registration'>Регистрация</a><br />";
$l2menu.= "<a href='/?do=lineage&module=account'>Личный кабинет</a><br />";
$l2menu.= "<a href='/?do=lineage&module=stat'>Статистика</a><br />";
}
?>
Помогите плз сделать вот так:
Логин: (картинка)
Гейм: (картинка)
ПЕрсонажей: 12345
0
Topic is closed for replies


