View file grab_statey_i_sovetov_7ba.ru/stat.php

File size: 1.71Kb
<?
include("header.php");
$host = "7ba.ru";
$path = "/sp.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('[!]Добав свой совет или статью и получи приз от администрации!', "", $file);
$file = str_replace('Добавить', "", $file);
$file = str_replace('index.php', "/index.php", $file);
$file = str_replace('sp.php', "", $file);
$file = str_replace('<a href="http://waplog.net/ru/c.shtml?6159">','', $file);
$file = str_replace('<img src="http://c.waplog.net/ru/6159.cnt" alt="waplog"/></a>','', $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 = 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");
?>