View file sdark.mobi/top/bonecrusher.php

File size: 2.57Kb
<?php
require_once '../core/system.php';

$header = 'Костоломы';
if($user['mesto'] != 'Подвиги')  mysql_query("UPDATE `user` set `mesto` = 'Подвиги' where `id` = '".$user['id']."'");

require_once '../core/head.php';

$req = mysql_query("SELECT * from `ban` where `id_us` = '".$user['id']."'  and `time`>'".$_SERVER['REQUEST_TIME']."'");
$ban = mysql_fetch_array($req);

if($ban['ban'] == 3){

	header('Location: /moduls/ban');

}

if(!isset($user['id'])) header('Location: /');

$k_page = k_page(1000,10);
$page = page($k_page);
$start = 10*$page-10;
$q = mysql_query("SELECT `id`,`nick`,`param`,`prava`,`font` FROM `user` WHERE `bot`='0' and `id`  != '11'  and `id`  != '136875' ORDER BY `param` DESC LIMIT ".$start.", 10");
echo '<div class="foot center">
Топ-1000 лучших игроков по сумме всех параметров
</div>
<div class="line">
</div>';
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>";}
if($post['prava']==4){$status="<font color='ffc22b'>[a]</font>";}
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> ';
if($post['prava'] > 1){
	echo $status;
}
echo'<span class="float-right"> 
<img src="/images/icon/stat/all.png" width=16 height=16> '.$post['param'].'
</span>
</a>
</div>';
}

echo'<hr><div class="foot  grey center">У тебя '.$user['param'].' параметров </div></div>';

 
if ($k_page > 1){
echo'<hr>';
str('?',$k_page,$page); 
}


?>
</div>
<hr>
<div class='but-list-dark'>
<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>
<?php
if($user['prava'] > 3)echo"<a href='/top/rich'><img src='/images/icon/r.png'> Богатые</a>";
echo "</div>
<div class='line'></div>
<div class='but-list'>
<a href='/user/search'>
<img src='/images/icon/search.png'> 
Поиск игроков
</a>
</div>
</div>
</div>";

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