Parašė zabello· 2009 Kov. 8 11:03:07
#1
tai vat noriu editinti lgsl isimeciau ji
http://www.thegtaplace.lt/server... ir neiseina padaryti taip kad paspaudus ant servo IP adreso numestu i jo statistika ira padarytas mygtukas desineje puseje tokia strelyte man jos nereikia reikia kad butu tokia funkcija uzdeta ant serverio IP adreso. dabar ant IP adreso stovi toks linkas
<a href='{$misc['software_link']}' style='text-decoration:none'>
oman reikia kad butu toks
<img alt='' src='{$misc['icon_details']}' style='border:none' title='{$lgsl_config['text']['vsd']}' />
tik kad vietoi strelytes butu serverio IP
Va visas kodas
<?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'>
<table cellpadding='4' cellspacing='2' style='margin:auto'>";
foreach ($server_list as $server)
{
$misc = lgsl_server_misc($server);
$server = lgsl_server_html($server);
$output .= "
<tr style='".lgsl_bg()."'>
<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'>
<a href='{$misc['software_link']}' style='text-decoration:none'>
{$server['b']['ip']}:{$server['b']['c_port']}
</a>
</td>
<td title='{$server['s']['name']}' style='text-align:left'>
<div style='white-space:nowrap; overflow:hidden; width:300px'>
{$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>
<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>";
//--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
?>
busiu labai dekingas kas pades