Размер файла: 1.3Kb
<?php
error_reporting(0);
include('head.php');
$host = "bazooka.h2m.ru";
$path = "/gruz/enc/sex/chzal.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 = preg_replace('/<html>(.*?)href="style.css">/si','',$bazooka);
$bazooka = preg_replace('/<a href="http:\/\/a0.h2m.ru\/(.*?)<\/a>/si','', $bazooka);
$bazooka = preg_replace('/<span class="(.*?)">/si','',$bazooka);
$bazooka = preg_replace('/<div class="(.*?)">/si','',$bazooka);
$bazooka = str_replace('</div>', '',$bazooka);
$bazooka = str_replace('</span>', '',$bazooka);
$bazooka = str_replace('<small>', '',$bazooka);
$bazooka = str_replace('</small>', '',$bazooka);
echo $bazooka;
include('foot.php');
?>