Просмотр файла grab_video_7ba.ru/video.php

Размер файла: 2.14Kb
<?php
Error_Reporting(E_ALL & ~E_NOTICE);
include("header.php");
$host = "7ba.ru";
$path = "/3gp/j.wml?$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: Nokia6630/1.0\r\n\r\n";
fwrite($fp,$headers);
while($text != "\r\n")
$text = fgets($fp,128);
$text = "";
while(!feof($fp))
$text .= fgets($fp,4096);
fclose($fp);
}

header("Cache-Control: no-cache");
header("Content-Type:text/html;charset=utf-8");

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