Файл: public_html/modules/rating/level.php
Строк: 20
<?php
$root = $_SERVER['DOCUMENT_ROOT'];
include_once ($root.'/core/base.php');
falseauth();
$header = "Лучшие по уровню";
include_once ($root.'/core/head.php');
echo '<div class="b"><center>10 лучших по уровню</center></div>';
$sql = $db -> query("SELECT * FROM `users` ORDER BY `level` DESC LIMIT 10");
$position = 1;
while($q = $sql->fetch_object())
{
echo '<a href="/user/'.$q->id.'" class="link">'.$position.' место <img src="/images/users.png" width="35px"> <big>'.$q->login.'</big> '.$q->level.' ур.</a>';
$position++;
}
echo"<div class = 'line'></div><center><a href = '/rating' class = 'link'>Назад</a></center>";
include_once ($root.'/core/foot.php');