Файл: vk.com_vhllam/chat/who.php
Строк: 67
<?
include_once '../sys/inc/start.php';
include_once '../sys/inc/compress.php';
include_once '../sys/inc/sess.php';
include_once '../sys/inc/home.php';
include_once '../sys/inc/settings.php';
include_once '../sys/inc/db_connect.php';
include_once '../sys/inc/ipua.php';
include_once '../sys/inc/fnc.php';
include_once '../sys/inc/user.php';
$set['title']='Чат - Кто здесь?'; // заголовок страницы
include_once '../sys/inc/thead.php';
title();
aut(); // форма авторизации
$num = 0;
$k_post=mysql_result(mysql_query("SELECT COUNT(*) FROM `user` WHERE `date_last` > '".(time()-100)."' AND `url` like '/chat/%'"), 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()-100)."' AND `url` like '/chat/%' ORDER BY `date_last` DESC LIMIT $start, $set[p_str]");
echo "<table class='post'>n";
if ($k_post==0)
{
echo " <tr>n";
echo " <td class='mess'>n";
echo "Нет никогоn";
echo " </td>n";
echo " </tr>n";
}
while ($chat = mysql_fetch_array($q))
{
echo " <tr>n";
echo " <td class='icon14'>n";
echo "".group($chat['id'])."";
echo " </td>n";
echo " <td class='p_t'>n";
echo "<a href='/info.php?id=$chat[id]'>$chat[nick]</a>n";
echo " ".medal($chat['id'])." ".online($chat['id'])."n";
if (user_access('user_ban_set') || user_access('user_ban_set_h') || user_access('user_ban_unset')){
echo " <a href='/adm_panel/ban.php?id=$chat[id]'><b><font color="#ff0000">[BAN]</font></b></a> ";}
echo " </td>n";
echo " </tr>n";
}
echo "</table>n";
if ($k_page>1)str("?",$k_page,$page); // Вывод страниц
include_once '../sys/inc/tfoot.php';
?>