Вход Регистрация
Файл: zagruz/azon/index2.php
Строк: 63
<?

# загрузка файла
$gdir $_GET['d'];
if(!
$gdir$gdir 'dl/';
if(
preg_match('/get_/i'$gdir)){
    
$gdir str_replace('d=/''/'$_SERVER['QUERY_STRING']);
    
header("Location: http://azon.mobi/$gdir"); exit;
 
   }

# ИНКЛУДИМ ЗАГОЛОВОК
@include 'head.php';

# НАСТРОЙКА СТИЛЕЙ
$DIV_ZAG "head"#стиль заголовка
$DIV_BODY "box"#стиль тела стр

# граббинг
$file get_pg("http://azon.mobi/$gdir");
$file preg_replace('#<?xml version(.*)</head><body>#isU'''$file);
$file preg_replace('#<div class="foot">(.*)</html>#isU'''$file);
$file preg_replace('#<div class="">(.*)</div>#isU'''$file);
$file str_replace('</center></div>''</center></div><div class="' $DIV_BODY '"> '$file);
$file str_replace('"head"''"' $DIV_ZAG '"'$file);
$file preg_replace('#<a href(.*)(search)(.*)/a>#'''$file);
$file preg_replace('#|<a href(.*)(unar)(.*)/a>#i'''$file);
$file preg_replace('#<img src=(.*)(dls)(.*))<br />#i'''$file);
$file preg_replace('#<img src=(.*)(djs)(.*))<br />#i'''$file);
$file preg_replace('#<img src=(.*)(eroboo)(.*))<br />#i'''$file);
$file preg_replace('#<a href="(.*)(index)?#isU''<a href="?d='$file);
$file str_replace('<a href="?d=index.php''<a href="?d='$file);
$file str_replace('&nbsp;'' '$file);
$file str_replace('&raquo;'' '$file);
$file str_replace("rn"''$file);
$file str_replace('<hr align="left" width="110" /> <hr align="left" width="110" />'''$file);
$file preg_replace('#<img src="/g.(.*) />#'''$file);
$file str_replace('<img src="''<img src="http://azon.mobi/'$file);
$file str_replace('<img src="http://azon.mobi//animation/img/b.gif''<img src="img/anime.png'$file);
$file str_replace('<img src="http://azon.mobi//pict/img/b.gif''<img src="img/image.png'$file);
$file str_replace('<img src="http://azon.mobi//video/img/b.gif''<img src="img/video.png'$file);
$file str_replace('<img src="http://azon.mobi//themes/img/b.gif''<img src="img/temi.png'$file);
$file str_replace('<img src="http://azon.mobi//flash/img/b.gif''<img src="img/flesh.png'$file);
$file str_replace('<img src="http://azon.mobi//symbian/img/b.gif''<img src="img/smart.png'$file);
$file str_replace('<img src="http://azon.mobi//pda/img/b.gif''<img src="img/pda.png'$file);
$file str_replace('<img src="http://azon.mobi//lib/img/b.gif''<img src="img/knigi.png'$file);
 
$file str_replace('<img src="http://azon.mobi//java/img/b.gif''<img src="/zagruz/img/game.png'$file);
$file str_replace('<img src="http://azon.mobi//loads/img/b.gif''<img src="/zagruz/img/papka.png'$file);
$file str_replace('<hr align="left" width="110"/>'''$file);
$file str_replace('<div style="text-align:center;" class="head">''<div class="title">'$file);
$file str_replace('<div class="box">''<div class="p_t">'$file);
# вывод
echo $file '</div>';
if(
$gdir <> 'dl/') echo '<a href="./">К началу</a><br/>';
echo 
'</div>';
#
function get_pg($url){
     if (
function_exists('curl_init')){
         
$ch curl_init();
         
curl_setopt ($chCURLOPT_URL$url);
         
curl_setopt ($chCURLOPT_USERAGENT'SamsungD500');
         
curl_setopt ($chCURLOPT_COOKIEJAR"cookie.dat");
         
curl_setopt($chCURLOPT_COOKIEFILE"cookie.dat");
         
curl_setopt ($chCURLOPT_REFERER$url);
         
curl_setopt ($chCURLOPT_RETURNTRANSFER1);
         
curl_setopt ($chCURLOPT_TIMEOUT10);
         
$result curl_exec ($ch);
         
curl_close ($ch);
         return 
$result;
         }else{
         
$stream stream_context_create(array('http' => array('method' => "GET"
            
'header' => "User-Agent: SamsungD500rn" "Accept-language: enrn")));
         return @
file_get_contents($urlfalse$stream);
         }
    }

# ИНКЛУДИМ НОГИ
@include 'foot.php';

?>
Онлайн: 3
Реклама