Файл: in4at/pos.php
Строк: 39
<?php
##################################################################################################
## Script name : In4at ##
## Version : Final ##
## Made by : XPYCT(Сергей Мищенко) ##
## E-mail : bce-ok@bk.ru ##
## ICQ : 447-50-50-62 ##
## Site : http://vkontakte.ru/id31604521 ##
## Внимание! Скрипт распространяется бесплатно! Модификация W4at by XPYCT ##
##################################################################################################
define('REQ_2_chat', true);
require('4at_set.php');
require('db_con.php');
require('style.php');
if ($py !== spy_code) require('us_info.php');
echo head;
if ($vv!=0) echo '<div class="d0"><b>Kлубы</b></div>';
else echo '<card id="who" title="Kлубы"><p>';
$vhod = $row["vhod"];
echo $fsize1;
for ($s = 0;$s <= 10;$s++){
$room = "room".$s;
$tmr = time()-300;
$pr = mysql_query("Select who from $room WHERE id > '".$tmr."' group by who order by id desc;");
$asnums = mysql_affected_rows();
$sizn[$s] = $asnums-1;
@$kolp = $kolp + $asnums-1;
}
echo "<a href="enter.php?$wp">Основные комнаты($kolp):</a><br/>";
echo divide;
echo '<u>Kлyбы:</u><br/>';
for ($num = 11;$num <= 20;$num++)
{
$room = "room".$num;
$tm = time()-300;
$res = mysql_query("Select who,hid from $room WHERE id > '".$tm."' group by who order by id desc");
echo " ".mysql_error()." ";
$kol = mysql_affected_rows();
$kol_all += ($kol-1);
$roomselect = mysql_query("Select name from rooms where rm=$num");
$rooms = mysql_fetch_array($roomselect);
$roomname=$rooms["name"];
$lines = mysql_fetch_array($res);
echo "<a href="chat.php?$wp&rm=$num&vhod=$vhod">$roomname(".($kol-1)."):</a><br/>";
for ($k = 1;$k < $kol;$k++)
{
$lines = mysql_fetch_array($res);
$user = $lines['who'];
$hd = $lines["hid"];
if ($hd != 1) echo "$user";
else if ($row['level'] > 6) echo "$user(invisible)";
if (($k+1) != $kol) echo ', ';
}
if($kol>1)
echo '<br/>';
unset($lines);
}
$tm = time()-300;
$res = mysql_query("Select * from maf1 WHERE id > '".$tm."' group by usid order by id desc");
$kol = mysql_affected_rows();
@$kolm = $kolm + $kol-1;
$lines = mysql_fetch_array($res);
$roomselect21 = mysql_query("Select name from rooms where rm=21");
$rooms21 = mysql_fetch_array($roomselect21);
$roomname21=$rooms21["name"];
if($num!=0)echo divide;
echo "<a href="maf.php?$wp&rm=1&vhod=$vhod">$roomname21(".$kolm."):</a><br/>n";
echo divide;
$vsego = $kolp + $kol_all + $kolm;
echo '<b>Всего: '.$vsego.'</b><br/>';
echo divide;
echo '<a href="enter.php?id='.$id.'&ps='.$ps.'&ref='.$ref.'">Прихожая</a><br/>';
echo $fsize2;
echo foot;
?>