<?php /* Скрипт статистики */
session_set_cookie_params(180000, "/");
session_start();

$_db_inc_ = true;
include"engine/scripts/cfg.php";

$sql=mysql_query("SELECT * FROM user WHERE exp ORDER BY victory_count DESC LIMIT 10"); 

print "
<table width='600' height='1' border='1' align='center'>
<tr>
<td align='left'><font color='#FFFFFF'><b>Имя</b></font></td>
<td align='center' width='50'><font color='#00ff00'><b>Уровень</b></font></td>
<td align='center' width='50'><font color='#FFFFFF'><b>Опыт</b></font></td>
<td align='center' width='50'><font color='red'><b>Битвы</b></font></td>
<td align='center' width='50'><font color='yellow'><b>Победы</b></font></td>
<td align='center' width='50'><font color='#FFFFFF'><b>Оружие</b></font></td>
</tr>
</table>
";
if ($sql)
{while ($table=mysql_fetch_array($sql)) 
	{if(!isset($user["{$table["name"]}"]))
		{if ($table) 
			{
			$name=''.$table[name].''; 
			}
			else 
			{
			$name=''.$table[name].''; 
			}
			{if(!isset($user["{$table["battle_count"]}"]))
				{if ($table) 
					{
					$battle=''.$table[battle_count].''; 
					}
					else 
					{
					$battle=''.$table[battle_count].''; 
					}
					{if(!isset($user["{$table["level"]}"]))
						{if ($table) 
							{
							$level=''.$table[level].''; 
							}
							else 
							{ 
							$level=''.$table[level].''; 
							}
							{if(!isset($user["{$table["weapon"]}"]))
								{if ($table) 
									{
									$weapon=''.$table[weapon].''; 
									}
									else 
									{
									$weapon=''.$table[weapon].''; 
									}
									{if(!isset($user["{$table["exp"]}"]))
										{if ($table) 
											{
											$exp=''.$table[exp].''; 
											}
											else 
											{
											$exp=''.$table[exp].''; 
											}
											{if(!isset($user["{$table["victory_count"]}"]))
												{if ($table) 
													{
													$victory_count=''.$table[victory_count].''; 
													}
													else 
													{
													$victory_count=''.$table[victory_count].''; 
													}
									
							
print "
<table width='600' height='1' border='1' align='center'>
<tr>
<td align='left'><font color='#FFFFFF'>$name</font></td>
<td align='center' width='50'><font color='#00ff00'>$level</font></td>
<td align='center' width='50'><font color='#FFFFFF'>$exp</font></td>
<td align='center' width='50'><font color='red'>$battle</font></td>
<td align='center' width='50'><font color='yellow'>$victory_count</font></td>
<td align='center' width='50'><font color='#FFFFFF'>$weapon</font></td>
</tr>
</table>"; 
												}
											}
										}
									}
								}
							}
						}
					}
				}
			}
		}
	}
}
?>