File size: 588B
<?php
include "../ini.php";
Error_Reporting(0);
if ($pass_a == $_REQUEST['pass']){
$id = $_REQUEST['id'];
$q=mysql_query("SELECT * FROM posts WHERE id=$id");
while (false!==($res=mysql_fetch_assoc($q)))
{
echo '<b>IP:</b> '.$res['ip'].'<br/>';
echo '<b>SOFT:</b> '.$res['mob'].'<br/>';
$ip = $res['ip'];
$soft = $res['mob'];
mysql_query("INSERT INTO ban (ip, agent) values (\"$ip\", \"$soft\")") or die ("Ошибка");
echo "Забанен.<br/><a href=\"panel.php?pass=$pass_a\">Назад</a><br/>";
}
}
else echo "Пароль не верен!";
?>
</body></html>