View file vid/index.php

File size: 1.72Kb
<?php
/*
mod by denich
*/

$host = "ebuchka.ru";
$path = '/XXX/html/index.php?'.$_SERVER['QUERY_STRING'];
$fp = fsockopen($host,80,$errno,$errstr,30);
if(!$fp) echo"$errstr ($errno)<br />\n";
else{
$headers = "GET $path HTTP/1.0\r\n";
$headers .= "Host: $host\r\n";
$headers .= "Accept: *\r\n";
$headers .= "Accept-Charset: UTF-8\r\n";
$headers .= "Accept-Charset: *\r\n";
$headers .= "Accept-Encoding: deflate\r\n";
$headers .= "Accept-Language: ru\r\n";
$headers .= "Referer: ebuchka.ru\r\n";
$headers .= "User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; ru) Opera 8.01\r\n\r\n";
fwrite($fp,$headers);
while($file != "\r\n") $file = fgets($fp,128);
$file = "";
while(!feof($fp)) $file .= fgets($fp,4096);
fclose($fp);
}
$file = str_replace('<?xml version="1.0" encoding="utf-8"?>', '',$file);
$file = preg_replace('/<!DOCTYPE(.*?)<div class="head" style="text-align: center">/si','',$file);
$file = str_replace('</div>', '',$file);
$file = str_replace('<div>', '',$file);
$file = preg_replace('/&#187;Супер:(.*?)<\/html>/si','',$file);
$file = preg_replace('/<!DOCTYPE(.*?)<\/a><br\/><br \/>Сортировать по:/si','Сортировать по:',$file);
$file = str_replace('<img src="../video.php?', '<img src="http://ebuchka.ru/XXX/video.php?',$file);
$file = preg_replace('/<!DOCTYPE(.*?)<img src="http:\/\/ebuchka.ru\/XXX\/video.php/si','<img src="http://ebuchka.ru/XXX/video.php',$file);
$file = str_replace('Скачать:<a href="index.php', 'Скачать:<a href="http://ebuchka.ru/XXX/html/index.php',$file);
$file = str_replace('index.php?', 'index.php?site='.$site.'&amp;fcolor='.$fcolor.'&amp;tcolor='.$tcolor.'&amp;lcolor='.$lcolor.'&amp;',$file);

include '../head.php';

echo $file;

include '../foot.php';
?>