Вход Регистрация
Файл: public_html/rating.php
Строк: 18
<?php
include ('./system/system.php');
$title 'Рейтинг';
include (
'./system/head.php');
if(!
$user) {
header('location: /index.php');
exit();
}
$set['p_str'] = 10;
$k_post mysql_result(mysql_query("SELECT COUNT(*) FROM `users`"),0);
$k_page k_page($k_post,$set['p_str']);
$page page($k_page);
$start $set['p_str']*$page-$set['p_str'];
$q mysql_query("SELECT * FROM `users` ORDER BY `armor` + `strength` + `max_health` + `max_energy` DESC LIMIT $start$set[p_str]");
while(
$r mysql_fetch_assoc($q)) {
$sumstat $r['armor'] + $r['strength'] + $r['max_health'] + $r['max_energy'];
echo 
"<a href='/profile.php?id=$r[id]' class='link'><img src='/images/race/$r[race].png'> $r[login] <span style='float: right'><img src='/images/icons/stats.png'> $sumstat</span></a>";
}
if(
$k_post<1) {
echo 
'<div class="block small red center">Никого нет!</div>';
}
if(
$k_page>1)  echo str('?',$k_page,$page);
include (
'./system/foot.php');
?>
Онлайн: 0
Реклама