View file grab_polnxh_mp3_7ba.ru/mp3_big.php

File size: 2.86Kb
<?
include("header.php");
$host = "7ba.ru";
$path = "/fmp3/?$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('lameru.net.ru рекомендует Вам:',"Запомни сайт <b>lameru.net.ru</b>",$file);
$file = str_replace('value="http://www.7ba.ru/','value="http://lameru.net.ru/', $file);
$file = str_replace('Настройки', "", $file);
$file = str_replace('index.php','', $file);
$file = str_replace('<div class="header">(тест)Нарезать:<br/>','', $file);
$file = str_replace('<form action="index.php?mod=rez" method="post">','', $file);
$file = str_replace('<select name="way" class="do_button">','', $file);
$file = str_replace('<option value="size">По размеру</option>','', $file);
$file = str_replace('<option value="time">По времени</option>','', $file);
$file = str_replace('</select><br/>','', $file);
$file = str_replace('Начать с (кб или сек.):<br/>','', $file);
$file = str_replace('<input type="text" name="sr" class="do_button"/><br/>','', $file);
$file = str_replace('Закончить по (кб или сек.):<br/>','', $file);
$file = str_replace('<input type="text" name="pr" class="do_button"/><br/>','', $file);
$file = str_replace('<input type="hidden" name="id" value="12683"/>','', $file);
$file = str_replace('<input type="submit" class="button" value="Резать"/>','', $file);
$file = str_replace('</form></div></div>---<br/>','', $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");
?>