Вход Регистрация
Файл: index.php
Строк: 57
<?php
include 'head.php';
ini_set('display_errors',0); ini_set ('register_globals'0);
session_name('SID'); session_start();
##############################################
##############################################
$host"erotika.waprik.ru"$path="/?".$_SERVER ['QUERY_STRING'];
$fp=fsockopen($host,80,$errno$errstr,10);
if(!
$fp) { echo "$errstr ($errno)<br/>n"; }else{
$data "";$post=0; foreach($_POST as $key=>$value){
$post=1$data.="&$key=$value";} if($data)$data=substr ($data,1);
if(
$post$headers "POST $path HTTP/1.0rn";else
$headers "GET $path HTTP/1.0rn"$headers.= "Host: $hostrn";
$headers.= "Accept: text/html, application/xml;q=0.9, application/xhtml xml, image/png, image/jpeg, image/gif,image/x-bitmap, */*;q=0.1rn";
$headers.= "Accept-Charset: utf-8;q=0.6 windows-1251;q=0.1*;q=0.1rn";
$headers.= "Accept-Encoding: utf-8rn";
$headers.= "Accept-Language: ru, en;q=0.9rn";
$headers.= "User-Agent: ".$_SERVER ['HTTP_USER_AGENT']."rn";
if(
$post){ $headers.= "Content-type: application/x-www-form-urlencodedrn";
$headers.= "Content-Length: ".strlen ($data)."rn";
$headers.= "rn"$headers.= $data;}else $headers.="rn";
@
fwrite($fp$headers); while($file != "rn"$file = @fgets($fp128);
$file ''; while(!feof($fp)) $file.= @fgets($fp4096); @fclose($fp); }
##############################################
$file=str_replace('<link rel="alternate" type="application/rss xml" href="http://ero.waprik.ru/rss.php"/>',''$file);
$file=str_replace('<a href="http://ero.waprik.ru/all_video.php','<a href="all_video.php'$file);
$file=str_replace('src="/','src="http://ero.waprik.ru/'$file);
$file=str_replace('<div class="row">','',$file);
$file=str_replace('>Назад</a>','>На главную</a>',$file);
$file=str_replace('<a href="http://waprik.ru/indexero.php">Эротика</a>','<a href="/">Эротика</a>'$file);
$file=str_replace('- <a href=','<div class="link"><img src="/ico.png" alt="*"/><a href=',$file);
$file=preg_replace('|<?xml(.*)</div><div class="main">|is',''$file);
$file=preg_replace('|<script src="http://ma-static.ru(.*)</script>|is','',$file);
$file=str_replace('<div class="obnova1">','<div class="line">'$file);
$file=str_replace(')<br/>',')</div>',$file);
$file=str_replace('<strong>',''$file);
$file=str_replace('</strong>',''$file);
$file=preg_replace('|<div class="niz">(.*)</div>|is','',$file);
$file=preg_replace('|<div class="small"><span style(.*)</body></html>|is','',$file);
$file=str_replace('<img src="./screens/''<img src="http://erotika.waprik.ru/screens/'$file);
$file=str_replace('<a href="./save.php''<a href="http://erotika.waprik.ru/save.php'$file);
$file=preg_replace('|<b>Прямая ссылка:(.*?)</div>|is''</div>',$file);
$file=str_replace('<a href="./">Всё порно видео</a>'''$file);
##############################################
echo $file;
include 
'foot.php';
?>
Онлайн: 1
Реклама