Добавяне на странциране към код

LutenicaTa

Registered
Може ли да ми сложите странциране на този код
Код:
<?php require "s/lgsl_menu.php"; ?>
<?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";
   include("geoip.inc");
  //$gi = geoip_open("/usr/local/share/GeoIP/GeoIP.dat",GEOIP_STANDARD);
  //http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz
  $gi = geoip_open("GeoIP.dat",GEOIP_STANDARD);
  global $lgsl_config;
  lgsl_database();
  
$mysql_result2 = mysql_query("SELECT * FROM `groups` ORDER BY `gid` ASC");
$output .= "<table class='list_table' cellpadding='0' width=100%>";
$output .="<tr style='".lgsl_bg().";'><td style='text-align: center' height='15px;' class='list_row_header'>Статус</td><td style='text-align: center' class='list_row_header'>Игра</td><td style='text-align: center' class='list_row_header'>Име на сървъра</td><td style='text-align: center' class='list_row_header'>IP Адрес</td><td style='text-align: center' class='list_row_header'>Карта</td><td style='text-align: center' class='list_row_header'>Играчи</td><td style='text-align: center' class='list_row_header'>Рейтинг</td></tr>";
		  while($mysql_row2 = mysql_fetch_array($mysql_result2, MYSQL_ASSOC)){;
 $ii=1;
  $server_list = lgsl_query_cached_all("s", $mysql_row2['gid']);
  //$server_list = lgsl_sort_servers($server_list);

//------------------------------------------------------------------------------------------------------------+
 
       if( @$_GET['vote'] == 'err' ) {
		 $output .= "<h1 style='text-align:center;'>Вие Гласувахте за този сървър!</h1><br />";
	}

    foreach ($server_list as $server)
    {
      $misc   = lgsl_server_misc($server);
      $server = lgsl_server_html($server);
  
      if ($server['b']['vip'] == 2) {
	  $td_class = "list_row";
      }
      else {
      $td_class = "list_row_vip";	
      }
      $geoc = geoip_country_code_by_addr($gi, $server['b']['ip'])."".geoip_country_code_by_name($gi, $server['b']['ip']);
      $geoc = strtolower($geoc);
      $geoc = "<img src='flags/{$geoc}.png' alt='{$geoc}' title='{$geoc}' />";
      $output .= "
      <tr>
        <td class='".$td_class."'>
         <center><img alt='' src='{$misc['icon_status']}' title='{$misc['text_status']}' />
        </td>
        <td class='".$td_class."'>
         <center> <img alt='' src='{$misc['icon_game']}' title='{$misc['text_type_game']}' />
        </td>
        <td title='{$server['s']['name']} '  class='".$td_class."'>
          
          <a href='".lgsl_link($server['o']['id'])."'>
          <center>{$misc['name_filtered']}</center>
            </a>
        </td>
        <td title='{$lgsl_config['text']['slk']}'  class='".$td_class."'>
          <center><span onclick='prompt(\"IP адрес на сървър {$server['s']['name']}:\",\"{$server['b']['ip']}:{$server['b']['c_port']}\"); return false;'>{$server['b']['ip']}:{$server['b']['c_port']}</span></center>
        </td>

        <td  class='".$td_class."'>
       <center>  
          <a class='tip' href='http://files.gamebanana.com/maps/{$server['s']['map']}.rar' target='_blank'> <span> 
<img alt='' src='{$misc['image_map']}'  width='160' height='120'/></span>{$server['s']['map']}</a> 
          </a>
        </td>
        <td  class='".$td_class."'>
        <center>	<a href='".lgsl_link($server['o']['id'])."'>
          {$server['s']['players']} / {$server['s']['playersmax']}
          </a>
        </td>
    <td class='".$td_class."'> <center><a href='rating.php?id={$server['o']['id']}&add=+1'><img src='images/ups.png'></a> {$server['rating']} <a href='rating.php?id={$server['o']['id']}&add=-1'><img src='images/down.png'></a> </td>

       </tr>";
       $ii++;
    }

//------------------------------------------------------------------------------------------------------------+

 
}
$output .= "</table><br>";
//--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
//------  PLEASE MAKE A DONATION OR SIGN THE GUESTBOOK AT GREYCUBE.COM IF YOU REMOVE THIS CREDIT ---------------------------------------------------------------------------------------------------+

geoip_close($gi);
//--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+

?>
 

Горе