View file super2/online.php

File size: 993B
<?php
require 'connect.php';
require 'header.php';

print $top.'
<head><meta http-equiv="Cache-Control" content="no-cache" forua="true"/></head>
<card id="online" title="Онлайн">
<p><small>';

$tm = time()-300;

for($num=0; $num<=21; $num++)
{
$rooms = mysql_fetch_assoc(mysql_query('SELECT `name`,`hidden` FROM `rooms` WHERE rm='.$num.' LIMIT 1'));
if($rooms['hidden'] == 1)
{continue;}


$res = mysql_query('SELECT `user` FROM `antihack_users` WHERE id>11 AND `inv`=0 AND `onl`>"'.$tm.'" AND `room`='.$num.' GROUP BY `user` ORDER BY `id` DESC');
$kol = mysql_num_rows($res);
$kol_all += $kol;
$out = null;

while($lines = mysql_fetch_assoc($res))
{$out.= $lines['user'].', ';}

print '<strong>'.$rooms['name'].'</strong>('.$kol.')<br/>'.substr($out,0,-2).'<br/>';

}

print '---<br/>
Всего: <strong>'.$kol_all.'</strong><br/>
---<br/>
<a href="reg.php?mod=reghelp">Регистрация</a><br/>
</small>
</p></card></wml>';
mysql_close();
?>