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

if (!@
$go) {
if (
$ver == "wml") {
echo 
$xml;
echo 
$dtd;
echo "
<wml>n
      
<head><meta http-equiv="Cache-Control" content="no-cache" forua="true"/></head>n
      
<card id="vypnut" title="Пнуть" >n
      
<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">
      <
form method="POST" action="kick.php?go=pni&amp;$ses&amp;rm=$rm&amp;ref=$refname="auth">n";
}

echo 
$fsize1;
echo 'Кого<br/>';
echo 
$fsize2;
echo "
<input name="nick" maxlength="15" value="$pniktitle="pnut"/><br/>n";
echo 
$fsize1;
echo 'На сколько (мин)<br/>';
echo 
$fsize2;
echo "
<input name="wtime" maxlength="3" title="vremya" format="*N"/><br/>n";
echo 
$fsize1;
echo 'Причина:<br/>';
echo 
$fsize2;
echo "
<input name="whykik" maxlength="200" title="whykik"/><br/>n";
if (
$ver == "wml") {
echo 
$fsize1;
echo "
<anchor title="go">Пнуть<go href="kick.php?go=pni&amp;$ses&amp;rm=$rm&amp;ref=$refmethod="post">n
      
<postfield name="nick" value="$(nick)"/>n
      
<postfield name="wtime" value="$(wtime)"/>n
      
<postfield name="whykik" value="$(whykik)"/>n
      
</go></anchor>n";
echo 
$fsize2;
echo '<br/>';
} else {
echo "
<input type="submit" class="ibutton" value="Пнуть" name="enter"><br/>n";
}
include_once "
foot.php";
exit;
}

if (
$ver == "wml") {
echo 
$xml;
echo 
$dtd;
echo '<wml>';
echo "
<head><meta http-equiv="Cache-Control" content="no-cache" forua="true"/></head>n";
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>";
echo "
<div align="center">";
}
if (empty(
$_POST['whykik'])) {
echo 'А причину пинка указать?<br/>';
exit;
}
if (empty(
$_POST['wtime'])) {
echo 'А время пинка указать?<br/>';
exit;
}

if (!is_numeric(
$_POST['wtime'])) { 
echo 'Введи нормально время пинка!<br/>';
exit; 
}

$wtime = intval($wtime);
$whykik = mysql_real_escape_string(check($whykik));
$us = mysql_real_escape_string(check($us));

echo 
$fsize1;
if (
$level < $row['level'] or $row['id'] == 10) {
echo 'Пользователь '.col_n(
$pnik).' успешно выпнут!<br/>';
$totime = $wtime;
$wtime = $wtime * 60 + time();
if (!is_numeric(
$pid)) { header("Locationindex.php"); die; }
$pid = intval($pid);
mysql_query("
UPDATE users SET colkik = `colkik`+'1'kik '".$wtime."'whokik '".$us."'whykik '".$whykik."' WHERE id '".$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 = rand(0,99999999);
$today = date ("H:i");
$time = time();
$room = "room" . $rm;
if (
$row['sex'] == "М") {
$txt = "<b>".col_n($us)."</bвыпнул юзера <b>".col_n($pnik)."</bс причиной: <b>".$whykik."</bна".$totime." мин!";
} elseif (
$row['sex'] == 'Ж') {
$txt = "<b>".col_n($us)."</bвыпнула юзера <b>".col_n($pnik)."</bс причиной: <b>".$whykik."</bна".$totime." мин!";
}
mysql_query ("
Insert into $room set klu4'".$rnd."'time='".$today."'who='".$administration."'message='".$txt."'id='".$time."'towhom=''hid='0'usid='1'komu=''");

@
$fi = fopen("log/pinlist.dat", "a+");
$dat = date("d/m/y");
$vrem = date("H:i");
$lst = "<b>".$us."</bпнул <b>".$pnik."</b> ($dat|$vremПричина: <b>".$whykik."</b> ($totime min.)<br/>n";
@fwrite(
$fi, "$lstn");
@fflush(
$fi);
@fclose(
$fi);
} 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";
}

echo 
$fsize2;
include_once "
foot.php";
?>
Онлайн: 0
Реклама