Размер файла: 3.2Kb
<?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 `id`,`nick`,`font`,`prava`,`online_total` FROM `user` WHERE `bot`='0' ORDER BY `online_total` 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>";$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> ';
if($post['prava'] > 1){
echo $status;
}
echo' <span class="float-right"> <img src="/images/icon/t.png"> ';
$difference = $post['online_total'];
$hours = floor($difference / 3600);
if($hours > 0 && $hours<10)
{$h='0'.$hours.'';}
if($hours >= 10){$h=''.$hours.'';}
if($hours == 0){$h='00';}
$minutes = floor($difference / 60) % 60;
if($minutes > 0 && $minutes<10)
{$m='0'.$minutes.'';}
if($minutes >= 10){$m=''.$minutes.'';}
if($minutes == 0){$m='00';}
$seconds = $difference - $minutes*60 - $hours*3600;
if($seconds > 0 && $seconds<10)
{$s='0'.$seconds.'';}
if($seconds >=10){$s=''.$seconds.'';}
if($seconds == 0){$s='00';}
echo ''.$h.':'.$m.':'.$s.'</span></a> </div> ';
}
echo"<hr>
<div class='foot grey center'>У тебя ";
$difference = $user['online_total'];
$hours = floor($difference / 3600);
if($hours > 0 && $hours<10)
{$h='0'.$hours.'';}
if($hours >= 10){$h=''.$hours.'';}
if($hours == 0){$h='00';}
$minutes = floor($difference / 60) % 60;
if($minutes > 0 && $minutes<10)
{$m='0'.$minutes.'';}
if($minutes >= 10){$m=''.$minutes.'';}
if($minutes == 0){$m='00';}
$seconds = $difference - $minutes*60 - $hours*3600;
if($seconds > 0 && $seconds<10)
{$s='0'.$seconds.'';}
if($seconds >=10){$s=''.$seconds.'';}
if($seconds == 0){$s='00';}
echo ''.$h.':'.$m.':'.$s.' </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/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';
?>