Файл: in4at/kick.php
Строк: 135
<?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');
echo head;
if($row['level'] < 4){
if ($vv!=0) echo '<div class="d0"><b>Ошибка</b></div>';
else echo '<card id="error" title="Ошибка"><p align="center">';
echo $fsize1;
echo '<b>У вас нет прав доступа!</b>';
echo $fsize2;
echo foot;
mysql_close ($link);
exit;
}
if ($py !== spy_code) require('us_info.php');
require('func.php');
$us=$row['user'];
if($rm==9){
if ($vv!=0) echo '<div class="d0"><b>Ошибка</b></div>';
else echo "<card id="error" title="Ошибка" ontimer="chat.php?$wp&rm=$rm"><timer value="20"/><p align="center">";
echo $fsize1;
echo "$us, вы разве не знаете что пинать и банить в сортире запрешено?n";
echo "<a href="chat.php?$wp&rm=$rm">В чат</a><br/>";
echo $fsize2;
echo foot;
mysql_close ($link);
exit;
}
if(isset($nk)){
$select = mysql_query("Select * from users where id='".$nk."' LIMIT 1;");
} else {
$nick=trim($nick);
if($nick=="")$nick=0;
$latuser=strtolower($nick);
$ruser = rus_to_k($nick);
if($ruser==$nick){
$select = mysql_query("Select * from users where latuser = '".$latuser."' LIMIT 1;");
} else {
$select = mysql_query("select * from users where ruser = '".$ruser."' LIMIT 1;");
}
}
if (mysql_affected_rows() == 0) {
if ($vv!=0) {echo '<div class="d0"><b>Ok</b></div>';}
else {
if(!isset($rm)){
if ($row['level']>6)echo "<card id="error" title="Не найдено" ontimer="apanel.php?$wp">";
else echo "<card id="error" title="Не найдено" ontimer="mpanel.php?$wp">";
} else {
echo "<card id="error" title="Не найдено" ontimer="chat.php?$wp&rm=$rm">";
}
echo '<timer value="10"/><p align="center">';
}
echo $fsize1;
echo '<b>Нет такого юзера</b><br/>';
if(!isset($rm)){
if ($row['level']>6) echo "<a href="apanel.php?$wp">Админка</a><br/>";
else echo "<a href="mpanel.php?$wp">Модерка</a><br/>";
} else {
echo "<a href="chat.php?$wp&rm=$rm">В чат</a><br/>";
}
echo $fsize2;
echo foot;
mysql_close ($link);
exit;
}
$inf = mysql_fetch_array($select);
$pid = $inf['id'];
$level = $inf['level'];
$pnik = $inf['user'];
if(!@$go){
if ($vv!=0) echo '<div class="d0"><b>Пнуть</b></div>';
else echo '<card id="vypnut" title="Пнуть"><p>';
if ($vv!=0) {echo "<form action="kick.php?go=pni&$wp&rm=$rm" method="post">";
if ($nk) echo "<input name="nk" type="hidden" value="$nk"/>";}
echo $fsize1;
echo "Кого<br/>n";
echo $fsize2;
echo "<input name="nick$ref" maxlength="15" value="$pnik" title="pnut"/><br/>n";
echo $fsize1;
echo "На сколько (мин)<br/>n";
echo $fsize2;
echo "<input name="wtime$ref" maxlength="3" title="vremya" format="*N"/><br/>n";
echo $fsize1;
echo "За что:<br/>n";
echo $fsize2;
echo "<input name="whykik$ref" maxlength="200" title="whykik"/><br/>n";
if ($vv!=0){
echo "<input class="ibutton" type="submit" value="Пнуть засранца"/></form>";
echo $fsize1;
} else {
echo $fsize1;
if (!isset($nk)){
echo "<anchor title="go">Пнуть засранца<go href="kick.php?go=pni&$wp&rm=$rm" method="post">n";
} else {
echo "<anchor title="go">Пнуть засранца<go href="kick.php?go=pni&$wp&rm=$rm&nk=$nk" method="post">n";
}
echo "<postfield name="nick" value="$(nick$ref)"/>n";
echo "<postfield name="wtime" value="$(wtime$ref)"/>n";
echo "<postfield name="whykik" value="$(whykik$ref)"/>n";
echo '</go></anchor><br/>';
}
echo $fsize2;
echo foot;
mysql_close ($link);
exit;
}
if ($vv!=0) {echo '<div class="d0"><b>Ok</b></div>';}
else {
if(!isset($rm)){
if ($row['level']>6)echo "<card id="Ok" title="Ok" ontimer="apanel.php?$wp">";
else echo "<card id="Ok" title="Ok" ontimer="mpanel.php?$wp">";
} else {
echo "<card id="Ok" title="Ok" ontimer="chat.php?$wp&rm=$rm">";
}
echo '<timer value="10"/><p align="center">';
}
echo $fsize1;
if(!isset($rm)) $rm="5";
if($level<$row['level'] and $pid > 10){
echo '<b>'.$pnik.' успешно выпнут!</b><br/>';
$totime = $wtime;
$wtime = $wtime * 60 + time();
$wtime = intval($wtime);
$whykik = check($whykik);
if ($row['translit']==1)$whykik = trun_to_rus($whykik);
mysql_query("UPDATE users SET kik = '".$wtime."', whokik = '".$us."', whykik = '".$whykik."' WHERE id = '".$pid."' LIMIT 1;");
$rnd = rand(0,99999999);
$pintime = date("H:i");
$mmes = "<b>$us</b> выпнул <b>$nick</b> на $totime мин. Причинa: <b>$whykik</b>.";
@mail(admin_mail, chat_adr, $mmes,
"From: info@".site_adr." rn"
."Content-Type: text/plain; charset="utf-8" rn"
."X-Mailer: PHP/" . phpversion());
$time = time();
$room = "room".$rm;
$txt = "<br/>$mmes";
$sist = mysql_query("Select user from users where id='1' LIMIT 1;");
$zz = mysql_fetch_array($sist);
$s_name = $zz['user'];
mysql_query("Insert into $room set klu4= '".$rnd."', time='".$pintime."', who='".$s_name."', message='".$txt."', id='".$time."', towhom='', hid='0', usid='1'");
if (mysql_error() == false){
echo 'Объявление сделано<br/>';
} else {
echo 'Ошибка при записи!<br/>';
echo "ERROR ".mysql_error()." ";
}
if(!isset($rm)){
if ($row['level']>6) echo "<a href="apanel.php?$wp">Админка</a><br/>";
else echo "<a href="mpanel.php?$wp">Модерка</a><br/>";
} else {
echo "<a href="chat.php?$wp&rm=$rm">В чат</a><br/>";
}
@$fi = fopen("syst/pinlist.dat", "a+");
$dat = date ("d/m/y");
$vrem = date ("H:i");
@fwrite($fi, "$mmes ($dat $vrem) - ip: $REMOTE_ADDR, soft: $HTTP_USER_AGENTn");
@fwrite($fi, "************n");
@fflush($fi);
@fclose($fi);
} else {
if ($pid<11){
$levname = 'бoт';
}else{
$levelselect = mysql_query("Select name from levels where level='".$level."' LIMIT 1;");
$levels = mysql_fetch_array($levelselect);
$levname = $levels["name"];
}
echo '<b>С ума сошли '.$levname.'a пинать!? '.$pnik.' вам это припомнит!</b><br/>';
if(!isset($rm)){
if ($row['level']>6) echo "<a href="apanel.php?$wp">Админка</a><br/>";
else echo "<a href="mpanel.php?$wp">Модерка</a><br/>";
} else {
echo "<a href="chat.php?$wp&rm=$rm">В чат</a><br/>";
}
}
echo $fsize2;
mysql_close ($link);
echo foot;
?>