Файл: games/anagrama/top.php
Строк: 50
<?
require_once$_SERVER['DOCUMENT_ROOT'].'/sys/inc/start.php';
require_once$_SERVER['DOCUMENT_ROOT'].'/sys/inc/compress.php';
require_once$_SERVER['DOCUMENT_ROOT'].'/sys/inc/sess.php';
require_once$_SERVER['DOCUMENT_ROOT'].'/sys/inc/home.php';
require_once$_SERVER['DOCUMENT_ROOT'].'/sys/inc/settings.php';
require_once$_SERVER['DOCUMENT_ROOT'].'/sys/inc/db_connect.php';
require_once$_SERVER['DOCUMENT_ROOT'].'/sys/inc/ipua.php';
require_once$_SERVER['DOCUMENT_ROOT'].'/sys/inc/fnc.php';
require_once$_SERVER['DOCUMENT_ROOT'].'/sys/inc/user.php';
/* Бан пользователя */
if (isset($user) && mysql_result(mysql_query("SELECT COUNT(*) FROM `ban` WHERE `razdel` = 'guest' AND `id_user` = '$user[id]' AND (`time` > '$time' OR `view` = '0' OR `navsegda` = '1')"), 0)!=0)
{header('Location: /ban.php?'.SID);exit;}
$set['title']='Анаграмма - Лидеры'; // заголовок страницы
require_once$_SERVER['DOCUMENT_ROOT'].'/sys/inc/thead.php';
title();
aut();
$k_post=mysql_result(mysql_query("SELECT COUNT(*) FROM `user` WHERE `angrm_point` > '5' "), 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 `user` WHERE `angrm_point` > '5' ORDER BY `angrm_point` DESC LIMIT $start, $set[p_str]");
echo "<table class='post'>";
if ($k_post==0)
{
////echo " <tr>";
echo " <div class='nav1'>";
echo "Нет никого, кто отгадал более 10 слов";
echo "</div>";
////echo "</tr>";
}
while ($liders = mysql_fetch_array($q))
{
echo " <tr>";
if ($set['set_show_icon']==2){
echo " <div class='nav1' rowspan='2'>";
avatar($guest['id']);
echo " </div>";
}
elseif ($set['set_show_icon']==1)
{
echo " <td class='icon14'>";
echo "".status($liders['id'])."";
echo " </td>";
}
echo " <td class='p_t'>";
echo "<a href='/info.php?id=$liders[id]'>$liders[nick]</a>";
echo " ".medal($liders['id'])." ".online($liders['id'])."n - ".$liders['angrm_point']." слов";
echo " </td>";
echo " </tr>";
}
echo "</table>";
if ($k_page>1)str("?",$k_page,$page); // Вывод страниц
require_once$_SERVER['DOCUMENT_ROOT'].'/sys/inc/tfoot.php';
?>