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

$us $row['user'];

if (
$row['level'] < 5) {
if (
$ver == "wml") {
echo 
$xml;
echo 
$dtd;
echo 
"<wml>n
      <card id="
error" title="Ошибка доступа">n
      <p align="
center">n";
} 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="center">";
}
echo 
$fsize1;
echo 'У тебя нет прав доступа!<br/>';
echo 
$fsize2;
include_once "
foot.php";
exit;
}
require_once "
function/bann-kick.php";
/*
switch(
$go) {
default:
if (
$ver == "wml") {
echo 
$xml;
echo 
$dtd;
echo "
<wml>n
      
<card id="error" title="Бан юзера">n
      
<p align="center">n";
} 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="center">";
}
echo 'Забанить '.col_n(
$bnik).' ?<br/>
      <a href="
bann.php?'.$ses.'&amp;nk='.$nk.'&amp;go=1">[Да]</a> |
      <a href="
enter.php?'.$ses.'&amp;ref='.$ref.'">[Нет]</a><br/>';
include_once 'foot.php';
break;
*/
#case 1:
if (
$ver == "wml") {
echo 
$xml;
echo 
$dtd;
echo '<wml>';
if (!isset(
$rm)) {
if (
$row["level"] > 6) echo "<card id="Ok" title="Ok" ontimer="apanel.php?$ses&amp;ref=$ref"><timer value="10" />n";
else echo "
<card id="Ok" title="Ok" ontimer="mpanel.php?$ses&amp;ref=$ref"><timer value="10" />n";
} else {
echo "
<card id="Ok" title="Ok" ontimer="chat.php?$ses&amp;rm=$rm&amp;ref=$ref"><timer value="10" />n";
}
echo "
<p align="center">n";
} 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>";
if (!isset(
$rm)) {
if (
$row['level'] > 6) echo "<META HTTP-EQUIV="Refresh" CONTENT="2; URL=apanel.php?$ses&amp;ref=$ref">";
else echo "
<META HTTP-EQUIV="Refresh" CONTENT="2; URL=mpanel.php?$ses&amp;ref=$ref">";
} else {
echo "
<META HTTP-EQUIV="Refresh" CONTENT="2; URL=chat.php?$ses&amp;rm=$rm&amp;ref=$ref">";
}
echo "
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/></head><body>
      <
div align="center">";
}
echo 
$fsize1;
if (
$level < $row['level']) {
echo 'Пользователь '.col_n(
$bnik).' забанен!<br/>';
if (!ctype_digit(
$pid)) { header("Locationindex.php"); die; }
mysql_query ("
update users set banned '1' where id ='".$pid."'");
$room = "room" . $rm;
mysql_query("
delete from $room WHERE usid '".$pid."'");
$adm = mysql_query("Select user from users where id='1' LIMIT 1;");
$z = mysql_fetch_array($adm);
$administration = $z['user'];
$administration = mysql_real_escape_string(check($administration));
$rnd = mt_rand(0,99999999);
$today = date ("H:i");
$time = time();

if (
$row['sex'] == "М") {
$txt = "Пользователь <b>".col_n($bnik)."</bзабаненЗабанил <b>".col_n($us)."</b>.";
} elseif (
$row['sex'] == 'Ж') {
$txt = "Пользователь <b>".col_n($bnik)."</bзабаненЗабанилa <b>".col_n($us)."</b>.";
}
mysql_query ("
Insert into $room set klu4'".$rnd."'time='".$today."'who='".$administration."'message='".$txt."'id='".$time."'towhom=''hid='0'usid='1'komu=''");
$data = date("(H:i jF)");
@
$open = fopen("log/bannlist.dat","a+");
@flock (
$open,LOCK_EX);
@fwrite(
$open,"<b>".$us."</bзабанил <b>".$bnik."</b".$data."<br/>n");
@fflush(
$open);
@flock (
$open,LOCK_UN);
@fclose(
$open);
} else {
$levelselect = mysql_query ("Select name from levels where level='".check($level)."'");
$levels = mysql_fetch_array($levelselect);
$levname = $levels['name'];
echo "
Нельзя " .$levname. "a банить!!! ".col_n($bnik)." тебе припомнит!n";
}
#break;
#}
echo 
$fsize2;
include_once "
foot.php";
?>
Онлайн: 1
Реклама