View file sdark.mobi/top/rich.php

File size: 2.29Kb
<?php
require_once '../core/system.php';
echo only_reg();
echo ban();
$header = 'Богатые';
require_once '../core/head.php';

$k_page = k_page(1000,10);
$page = page($k_page);
$start = 10*$page-10;
$q = mysql_query("SELECT `nick`,`id`,`font`,`gold`,`prava` FROM `user` WHERE `gold`>100 and `bot`!='1' ORDER BY `gold` DESC LIMIT ".$start.", 10");
echo "<div class='foot center'>
Топ-1000 лучших игроков по золоту</div>
<div class='line'></div>";
if($user['prava'] < 2){
header('location: /top'); 
}
if ($page==1){$i=0;}else{$i=($page-1)*10;}
while($post = mysql_fetch_array($q)) {
$i++;
echo"<div class='but-list'>";
if($post['prava']=="5"){$status="<font color='ffc22b'>[A]</font>";$color="#F7990D";}
if($post['prava']=="4"){$status="<font color='ffc22b'>[a]</font>";$color="EBC621";}
if($post['prava']=="3"){$status="<font color='ffc22b'>[M]</font>";}
if($post['prava']=="2"){$status="<font color='ffc22b'>[m]</font>";}
echo'<a href="/user/'.$post['id'].'/">  '.$i.'. ';
echo online($post['id']);
echo '<font color="'.$post['font'].'"> '.$post['nick'].'</font> ';
$gold=floor($post['gold']/100);

if($post['prava'] > 1){
	echo $status;
}
echo'<span class="float-right"><img src="/images/icon/gold.png"> '.$gold.'</span></a></div>';

}
if($user['gold'] > 100) $goldd = floor($user['gold']/100);
if($user['gold'] < 100) $goldd = $user['gold'];
echo"<hr>
<div class='foot  grey center'>
У тебя ".$goldd." золота 
</div>
</div>";

 
if ($k_page > 1){
echo'<hr>';
str('?',$k_page,$page);
}
?>
</div><hr>
<div class='but-list-dark'>
<a href='/top/bonecrusher'><img src='/images/icon/r.png'> Костоломы</a>
<a href='/top/centenarians'><img src='/images/icon/r.png'> Долгожители</a>
<a href='/top/searchers'><img src='/images/icon/r.png'> Искатели</a>
<a href='/top/duelists'><img src='/images/icon/r.png'> Дуэлянты</a>
<a href='/top/victorious'><img src='/images/icon/r.png'> Победоносцы</a>
<a href='/top/fighters'><img src='/images/icon/r.png'> Истребители</a>
<a href='/top/gladiators'><img src='/images/icon/r.png'> Гладиаторы</a>
</div>
<div class='line'></div>
<div class='but-list'>
<a href='/user/search'>
<img src='/images/icon/search.png'> Поиск игроков</a>
</div>
</div>
</div>

<?php
require_once '../core/foot.php';
?>