<?php
include_once('header.php');
?>
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'http://wapoz.ru/'.($_GET['id']).'');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_USERAGENT, "Nokia6630/1.0 (2.3.129) SymbianOS/8.0 Series60/2.6 Profile/MIDP-2.0 Configuration/CLDC-1.1");
curl_setopt($ch, CURLOPT_HTTPHEADER, array("Accept-Language: en-us,en;q=0.7","Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5"));
$data = curl_exec($ch);
curl_close($ch);
$data = preg_replace('#<style(.*?)</style>#is','luuun',$data);
$data = preg_replace('#<!DOCTYPE html>(.*?)luuun#is','',$data);
$data = str_replace('<body>','<body> fudi',$data);
$data = preg_replace('#fudi(.*?)</ul>#is','',$data);
$data = str_replace('Wapoz.Ru','HelloBhabhi.Com',$data);
$data = str_replace('<h1>','',$data);
$data = str_replace('</h1>','',$data);
$data = str_replace('<img src="/','<img src="pic.php?thumb=http://wapoz.ru/',$data);
$data = preg_replace('#width="(.*?)"><br>#is','><br>',$data);
$data = str_replace('<a href="/watch/','<a href="view.php?id=/watch/',$data);
$data = str_replace('<a href="/','<a href="files.php?id=/',$data);
$data = preg_replace('#<div class="footer">(.*?)</html>#is','<img src=""/>',$data);
echo $data;
?><?php
include_once('footer.php');
?>