Размер файла: 1.4Kb
<?php
error_reporting(0);
include('head.php');
$host = "bazooka.h2m.ru";
$path = "/gruz/enc/sex/index.php?$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: bazooka.h2m.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($bazooka != "\r\n") $bazooka = fgets($fp,128);
$bazooka = "";
while(!feof($fp)) $bazooka .= fgets($fp,4096);
fclose($fp);
}
$bazooka = str_replace('<?xml version="1.0" encoding="utf-8"?>', '',$bazooka);
$bazooka = preg_replace('/<!DOCTYPE html(.*?)<body>/si','',$bazooka);
$bazooka = str_replace('modules/enc/chzal.php', 'chzal.php',$bazooka);
$bazooka = str_replace('<a href="">На главную</a>', '',$bazooka);
$bazooka = preg_replace('/<span class="(.*?)">/si','',$bazooka);
$bazooka = preg_replace('/<div class="(.*?)">/si','',$bazooka);
$bazooka = preg_replace('/<div align="(.*?)">/si','',$bazooka);
$bazooka = str_replace('</div>', '',$bazooka);
$bazooka = str_replace('</span>', '',$bazooka);
echo $bazooka;
include('foot.php');
?>