File size: 1.51Kb
<?
Error_Reporting(E_ALL & ~E_NOTICE);
$host = "erotel.us";
$path = "/themes/?$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','', $text);
$text=str_replace('j.wml','', $text);
$text=str_replace('<img src="http://sex.wups.ru/f.gif','<img src="http://7ba.ru/includes/img/folder.gif', $text);
$text=str_replace('<img src="IMG/','<img src="http://erotel.us/themes/IMG/', $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://top.bodr.net/?cid=63564"><img src="http://top.bodr.net/c.php?id=63564" alt="bodr_top"/></a><br/></center>', $text);
$text=str_replace('http://erotel.org/includes/css/00.css','./css/flem.css', $text);
$text=preg_replace('/<a href="http:\/\/wap.1124.ru\/(.*?)<\/a><br\/>/si','',$text);
print "$text";
?>