Файл: forum/on-forum.php
Строк: 54
<?
include_once '../sys/includes/start.php';
include_once '../sys/includes/compress.php';
include_once '../sys/includes/sess.php';
include_once '../sys/includes/home.php';
include_once '../sys/includes/settings.php';
include_once '../sys/includes/db_connect.php';
include_once '../sys/includes/ipua.php';
include_once '../sys/includes/fnc.php';
include_once '../sys/includes/user.php';
$set['title']='Кто в форуме?';
include_once '../sys/includes/header.php';
title();
auter();
$k_post=mysql_result(mysql_query("SELECT COUNT(*) FROM `user` WHERE `date_last` > '".(time()-600)."' AND `url` like '/forum/%'"), 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 `date_last` > '".(time()-600)."' AND `url` like '/forum/%' ORDER BY `date_last` DESC LIMIT $start, $set[p_str]");
if ($k_post==0)
{
echo "<table style='width:100%' cellspacing='1' cellpadding='1'><tr>";
echo "<td class='err'>";
echo "Никого нету!";
echo "</td>";
echo "</tr></table>";
}
while ($forum=mysql_fetch_array($q))
{
echo "<table style='width:100%' cellspacing='1' cellpadding='1'><tr>";
echo "<td class='icon14' rowspan='2'>";
avatar_mini($forum['id']);
echo "</td>";
echo "<td class='p_t'>";
echo "".status($forum['id'])." ";
echo "<a href='/info.php?id=$forum[id]'>";
echo GradientText("$forum[nick]", "$forum[ncolor]", "$forum[ncolor2]");
echo "</a>n";
echo " ".online($forum['id'])."</td>";
echo "</tr></table>";
}
if ($k_page>1)
{
str("?",$k_page,$page);
}
echo "<a href='/forum/'><div class='foot'><img src='/s-klub/img/left.png'> Назад в форум<br /></div></a>";
include_once '../sys/includes/footer.php';
?>