View file super2/mafwho.php

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

$i = 0;
$tm = time()-300;
$inr = mysql_query('SELECT `user` FROM `antihack_users` WHERE `id`>11 AND `inv`=0 AND `onl`>"'.$tm.'" AND `room`=21');

while($r = mysql_fetch_assoc($inr))
{
++$i;
$game.= $r['user'].', ';
}


print $top.'
<head><meta http-equiv="Cache-Control" content="no-cache" forua="true"/></head>
<card id="who" title="Кто здесь?">
<p><small>
<strong>Мафия ('.$i.')</strong><br/>'.substr($game,0,-2).'<br/>
---<br/>
<a href="maf.php?id='.$id.'&amp;ps='.$ps.'&amp;rm='.$_GET['rm'].'&amp;ref='.$ref.'">К Мафу</a>
</small>
</p>
</card>
</wml>';
?>