View file 14/r.php

File size: 1.48Kb
<?
Error_Reporting(E_ALL & ~E_NOTICE);
$host = "erotel.us";
$path = "/txt/14/r.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: Nokia6600/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('Erotel.us','Wap.Irbit.In', $text);
$text=str_replace('index.php','txt.php', $text);
$text=str_replace('/txt/','/', $text);
$text=str_replace('erotel.us','wap.irbit.in', $text);

$text=str_replace('<a href="http://waplog.net/ru/c.shtml?12082"><img src="http://c.waplog.net/ru/12082.cnt" alt="waplog" /></a><br/>','<center><a href="http://xban.ru/ban.php?uid=10482"><img src="http://xban.ru/ban.php?img=10482" alt="."/></a><br/></center>', $text);
$text=str_replace('http://erotel.org/includes/css/00.css','http://wap.irbit.in/css/flem.css', $text);
$text=preg_replace('/<a href="http:\/\/mobileads.ru\/(.*?)<\/a><br\/>/si','',$text);
$text=preg_replace('/<a href="http:\/\/wap.1124.ru\/(.*?)<\/a><br\/>/si','',$text);
print "$text";
?>