Просмотр файла grab_smat_zona_7ba.ru/smart_zona.php

Размер файла: 2.35Kb
<?
include("header.php");
$host = "7ba.ru";
$path = "/smart.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 .= "User-Agent: Nokia 6600\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);
}

header("Content-type:text/html; charset=utf-8");

$file = str_replace('7ba.Ru','lameru.net.ru', $file);
$file = str_replace('<title>7ba.Ru</title>','<title>3gp Видео</title>', $file);
$file = str_replace('value="http://www.7ba.ru/','value="http://lameru.net.ru/', $file);
$file = str_replace('lameru.net.ru рекомендует Вам:','', $file);
$file = str_replace('smart.php','', $file);
$file = preg_replace('/<a href="http:\/\/erotel.us\/(.*?)<\/a><br\/>/si','',$file);
$file = str_replace('Поиск', "", $file);
$file = str_replace('Настройки', "", $file);
$file = str_replace('<img src="includes/img/search.gif" alt=""/>', "", $file);
$file = str_replace('<img src="includes/img/setting.gif" alt=""/>', "", $file);
$file = str_replace('<img src="includes/img/','<img src="http://7ba.ru/includes/img/', $file);
$file = str_replace('<img src="files/img/','<img src="http://7ba.ru/files/img/', $file);
$file = str_replace('<a href="http://erotel.us/in/go.php?id=12">Горячая эротика! 25+</a>','', $file);
$file = str_replace('<img src="http://c.waplog.net/ru/6159.cnt" alt="waplog"/><br/>','', $file);
$file = str_replace('<img src="http://de.c8.b1.a1.top.list.ru/counter?id=1150638;t=97" alt="." height="1" width="1"/>','', $file);
$file = str_replace('http://7ba.ru/includes/css/00.css','', $file);
$file = str_replace('Халява на','©', $file);
$file = preg_replace('/<a href="http:\/\/erotel.us\/(.*?)<\/a><br\/>/si','',$file);
$file = str_replace('</div></div><div style="text-align: left">','</div><div style="text-align: left">', $file);
$file = str_replace('content="text/html; charset=utf-8" />','content="text/html; charset=UTF-8"/>', $file);
echo $file;
include("footer.php");
?>