openside("name");
echo "<?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 ] |
\-----------------------------------------------------------------------------------------------------------*/
//------------------------------------------------------------------------------------------------------------+
ini_set('display_errors', 0);
require 'lgsl_class.php';
$output='';
//------------------------------------------------------------------------------------------------------------+
// THIS ALLOWS YOU TO CONTROL THE FIELDS DISPLAYED AND THEIR ORDER
$fields_show = array('name', 'score', 'deaths', 'team', 'ping', 'bot', 'time'); // THESE FIELDS ARE ORDERED FIRST
$fields_hide = array('teamindex', 'pid', 'pbguid'); // THESE FIELDS ARE REMOVED
$fields_other = TRUE; // FALSE WILL HIDE FIELDS NOT IN $fields_show
//------------------------------------------------------------------------------------------------------------+
// GET THE SERVER DETAILS AND PREPARE IT FOR DISPLAY
$lookup = lgsl_lookup_id($_GET['cs']);
if (!$lookup)
{
$output .= "<div style='margin:auto; text-align:center'> {$lgsl_config['text']['mid']} </div>"; return;
}
$server = lgsl_query_cached($lookup['type'], $lookup['ip'], $lookup['c_port'], $lookup['q_port'], $lookup['s_port'], "sep");
$fields = lgsl_sort_fields($server, $fields_show, $fields_hide, $fields_other);
$server = lgsl_sort_players($server);
$server = lgsl_sort_extras($server);
$misc = lgsl_server_misc($server);
$server = lgsl_server_html($server);
//------------------------------------------------------------------------------------------------------------+
//------------------------------------------------------------------------------------------------------------+
// SHOW THE STANDARD INFO
$output .= '
<table class="info_line" cellspacing="0" cellpadding="0">
<tr>
<td style="padding-left:5px;">
<b>IP:</b>
</td>
<td style="padding-left:5px;">
<a href="'.$requirepath.'lgsl.php?s='.$server['o']['id'].'">'.$server['b']['ip'].':'.$server['b']['c_port'].'</a>
</td>
</tr>
<tr>
<td style="padding-left:5px;padding-top:5px;" colspan="2">
<b>Players:</b>
'.$server['s']['players'].'/'.$server['s']['playersmax'].'
</td>
</tr>
<tr>
<td style="padding-left:5px;padding-top:5px;" colspan="2">
<b>Map:</b>
<a href="'.$requirepath.'lgsl.php?s='.$server['o']['id'].'">
'.$server['s']['map'].'
</a>
</td>
</tr>
<tr>
<td style="padding-top:5px;" colspan="2" align="center">
<img alt="de_dust2" src="'.$misc['image_map'].'" width="132" />
</td>
</tr>
</table>';
?>";
closeside();