Файл: index.php
Строк: 33
<?php
include 'head.php';
function view($url){
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 6.3; WOW');
curl_setopt($curl, CURLOPT_HTTPHEADER, array('Accept: text/html, application/xml;q=0.9, application/xhtml xml, image/png, image/jpeg, image/gif,image/x-bitmap, */*;q=0.1', 'Accept-Charset: utf-8;q=0.6 windows-1251;q=0.1*;q=0.1', 'Accept-Encoding: utf-8', 'Accept-Language: ru, en;q=0.9'));
curl_setopt($curl, CURLOPT_AUTOREFERER, 0);
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 0);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_POST, 0);
$result = curl_exec($curl);
curl_close($curl);
if (!$result){
echo '<div class="menu">
, ...
</div>';
}
return $result;
}
$ero = $_GET['ero'];
$file=view('http://www.xxxvideo-arhiv.net/'.(!empty($ero) ? $ero : ''));
$file=str_replace('href="/','href="?ero=',$file);
$file=str_replace('src="/','src="http://www.xxxvideo-arhiv.net/',$file);
$file=preg_replace('|<center><noindex>(.*?)</noindex></center>|si','',$file);
$file=str_replace('</title>','- Dro4ni.ru</title>',$file);
$file=preg_replace('|<script type="text/javascript" src=(.*?)</script>|si','',$file);
$file=preg_replace('|<div class="banner">(.*?)</div>|si','',$file);
$file=preg_replace('|<meta http-equiv=(.*?)</div>|si','',$file);
$file=preg_replace('|<div class="footer">(.*?)</html>|si','',$file);
$file=preg_replace('|<div class="in-bg1">(.*?)</table>|si','',$file);
$file=str_replace('src="http://www.xxxvideo-arhiv.net//vk.com/','src="//vk.com/',$file);
$file = mb_convert_encoding($file, "utf-8", "cp1251");
echo $file;
include 'foot.php';
?>