Файл: test.masteram.us/games/mafia/inside.php
Строк: 126
<?
include_once '../../sys/inc/start.php';
include_once '../../sys/inc/compress.php';
include_once '../../sys/inc/sess.php';
include_once '../../sys/inc/home.php';
include_once '../../sys/inc/settings.php';
include_once '../../sys/inc/db_connect.php';
include_once '../../sys/inc/ipua.php';
include_once '../../sys/inc/fnc.php';
include_once '../../sys/inc/user.php';
only_reg();
$set['title']='Мафия - Приват';
include_once '../../sys/inc/thead.php';
$ref=rand(10000,1000000);
$result = mysql_query ("Select * from mafusers where id_user='$user[id]'");
$row = mysql_fetch_array ($result);
$id=(int)$row['id'];
$nk=(int)$_GET['nk'];
$rm=(int)$_GET['rm'];
$select = mysql_query ("Select * from mafusers where id='$nk'");
$us=mysql_real_escape_string($row["user"]);
$inf = mysql_fetch_array ($select);
if ($nk==38601){$usid=38601;}
else {$usid=$inf["id"];}
$name = mysql_real_escape_string($inf["name"]);
$nick = mysql_real_escape_string($inf["user"]);
$posts = (int)$inf["posts"];
$status = mysql_real_escape_string($inf["status"]);
title();
if (isset($_GET['mode']))
{
if ($_GET['mode']=='ign')
{
$ign = $row["ignor"];
if (strpos($ign,$name."|")===false){
$ign = $ign.$name."|";
$gn="UPDATE mafusers SET ignor = '$ign' WHERE id = '$id'";
if (mysql_query($gn)) {msg("$name в игноре!!!");} else echo mysql_error();
}
}
/////////////////////////////////////////////////////////////////////////////////////////
if ($_GET['mode']=='pi')
{
$fignik = $inf["user"];
$figid = $inf["id"];
$inv = 2;
$pi="UPDATE mafusers SET inv = '".$inv."' WHERE id = '".$figid."'";
if ($user['id']==1)
{
if (mysql_query($pi)) {msg("$fignik в игноре для всех!!!");} else echo mysql_error();
}
}
}
err();
aut();
echo "<div class="rekl">n";
echo "<form method='post' action='maf.php?uid=$usid&rm=$rm&ref=$ref'>";
if ($nk!=38601)
echo "<input name="msg" value="$name, " maxlength="200"/><br/>n";
else
echo "<input name="msg" maxlength="200" /><br/>n";
if($row["say"]==="0")
{
echo "<select name="prvt">";
echo "<option value="1">Приватно</option>n";
echo "<option value="0">Всем</option>n";
echo "</select><br/>n";
}
else
{
echo "<select name="prvt">";
echo "<option value="0">Всем</option>n";
echo "<option value="1">Приватно</option>n";
echo "</select><br/>n";
}
echo "<input type='submit' value = 'Сказать' />n";
echo "</form>";
echo "Ник: <a href='/info.php?id=$inf[id_user]'>$nick</a><br/>n";
echo "Подпольная кличка: $name<br/>n";
echo "Фраз: $posts<br/>n";
echo "Положение в обществе: $status";
echo "<br/>n";
echo "*******<br/>n";
if($user['id']==1){echo "<a href="/adm_panel/ban.php?id=$inf[id_user]">Забанить</a><br/>n";}
echo "<a href="maf.php?rm=$rm&ref=$ref">В игру</a>n";
echo "</div>n";
include_once '../../sys/inc/tfoot.php';
?>