Вход Регистрация
Файл: work/kg/kod.php
Строк: 15
<?php

require '../../system/sid.php';
require 
'../../system/config.php';
include 
'../../system/user.php';
include 
'../../system/head.php';

whorm(0, 'work');

echo 
$div_title . 'Конструктор грабберов' . $div_end;

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 
'<span style="font-size:16px;">
Скопируйте код, и вставьте в надлежащий файл!<br/></span>
<textarea cols="50" rows="'
.$rows.'">
' 
. htmlspecialchars(stripslashes($text), ENT_QUOTES) . '
</textarea>'
;
}
else
{
echo 
'Адрес сайта пожалуйста!<br/>';
}

echo 
'&laquo; <a href="/work/?">Назад</a>';
include 
'../../system/foot.php';
?>
Онлайн: 2
Реклама