Файл: wapmaster/wapmaster/kg/kod.php
Строк: 47
<?php
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';
$set['title']='Конструктор грабберов';
include_once '../../sys/inc/thead.php';
title();
err();
//aut();
if (!empty($_POST['site']) and preg_match('|^[a-z0-9./?-_=+*&;:#@!,]+$|i',$_POST['site'],$out))
{
$site='http://'.preg_replace('|http://|i','',$out[0]);
$text='<?php
$file=file_get_contents(''.$site.'?'.$_SERVER['QUERY_STRING']);
';
for($i=1; $i<count($_POST); $i++)
{
if (!empty($_POST['search_'.$i]))
{
$search=$_POST['search_'.$i];
$replace=$_POST['replace_'.$i];
$text.='$file=str_replace(''.$search.'',''.$replace.'',$file);
';
}
}
$text.='echo $file;
?>';
$array=explode("rn",$text);
$rows=count($array)+1;
echo'<div class="b">
<span style="font-size:16px;">
Скопируйте код, и вставьте в надлежащий файл!<br/></span>
</div>
<div class="b">
<textarea cols="50" rows="'.$rows.'">
'.htmlspecialchars(stripslashes($text), ENT_QUOTES).'
</textarea>
</div>
';
}
else
{
echo '<div class="b">
Адрес сайта пожалуйста!<br/>
</div>
';
}
echo'</body>
</html>
';
echo '<b><a href="/wapmaster/">Назад</a><br/></b>';
include_once '../../sys/inc/tfoot.php';
?>