Файл: index.php
Строк: 10
<?php
$id= $_GET['load'];
$url = 'http://allos.mobi'.($id ? $id :'/');
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl,CURLOPT_USERAGENT,'Opera/9.80 (Windows NT 5.1; U; ru) Presto/2.2.15 Version/10.10');
curl_setopt($curl, CURLOPT_REFERER, "http://pux.su");
curl_setopt($curl, CURLOPT_RETURNTRANSFER,1);
curl_setopt($curl, CURLOPT_TIMEOUT, 30);
$file = curl_exec($curl);
curl_close($curl);
$file = preg_replace('#<!DOCTYPE(.*)<!--/ header -->#sU','',$file);
$file = preg_replace('#<!-- search -->(.*)<!-- search -->#sU','',$file);
$file = preg_replace('#<div class="ads nav">(.*)</html>#sU','',$file);
$file = preg_replace('#<div class="header">(.*)</div>#sU','',$file);
$file = preg_replace('#<a href="/comments/(.*)</a>#sU','', $file);
$file = str_replace('href="/view/download/', 'href="download.php?load=/view/download/',$file);
$file = preg_replace('#href="/(.*)"#sU','href="index.php?load='.htmlspecialchars('/1').'"', $file);
$file = preg_replace('#<img src="http://ka4ka.ru(.*)alt="" />#sU','', $file);
$file = preg_replace('#<a href="http://ka4ka.ru(.*)</a>#sU','', $file);
$file = str_replace('src="', 'src="http://allos.mobi/',$file);
$file = str_replace('</ul>', '',$file);
$file = str_replace('</li>', '',$file);
$file = preg_replace('#<li(.*)>#sU','', $file);
$file = preg_replace('#<ul(.*)>#sU','', $file);
echo $file;
?>