- <?php 
- include('include/config.php'); 
- include('include/function.php'); 
- error_reporting(E_ERROR | E_PARSE);   
- if ( $_GET['s'] ) $start = $_GET['s']; 
- else $start = 0; 
-   
- load_language(LANGUAGEDIR, LANGUAGE); 
-   
- echo '<title>'.TITLE.'</title> 
- <link rel="stylesheet" type="text/css" href="include/'.CSSFILE.'" /> 
- <body>'; 
-   
- if ( $_GET['err'] == 0 AND strncomp() == 1){ 
-   
- $sql = mysql_connect(DB_HOST, DB_USER, DB_PASS) or die("Unable to connect to MySQL."); 
- mysql_select_db(DB_NAME, $sql) or die ("Unable to select database.");    
-   
- $map_query_count = "SELECT DISTINCT mapname FROM kz_pro15"; 
- $result_count = mysql_query($map_query_count, $sql); 
-   
- while( $map = mysql_fetch_array($result_count) ) 
- { 
-     $tab1[] = $map['mapname'];  
- } 
-   
- //var_dump($tab1); 
-   
- $map_query_count = "SELECT DISTINCT mapname FROM kz_nub15"; 
- $result_count = mysql_query($map_query_count, $sql); 
-   
- while( $map = mysql_fetch_array($result_count) ) 
- { 
-     $tab2[] = $map['mapname'];  
- } 
-   
- //var_dump($tab2); 
-   
- for ($i = 0; $i < count($tab2); $i++) { 
-     if (!in_array($tab2[$i], $tab1))  
-     { 
-         $tab1[] = $tab2[$i]; 
-     } 
- } 
-   
- //var_dump($tab1); 
-   
- sort($tab1); 
-   
- $map_count = count($tab1); 
-   
- $links = floor($map_count/MAP_ON_PAGE); 
-   
- menu('map', $map_count, ''); 
-   
- echo '<br /><center>'; 
-   
- for($i = 0; $i <= $links; $i++) 
- { 
-     $s = MAP_ON_PAGE * $i; 
-     if ( $s == $start ) echo ' <a href="map.php?s='.$s.'"><b>'.($i+1).'</b></a> '; 
-     else echo ' <a href="map.php?s='.$s.'">'.($i+1).'</a> '; 
- } 
- echo '<br /><br />'; 
-   
- echo "<table align='center' width='85%' cellpadding='2' cellspacing='1' border='0'>"; 
- echo "<tr align='center' bgcolor='#145e79' style='color: #ffffff; font-family: Verdana, Geneva, sans-serif; font-size: 12px; '>"; 
- if ( MAPLIST_HASH_ENABLE == 1 ) echo "<th width='3%' align='center'> ".HASH." "; 
-   
- if ( ALL_IN_ONE == 1 ) echo "<th width='20%' align='center'> ".MAP." <th align='center'>".NAME."<th width='10%' align='center'>".TIME."<th width='10%' align='center'>".DATE."<th width='10%' align='center'>".WEAPON; 
-   
- if ( ALL_IN_ONE == 0 OR ALL_IN_ONE == 2 ) echo "<th width='20%' align='center'> ".MAP." <th align='center'>".NAME."<th width='10%' align='center'>".TIME."<th width='10%' align='center'>".DATE."<th width='10%' align='center'>".WEAPON."<th width='8%' align='center'>".PRO."<th width='8%' align='center'>".NUB.""; 
-   
-   
-   
- //$map_query = "SELECT DISTINCT mapname FROM kz_pro15 ORDER BY mapname LIMIT ".$start.", ".MAP_ON_PAGE.""; 
- //$result = mysql_query($map_query, $sql); 
-   
- $i = 0; 
- //while( $map = mysql_fetch_array($result) ) 
- //{ 
-   
- $stop = $start+MAP_ON_PAGE; 
- for ($ir = $start; $ir < $stop; $ir++)  
- { 
-     if ( isset($tab1[$ir]) ) 
-     { 
-         $i++; 
-         if (($i%2) != 0) { $class = "#181919"; } else { $class = "#323232"; }  
-         $rankq = "SELECT * FROM kz_pro15 WHERE mapname='". $tab1[$ir] ."' ORDER BY time,name LIMIT 1"; 
-         $idrr = mysql_query($rankq, $sql); 
-         $recdata = mysql_num_rows($idrr); 
-         if ( $recdata > 0 ) 
-         { 
-             $id = mysql_fetch_array($idrr); 
-              
-             $t = $id["time"]; 
-             $name = str_replace("<", "<", $id["name"]); 
-             $date = strtotime($id["date"]); 
-             $idate = date('d-m-y', $date); 
-             $iMin = floor(floor($t)/60); 
-             $iSec = $t - (60*$iMin); 
-             $text = sprintf("%02d:%s%.2f", $iMin, $iSec < 10 ? "0": "", $iSec); 
-             $imagen = $id["country"]; 
-             if ($imagen == '') $imagen = 'err'; 
-             echo "<tr bgcolor=$class align='center' style='color: #a6a6a6; font-family: Verdana, Geneva, sans-serif; font-size: 11px;'>"; 
-              
-             if ( WEAPON_SHOW == 0 ) $weaponshow = "<p align='center'><b>".$id["weapon"]."</b>"; 
-             if ( WEAPON_SHOW == 1 ) $weaponshow = "<p align='center'><b><img src='".WEAPONDIR."".$id["weapon"]."".WEAPONEXT."' alt='".$id["weapon"]."' /></b>"; 
-              
-             if ( FLAG_SHOW == 0 ) $fshow = "  [".strtoupper($imagen)."] "; 
-             if ( FLAG_SHOW == 1 ) $fshow = "  <img src=\"".FLAGDIR."".strtolower($imagen)."".FLAGEXT."\"> "; 
-              
-             if ( MAPLIST_HASH_ENABLE == 1 ) echo "<th width='3%' align='center'> ".($_GET['s']+$i)." "; 
-              
-             if ( ALL_IN_ONE == 1 ) echo "<td><p align='left'><b> <a href='pronub15.php?&map=". $id["mapname"] ."'>". $tab1[$ir] ."</a></b></td><td><p align='left'>".$fshow." <a href='player.php?authid=".$id["authid"]."'> <b>". $name ."</b></a></td><td><p align='center'><b>". $text ."</b></td><td><p align='center'><b>". $idate ."</b></td><td>".$weaponshow."</td></tr>"; 
-             if ( ALL_IN_ONE == 2 ) echo "<td><p align='left'><b> <a href='pronub15.php?&map=". $id["mapname"] ."'>". $tab1[$ir] ."</a></b></td><td><p align='left'>".$fshow." <a href='player.php?authid=".$id["authid"]."'> <b>". $name ."</b></a></td><td><p align='center'><b>". $text ."</b></td><td><p align='center'><b>". $idate ."</b></td><td>".$weaponshow."</td><td><p align='center'><a href='pro15.php?&map=". $id["mapname"] ."'> -link- </a> </td><td><p align='center'> <a href='nub15.php?map=". $id["mapname"] ."'> -link- </a></tr>"; 
-             if ( ALL_IN_ONE == 0 ) echo "<td><p align='left'><b> ". $tab1[$ir] ."</b></td><td><p align='left'>".$fshow." <a href='player.php?authid=".$id["authid"]."'> <b>". $name ."</b></a></td><td><p align='center'><b>". $text ."</b></td><td><p align='center'><b>". $idate ."</b></td><td>".$weaponshow."</td><td><p align='center'><a href='pro15.php?&map=". $id["mapname"] ."'> -link- </a> </td><td><p align='center'> <a href='nub15.php?map=". $id["mapname"] ."'> -link- </a></tr>"; 
-   
-          
-         } else { 
-             if (($i%2) != 0) { $class = "#181919"; } else { $class = "#323232"; }  
-             $rankq = "SELECT * FROM kz_nub15 WHERE mapname='". $tab1[$ir] ."' ORDER BY time,name LIMIT 1"; 
-             $idrr = mysql_query($rankq, $sql); 
-             $recdata = mysql_num_rows($idrr); 
-   
-             $id = mysql_fetch_array($idrr); 
-              
-             $t = $id["time"]; 
-             $name = str_replace("<", "<", $id["name"]); 
-             $date = strtotime($id["date"]); 
-             $idate = date('d-m-y', $date); 
-             $iMin = floor(floor($t)/60); 
-             $iSec = $t - (60*$iMin); 
-             $text = sprintf("%02d:%s%.2f", $iMin, $iSec < 10 ? "0": "", $iSec); 
-             $imagen = $id["country"]; 
-             if ($imagen == '') $imagen = 'err'; 
-             echo "<tr bgcolor=$class align='center' style='color: #a6a6a6; font-family: Verdana, Geneva, sans-serif; font-size: 11px;'>"; 
-              
-             if ( WEAPON_SHOW == 0 ) $weaponshow = "<p align='center'><b>".$id["weapon"]."</b>"; 
-             if ( WEAPON_SHOW == 1 ) $weaponshow = "<p align='center'><b><img src='".WEAPONDIR."".$id["weapon"]."".WEAPONEXT."' alt='".$id["weapon"]."' /></b>"; 
-              
-             if ( FLAG_SHOW == 0 ) $fshow = "  [".strtoupper($imagen)."] "; 
-             if ( FLAG_SHOW == 1 ) $fshow = "  <img src=\"".FLAGDIR."".strtolower($imagen)."".FLAGEXT."\"> "; 
-              
-             if ( MAPLIST_HASH_ENABLE == 1 ) echo "<th width='3%' align='center'> ".($_GET['s']+$i)." "; 
-              
-             if ( SHOW_NUBREC_MAPLIST == 0 ) $show_info = "<p align='center'> --- </td><td><p align='center'><b> --- </b></td><td><p align='center'><b> --- </b></td><td> --- </td>"; 
-             if ( SHOW_NUBREC_MAPLIST == 1 ) $show_info = "<p align='left'>".$fshow." <a href='player.php?authid=".$id["authid"]."'> <b><i>". $name ."</i></b></a></td><td><p align='center'><b><i>". $text ."</i></b></td><td><p align='center'><b><i>". $idate ."</i></b></td><td>".$weaponshow."</td>"; 
-             if ( SHOW_NUBREC_MAPLIST == 2 ) $show_info = "<p align='left'>".$fshow." <a href='player.php?authid=".$id["authid"]."'> <b>". $name ."</b></a> [ NOOB RECORD ]</td><td><p align='center'><b>". $text ."</b></td><td><p align='center'><b>". $idate ."</b></td><td>".$weaponshow."</td>"; 
-              
-             if ( ALL_IN_ONE == 1 ) echo "<td><p align='left'><b> <a href='pronub15.php?&map=". $id["mapname"] ."'>". $tab1[$ir] ."</a></b></td><td>".$show_info."</tr>"; 
-             if ( ALL_IN_ONE == 2 ) echo "<td><p align='left'><b> <a href='pronub15.php?&map=". $id["mapname"] ."'>". $tab1[$ir] ."</a></b></td><td>".$show_info."<td><p align='center'><a href='pro15.php?&map=". $id["mapname"] ."'> -link- </a> </td><td><p align='center'> <a href='nub15.php?map=". $id["mapname"] ."'> -link- </a></tr>"; 
-             if ( ALL_IN_ONE == 0 ) echo "<td><p align='left'><b> ". $tab1[$ir] ."</b></td><td>".$show_info."<td><p align='center'><a href='pro15.php?&map=". $id["mapname"] ."'> -link- </a> </td><td><p align='center'> <a href='nub15.php?map=". $id["mapname"] ."'> -link- </a></tr>"; 
-   
-         } 
-     } 
- } 
-   
- mysql_close($sql); 
-   
- echo '</table><br /><center>'; 
-   
- for($i = 0; $i <= $links; $i++) 
- { 
-     $s = MAP_ON_PAGE * $i; 
-     if ( $s == $start ) echo ' <a href="map.php?s='.$s.'"><b>'.($i+1).'</b></a> '; 
-     else echo ' <a href="map.php?s='.$s.'">'.($i+1).'</a> '; 
- } 
- } 
- echo '<br /><br />'; 
- public_info(); 
- echo '</body>'; 
-                              
- ?>