[spoiler=]Code
<html>
<center><img src="http://deshivo.ru/components/com_lgsl/lgsl_files/icons/logo.png"><br>
<a href="http://deshivo.ru/index2.php?option=com_lgsl&s=add"> Купить VIP </a> |
<a href="http://deshivo.ru/index2.php?option=com_lgsl&s=add"> Добавить Сервер </a>
</html>
<?php
/*----------------------------------------------------------------------------------------------------------\
| |
| [ LIVE GAME SERVER LIST ] [ © RICHARD PERRY FROM GREYCUBE.COM ] |
| |
| Released under the terms and conditions of the GNU General Public License Version 3 (http://gnu.org) |
| |
|-------------------------------------------------------------------------------------------------------------
| [ EDITOR STYLE SETTINGS: LUCIDA CONSOLE, SIZE 10, TAB = 2 SPACES, BOLD GLOBALLY TURNED OFF ] |
\-----------------------------------------------------------------------------------------------------------*/
//------------------------------------------------------------------------------------------------------------+
require "lgsl_class.php";
$server_list = lgsl_query_cached_all("s");
$server_list = lgsl_sort_servers($server_list);
//------------------------------------------------------------------------------------------------------------+
$output .= "
<div style='text-align:center; font-size:10px; font-face:arial'>
<table cellpadding='4' cellspacing='2' style='margin:auto'>
";
$output .= "
<tr style='".lgsl_bg().";table-layout:fixed'>
<td>
C
</td>
<td>
К
</td>
<td title='{$lgsl_config['text']['slk']}' style='text-align:right'>
IP:Порт
</td>
<td title='{$server['s']['name']}' style='text-align:left'>
<div style='width:100%; overflow:hidden; height:1.3em'>
Имя сервера
</div>
</td>
<td style='white-space:nowrap; text-align:left'>
Карта
</td>
<td style='white-space:nowrap; text-align:right'>
Людей
<td style='white-space:nowrap; text-align:center'>
П
</td>
</tr>";
foreach ($server_list as $server)
{
$misc = lgsl_server_misc($server);
$server = lgsl_server_html($server);
$output .= "
<tr style='".lgsl_bg().";table-layout:fixed'>
<td>
<img alt='' src='{$misc['icon_status']}' title='{$misc['text_status']}' />
</td>
<td>
<img alt='' src='{$misc['icon_game']}' title='{$misc['text_type_game']}' />
</td>
<td title='{$lgsl_config['text']['slk']}' style='text-align:right'>
{$server['b']['ip']}:{$server['b']['c_port']}
</td>
<td title='{$server['s']['name']}' style='text-align:left'>
<div style='width:100%; overflow:hidden; height:1.3em'>
{$misc['name_filtered']}
</div>
</td>
<td style='white-space:nowrap; text-align:left'>
{$server['s']['map']}
</td>
<td style='white-space:nowrap; text-align:right'>
{$server['s']['players']} / {$server['s']['playersmax']}
</td>
<td style='white-space:nowrap; text-align:center'>
<a href='".lgsl_link($server['o']['id'])."'>
<img alt='' src='{$misc['icon_details']}' style='border:none' title='{$lgsl_config['text']['vsd']}' />
</a>
</td>
</tr>";
}
$output .= "
</table>
</div>";
//------------------------------------------------------------------------------------------------------------+
if ($lgsl_config['list']['totals'])
{
$total = lgsl_cached_totals();
$output .= "
<div>
<br />
</div>
<div style='text-align:center'>
<table cellpadding='4' cellspacing='4' style='margin:auto'>
<tr style='".lgsl_bg()."'>
<td> {$lgsl_config['text']['tns']} {$total['servers']} </td>
<td> {$lgsl_config['text']['tnp']} {$total['players']} </td>
<td> {$lgsl_config['text']['tmp']} {$total['playersmax']} </td>
</tr>
</table>
</div>";
}
//-------------------------------------------------------------------------------------------------------------------------------------------- ------------------------------------------------------+
//------ PLEASE MAKE A DONATION OR SIGN THE GUESTBOOK AT GREYCUBE.COM IF YOU REMOVE THIS CREDIT ---------------------------------------------------------------------------------------------------+
$output .= "<div style='text-align:center; font-family:tahoma; font-size:9px'><br /><br /><br /><a href='http://www.greycube.com' style='text-decoration:none'>".lgsl_version()."</a><br /></div>";
//-------------------------------------------------------------------------------------------------------------------------------------------- ------------------------------------------------------+
?>
[/spoiler]
http://deshivo.ru/index2.php?option=com_lgsl
Вопрос как мне встроить в страницу :
Code
<?php
$lgsl_zone_number = 1;
$output = "";
require "lgsl_zone.php";
echo $output;
?>
что бы он выводился над основными серверами но не выше вспомагательных элемантов(IP:Порт Имя сервера Карта Людей)?