Файл: who_room.php
Строк: 13
<?
require'includes.php';
$v_us['avr'] = 0;
$rm = intval($_GET['rm']);
if (empty($rm)) header ('Location: enter?'.SID);
$rooms = mysql_fetch_assoc(query("SELECT * FROM `rooms` WHERE `rm` = '$rm'"));
$title='Кто в '.$rooms['name'].'?';
aut();
head();
who_add($rm,'room');
if ($rooms['intim']==1){
echo 'Это же интим...';
echo gb.'<a href="room?rm='.$rm.'">В чат </a>'.div;
foot(); // автор -=ШАХТЕР=- http://waphp.ru
}
echo '<br />';
if ($ver=='xhtml')echo '<div style="margin-left:2%">';
$whos = query("SELECT * FROM `who` WHERE `room` = 'room' and `rm` = '$rm' ORDER BY `time` DESC");
if(mysql_num_rows($whos)>1) $zp = ', '; else $zp = '';
while($who = mysql_fetch_assoc($whos)){
echo nik($who['user']).$zp;
}
if(mysql_num_rows($whos)>0)echo '<br />';
if ($ver=='xhtml')echo '</div>';
echo '<br />';
echo gb.'<a href="room?rm='.$rm.'">В чат </a>'.div;
foot();
ob_end_flush();
?>