Вход Регистрация
Файл: region_clean/rooms.php
Строк: 119
<?php 
#######################################
## 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";

if (
$ver == "wml") {
echo 
'<?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.2//EN" "http://www.wapforum.org/DTD/wml12.dtd">
      <wml>
      <head><meta http-equiv="Cache-Control" content="no-cache" forua="true"/></head>
      <card id="arenda" title="Чат">
      <p>'
;
} 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" mode="wrap">'
;
}

$otkl mysql_fetch_array(mysql_query("SELECT `chat` FROM `setting` WHERE `klu4`='1'"));

if (
$otkl['chat'] == 1) {
echo 
'Чат отключен Администратором!<br/>';
include_once 
'foot.php';
break;
}

for (
$s 13$s <= 22$s++) {
$room "room" $s;
$tmr time() - 100;
$pr mysql_query ("Select who,usid from $room WHERE id > '".$tmr."' and usid != '1' and usid != '2' and usid != '3' and usid != '4' and usid != '5' and usid != '6' and usid != '7' and usid != '8' and usid != '9' and usid != '11' group by usid order by id desc;");
$asnums mysql_affected_rows();
$sizn[$s] = $asnums;
@
$kolp $kolp $asnums;
}

for (
$n 0$n <= 12$n++) {
$room "room" $n;
$tm time() - 100;
$r mysql_query ("Select who from $room WHERE id > '".$tm."' and usid != '1' and usid != '2' and usid != '3' and usid != '4' and usid != '5' and usid != '6' and usid != '7' and usid != '8' and usid != '9' and usid != '11' group by who order by id desc;");
$asnum mysql_affected_rows();
$siz[$n] = $asnum;
@
$kol $kol $asnum;
}

$pr_count mysql_query("SELECT id,user FROM users WHERE onl> '".$tm ."' AND room='holl' group by user order by onl desc;");
$asnumspr mysql_affected_rows();
@
$kolpr $kolpr $asnumspr;

$tm time() - 100;
$r mysql_query ("Select who from room23 WHERE id > '".$tm."' and usid != '1' and usid != '2' and usid != '3' and usid != '4' and usid != '5' and usid != '6' and usid != '7' and usid != '8' and usid != '9' and usid != '11' group by who order by id desc;");
$asnum3 mysql_affected_rows();

@
$kols $kol $kolp $kolpr $asnum3;

echo 
'<div class = "c4">Список комнат:</div><br/>';

$roomselect mysql_query("Select * from rooms order by pos limit 0,14;");
while(
$rooms mysql_fetch_assoc($roomselect)) {
$roomname $rooms['name'];
$rm $rooms['rm'];
$vid $rooms['vid'];
$room "room" $rm;
$tm time() - 100;
$r mysql_query ("Select who,usid from $room WHERE id > '".$tm."' and usid != '1' and usid != '2' and usid != '3' and usid != '4' and usid != '5' and usid != '6' and usid != '7' and usid != '8' and usid != '9' and usid != '11' group by usid order by id desc;");
$asnum mysql_affected_rows();
$siz[$rm] = $asnum;

if (
$vid == 1) {
if (
$rm == 13) {
echo 
"&#xbb; <b><a href="inkognito.php?$ses&amp;rm=$rm&amp;ref=$ref">".$roomname."</a></b> [$siz[$rm]]<br/>";
} elseif (
$rm == 11) {
echo 
"&#xbb; <a href="klaznet.php?$ses&amp;rm=$rm&amp;ref=$ref">".$roomname."</a> [$siz[$rm]]<br/>";
} elseif (
$rm == 10) {
echo 
"&#xbb; <b><a href="intim.php?$ses&amp;rm=$rm&amp;ref=$ref">".$roomname."</a></b> [$siz[$rm]]<br/>";
} elseif (
$rm == 9) {
echo 
"&#xbb; <a href="anlim.php?$ses&amp;rm=$rm&amp;ref=$ref">".$roomname."</a> [$siz[$rm]]<br/>";
} elseif (
$rm == 4) {
echo 
"&#xbb; <a href="bar.php?$ses&amp;rm=$rm&amp;ref=$ref">".$roomname."</a> [$siz[$rm]]<br/>";
} elseif (
$rm == 8) {
if (
$row['level'] > 3) echo "&#xbb; <b><a href="chat.php?$ses&amp;rm=$rm&amp;ref=$ref">".$roomname."</a></b> [$siz[$rm]]<br/>";
} else {
echo 
"&#xbb; <a href="chat.php?$ses&amp;rm=$rm&amp;ref=$ref">".$roomname."</a> [$siz[$rm]]<br/>";
}
}
}

echo 
$divide;
echo 
'&#xbb; <a href="pos.php?'.$ses.'&amp;ref='.$ref.'">Посольства</a> [' $kolp ']<br/>';

echo 
'<br/><div class = "d1"><a href="enter.php?'.$ses.'&amp;ref='.$ref.'">В прихожую</a></div>';

include_once 
'foot.php';
?>
Онлайн: 1
Реклама