<?php
$rekl="";
include 'head.php';
function view($url){
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_USERAGENT, 'Opera/9.80 (J2ME/MIDP; Opera Mini/4.2.14912/27.1176; U; ru) Presto/2.8.119 Version/11.10');
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;
}
$erox = $_GET['erox'];
$file=view('http://3gpking.com/3gp-porn/'.(!empty($erox) ? $erox : ''));
$file=str_replace('href="/','href="view.php?erox=',$file);
$file=str_replace('href="?erox=view/download/','href="down.php?id=view/download/',$file);
$file=preg_replace('|<!DOCTYPE(.*?)Categories</div></div>|si','<div class="title">66 Categories XXX Videos</div>',$file);
$file=preg_replace('|<div align=center>(.*?)</div>|si','',$file);
$file=preg_replace('|<hr/>(.*?)</html>|si','',$file);
$file=str_replace('<div class="LeftBlue"> ','<div class="home"><img src="i/folder.png" alt="+" /> ',$file);
$file=str_replace('<div class="LeftOrange"> ','<div class="home"><img src="i/folder.png" alt="+" /> ',$file);
$file=str_replace('<div class="LeftPink"> ','<div class="home"><img src="i/folder.png" alt="+" /> ',$file);
$file=str_replace('<br/><div','<div',$file);
$file=preg_replace('|<!DOCTYPE(.*?)</html>|si','Что то не так ! Сообщите администрации !',$file);
$file=preg_replace('|return true;">GangBang(.*?)</div>|si','return true;">GangBang - GroupSex
(3778)</a></div>'.$rekl.'',$file);
echo $file;
include 'foot.php';
?>