View file xj9/mafwho.php

File size: 2.06Kb
<?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>Кто в игре?</b></div>';
else echo "<card id=\"who\" title=\"Кто в игре?\"><p>";
echo $fsize1;
$tm = time()-300;
$ingame = "";
$outgame = "";
$res = mysql_query("Select * from maf1 WHERE id > '".$tm."' group by usid order by id desc");
$kol = mysql_affected_rows();
$lines = mysql_fetch_array($res);
echo "<b>В игре:</b><br/>\n";
for ($k = 1;$k < $kol;$k++){
$lines = mysql_fetch_array($res);
$user = $lines['who'];
$user_id = $lines["usid"];
$r = mysql_query("select * from ingame1 WHERE gamer_id = '".$user_id."'");
$a = mysql_fetch_array($r);
$id_in_game = $a["id_in_game"];
if (mysql_affected_rows()!=0) $ingame = $ingame."$user($id_in_game), ";else $outgame = $outgame."$user, ";
}
unset($lines);
echo "$ingame<br/>\n";
echo "<br/><b>Вне игры:</b><br/>\n";
echo "$outgame";
echo '<br/>'.divide;
echo "<a href=\"maf.php?$wp&amp;rm=1\">В игру</a><br/>\n";
echo $fsize2;
echo foot;

?>