Файл: vk.com_vhllam/forum/visit.php
Строк: 54
<?php
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();
$forum=intval($_GET['f']);
$razdel=intval($_GET['r']);
$them=intval($_GET['t']);
$er=mysql_result(mysql_query("SELECT COUNT(*) FROM `forum_visit` WHERE `id_them` = '$them'"),0);
$q = mysql_query("SELECT * FROM `forum_visit` WHERE `id_them`='$them'");
echo "<div class='opps'>Тему посетило $er человек</div>";
echo "<table class='post'>";
while($thems = mysql_fetch_assoc($q))
{
$ank2=get_user($thems['id_user']);
echo "<tr>";
echo " <td class='icon14'>n";
echo "".group($ank2['id'])."";
echo " </td>n";
echo "
<td class='p_t'>";
echo "<a href='/info.php?id=$ank2[id]'>".$ank2['nick']."</a> ";
echo " ".medal($ank2['id'])."</td>
</tr>
<tr>
<td class='post_1' colspan='2'>Визит: ".vremja($thems['time'])." </td>
</tr>";
}
echo "</table><div class='cont'>«<a href="/forum/$forum/$razdel/$them/">В тему</a></div>n";
include_once '../sys/inc/tfoot.php';
?>