Вход Регистрация
Файл: region_clean/pos.php
Строк: 65
<?
#######################################
## Mod By KoT (borispol) [76-75-072] ##
#######################################

require_once "start.php";
require_once 
"sid.php";

header("Cache-Control: no-cache");
if (
$ver == "wml"header ("Content-type:text/vnd.wap.wml; charset=utf-8");
else 
header("Content-Type:text/html; charset=UTF-8");

require_once 
"inc.php";
$link connect_db();
list(
$row$id$ps$fsize1$fsize2) = check_login($link);
require_once 
"version.php";

for (
$n 0$n <= 22$n++) {
$room "room" $n;
$tm time() - 100;
$r mysql_query ("Select usid,who from $room WHERE id > '".$tm."' group by usid order by id desc;");
$asnum mysql_affected_rows();
$siz[$n] = $asnum;
@
$kol $kol $asnum;
$kolp=$siz[13]+$siz[14]+$siz[15]+$siz[16]+$siz[17]+$siz[18]+$siz[19]+$siz[20]+$siz[21]+$siz[22];
}

if (
$ver == "wml") {
echo 
$xml;
echo 
$dtd;
echo 
"<wml>
      <head><meta http-equiv="
Cache-Control" content="no-cache" forua="true"/></head>
      <card id="
who" title="Посольства">
      <p align="
center">";
} else {
echo 
"<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      
<html xmlns="http://www.w3.org/1999/xhtml">
      <
head><link rel="stylesheet" type="text/css" href="css/$css.css"/>
      <
title>Посольства</title>
      <
meta http-equiv="Content-Type" content="text/html; charset=utf-8"/></head><body>
      <
div align="left">";
}

echo 
$fsize1;

for (
$s = 0; $s <= 12; $s++) {
$room = "room" . $s;
$tmr = time() - 100;
$pr = mysql_query ("Select usid,who from $room WHERE id '".$tmr."' group by usid order by id desc;");
$asnums = mysql_affected_rows();
$sizn[$s] = $asnums;
@
$kolp = $kolp + $asnums;
}
echo "
<div class = 'c4'><a href="enter.php?$ses&amp;ref=$ref">Основные комнаты($kolp):</a></div>";
echo '-----<br/><u>Посольства:</u><br/>-----<br/>';

$roomselect = mysql_query ("Select name,rm from rooms order by pos limit 14,9;");
while(
$rooms = mysql_fetch_assoc($roomselect)) {
$roomname = $rooms["name"];
$rm = $rooms["rm"];
$room = "room" . $rm;
$tm = time() - 100;
$res = mysql_query ("Select usid,who from $room WHERE id '".$tm."' group by usid order by id desc;");
echo mysql_error();
$kol = mysql_affected_rows();
$siz[$rm] = $kol;
echo "
<a href="chat.php?$ses&amp;rm=$rm&amp;ref=$ref">$roomname($siz[$rm]):</a><br/>";
for (
$k = 0; $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 > 0) echo '<br/>';
unset(
$lines);
}
$tm = time() - 100;
$res = mysql_query ("Select from room23 WHERE id '".$tm."' group by usid order by id desc");
$kol = mysql_affected_rows();
@
$kolm = $kolm + $kol;
$lines = mysql_fetch_array ($res);
echo '-----<br />';
$roommaf = mysql_fetch_array(mysql_query ("Select name from rooms where rm='23' LIMIT 1;"));
echo "
<a href="chat.php?$ses&amp;rm=23&amp;ref=$ref">".$roommaf[0]."(".$kolm."):</a><br/>n";
echo '-----<br/>';
$vsego = $kolp + $kol_all + $kolm;
echo "
<b>Всего".$vsego."</b><br/>";
echo '-----<br />';
if (isset(
$rm)) echo "<div class = 'd1'><a href="chat.php?$ses&amp;rm=$rm&amp;ref=$ref">В чат→</a></div>";
echo "
<div class = 'd1'><a href="enter.php?$ses&amp;ref=$ref">←Прихожая</a></div>";
echo 
$fsize2;
include_once "
foot.php";
?>
Онлайн: 2
Реклама