Файл: public_html/onlinechat.php
Строк: 24
<?
include './system/common.php';
include './system/functions.php';
include './system/user.php';
if(!$user) {
header('location:/');
}
$title = 'Таверна';
include './system/h.php';
$q= mysql_query("SELECT * FROM `users` WHERE `online` > '".(time() - 300)."' and `self` ='Таверна'");
while($row = mysql_fetch_array($q)) {
echo "<a href='/user/$row[id]'>$row[login]</a> $row[self] <font color='darkgreen'><span style='float: right;'>["._times(time() - $row['online'])."]</span></font><hr>";
}
echo'<div class="menuList">
<li><a href="/chat/"><img src="/images/icon/arrow.png" alt="*">Вернутся в таверну</a></li></div>';
include './system/f.php';
?>