Файл: in4at/mafinside.php
Строк: 142
<?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');
if ($py !== spy_code) require('us_info.php');
if ($rm<0||$rm>20) exit;
$tr_link=$row["tr_link"];
$select = mysql_query("Select id,user,name,sex,user_ip,user_soft from users where id='".$nk."' LIMIT 1;");
if (mysql_affected_rows() == 0){
echo head;
if ($vv!=0) echo '<div class="d0"><b>Не найдено!</b></div>';
else echo "<card id="error" title="Не найдено!" ontimer="maf.php?$wp&rm=$rm"><timer value="10"/><p align="center">";
echo $fsize1;
echo '<b>Нет такого юзера!</b><br/>';
echo "<a href="maf.php?$wp&rm=$rm">В игру</a><br/>";
echo $fsize2;
echo foot;
mysql_close ($link);
exit;
}
$inf = mysql_fetch_array($select);
$usid=$inf['id'];
$nick = $inf['user'];
$name = $inf["name"];
$sex = $inf["sex"];
$us_ip = $inf['user_ip'];
$us_soft = $inf['user_soft'];
$bind1=$row['bind1'];
$bind4=$row['bind4'];
if ($row['translit']==0){
function rus_to_en($str){
$str = str_replace("а","a",$str);
$str = str_replace("е","e",$str);
$str = str_replace("ё","e",$str);
$str = str_replace("и","u",$str);
$str = str_replace("к","k",$str);
$str = str_replace("о","o",$str);
$str = str_replace("р","p",$str);
$str = str_replace("с","c",$str);
$str = str_replace("у","y",$str);
$str = str_replace("х","x",$str);
$str = str_replace("А","A",$str);
$str = str_replace("В","B",$str);
$str = str_replace("Е","E",$str);
$str = str_replace("Ё","E",$str);
$str = str_replace("К","K",$str);
$str = str_replace("М","M",$str);
$str = str_replace("Н","H",$str);
$str = str_replace("О","O",$str);
$str = str_replace("Р","P",$str);
$str = str_replace("С","C",$str);
$str = str_replace("Т","T",$str);
$str = str_replace("Х","X",$str);
return $str;
}
}
ob_start("rus_to_en");
echo head;
if ($vv!=0) echo '<div class="d0"><b>'.$nick.'</b></div>';
else echo '<card id="info" title="'.$nick.'"><p>';
if ($vv!=0) echo "<form action="maf.php?$wp&rm=$rm" method="post">";
echo "<input name="msg$ref" value="" maxlength="200" title="Text"/><br/>n";
if($row["say"]==1){
echo "<select name="prvt">n";
if ($nk!==$id)echo "<option value="1">Приватно</option>n";
echo "<option value="0">Всем</option>n";
echo '</select><br/>';
} else {
echo "<select name="prvt">n";
echo "<option value="0">Всем</option>n";
if ($nk!==$id)echo "<option value="1">Приватно</option>n";
echo '</select><br/>';
}
if ($row['level']>=4){
if ($vv!=0){
echo $fsize1;
if ($row['level']>=6) echo '<input name="atr[]" type="checkbox" value="b"/>Жирный<br/>';
echo '<input name="atr[]" type="checkbox" value="u"/>Подчеркнутый<br/>';
echo '<input name="atr[]" type="checkbox" value="i"/>Курсив<br/>';
echo $fsize2;
} else {
echo '<select name="atr" multiple="true">';
if ($row['level']>=6) echo '<option value="b">Жирный</option>';
echo '<option value="u">Подчеркнутый</option>';
echo '<option value="i">Курсив</option>';
echo '</select><br/>';
}
}
if ($vv!=0){
echo "<input name="towhom" type="hidden" value="$usid"/>";
echo "<input class="ibutton" type="submit" accesskey="$bind1" value="Сказать ($bind1)"/></form>";
echo $fsize1;
} else {
echo $fsize1;
echo "<anchor accesskey="$bind1" title="send">Сказать<go href="maf.php?$wp&rm=$rm$takep" method="post">n";
if ($usid!=5) echo "<postfield name="msg" value="$nick, $(msg$ref)"/>n";
else echo "<postfield name="msg" value="$(msg$ref)"/>n";
echo "<postfield name="prvt" value="$(prvt)"/>n";
echo "<postfield name="towhom" value="$usid"/>n";
if ($row['translit']==1) echo "<postfield name="translit" value="1"/>n";
else echo "<postfield name="translit" value="0"/>n";
echo '</go></anchor> ('.$bind1.')<br/>';
}
echo divide;
if(($rm!=9)||$row['level']==7){
if($row['level'] > 6){
echo "<a href="apanel.php?go=view&$wp&nk=$usid&rm=$rm">Апдейт юзера</a><br/>n";
echo divide;
}
if($row['level'] > 3) echo "<a href="kick.php?$wp&nk=$usid&rm=$rm">Пнуть</a><br/>n";
if($row['level'] > 4) echo "<a href="bann.php?$wp&nk=$usid&rm=$rm">Забанить ник</a><br/>n";
if($row['level'] > 6) echo "<a href="deluser.php?$wp&nk=$usid&rm=$rm">Удалить ник</a><br/>n";
if($row['level'] > 5) echo "<a href="bannaip.php?$wp&nk=$usid&rm=$rm">Банн ip+soft!!!</a><br/>n";
}
if ($row['level']>6){
echo "<a href="apanel.php?$wp&nk=$usid&go=fullignmake&rm=$rm">Полный игнор!</a><br/>n";
echo divide;
}
if($row['level'] > 5){
if(($inf['level']<7)||($row['level']==7)){
require("oper.php");
if ($oper_name) echo 'IP: '.$us_ip.' ('.$oper_name.')<br/>';
else echo 'IP: '.$us_ip.' <br/>';
echo 'Soft: '.$us_soft.'<br/>';
}
else echo 'А за Админом шпионить нехорошо!:)<br/>';
echo divide;
}
if ($row["anketa"]==1){
echo "<a href="ignor.php?$wp&nk=$usid&mod=add&rm=$rm">B игнор</a><br/>n";
echo "<a href="friends.php?mod=add&$wp&nick=$usid&rm=$rm">В друзья</a><br/>";
echo divide;
}
echo "<a href="maf.php?$wp&rm=$rm$takep" accesskey="$bind4">В игру</a> ($bind4)<br/>n";
$alltraf=$row['alltraf'];
$pagesize=round((ob_get_length()+200)/1024,1);
$alltraf1=$alltraf+$pagesize;
if ($tr_link==1){
echo divide;
echo "<a href="trafik.php?$wp&rm=$rm">[$pagesize kb]</a><br/>n";
}
echo $fsize2;
echo foot;
mysql_query("Update users set alltraf='".$alltraf1."', lasttraf='".$pagesize."' where id='".$id."'");
mysql_close ($link);
ob_end_flush();
?>