Вход Регистрация
Файл: kg/kod.php
Строк: 26
<?php
require_once "../includes/start.php";
require_once 
"../includes/functions.php";
require_once 
"../includes/header.php";
include_once 
"../themes/".$config['themes']."/index.php";

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 
'<br /><img src="'.BASEDIR.'../images/img/act_home.gif" alt="image" /> <a href="'.BASEDIR.'../../index.php?'.SID.'">На главную</a>';

include_once 
"../themes/".$config['themes']."/foot.php";
?>
Онлайн: 0
Реклама