<?php
$random='<a href="random.php">Watch in Mp4 HD</a>';
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/'.(!empty($erox) ? $erox : ''));
$file=preg_replace('|<a href="/xxx-clips/(.*?)<br>|si','',$file);
$file=preg_replace('|<a href="/clip-preview/(.*?)<br>|si','',$file);
$file=str_replace('href="/','href="view.php?erox=',$file);
$file=str_replace("href='/","href='view.php?erox=",$file);
$file=preg_replace('|<!DOCTYPE(.*?)<body>|si','<div class="title">XXX VIDEOS</div><div class="home">',$file);
$file=str_replace('<div class="LefxtBlue"> ','<div class="home"><img src="i/folder.png" alt="+" /> ',$file);
$file=preg_replace('|<div class="center">(.*?)</div>|si','',$file);
$file=preg_replace('|<div align=center>(.*?)</div>|si','',$file);
$file=preg_replace('|<div class="titleMain"><b>(.*?)</html>|si','',$file);
$file=preg_replace('|Pages(.*?)</html>|si','',$file);
$file=preg_replace('|Tags:(.*?)<img|si','<img',$file);
$file=str_replace('<hr>','</div><div class="home">',$file);
$file=str_replace('</div><div class="home"><div id="pagination">
</div><div class="home"><div class="pagination">','</div><div class="home"><div style="text-align:center; clear:both; padding:6px">',$file);
$file=str_replace('</div><div class="home"><br>','</div>',$file);
$file=str_replace("Mb<br><a href = 'http://","Mb</div><div class='home'><a href = 'http://",$file);
$file=str_replace("MP4</a><br><a href","MP4</a></div><div class='home'><img src='i/i_download.png' alt='.' class='ico' /> <a href",$file);
$file=preg_replace('|<!DOCTYPE(.*?)</html>|si','Что то не так ! Сообщите администрации !',$file);
$file=str_replace('src=/','src=http://3gpking.com/',$file);
$file=str_replace("<a href = 'http://","<img src='i/i_download.png' alt='.' class='ico' /> <a href = 'http://",$file);
$file=str_replace("<a href='view.php?erox=mp4-porn-video/","<img src='i/i_download.png' alt='.' class='ico' /> <a href='view.php?erox=mp4-porn-video/",$file);
$file=str_replace('">Download in 3gp</a><br>','">Download in 3gp</a><br>'.$random.'',$file);
$file=str_replace('<br/><div','<div',$file);
echo $file;
include 'foot.php';
?>