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