Просмотр файла opera_barsy/index.php

Размер файла: 4.56Kb
<?php
///////RUSKA.H2M.RU - мир бесплатных загрузок для мобильного, смартфона, и КПК
///////шняга различная, сдесь не лапать!

Error_Reporting(E_ALL & ~E_NOTICE);
Error_Reporting (ERROR | WARNING);
include("head.php");
$host = "7ba.ru";
$path = "/opera/?$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('<?xml version="1.0" encoding="UTF-8"?>','', $text);
$text = str_replace('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">','', $text);
$text = str_replace('<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">','', $text);
$text = str_replace('<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />','', $text);
$text = str_replace('<link rel="stylesheet" type="text/css" href="http://7ba.ru/includes/css/00.css"/>','', $text);
$text = str_replace('<head>','', $text);
$text = str_replace('</head>','', $text);
$text = str_replace('<body>','', $text);
$text = str_replace('</body>','', $text);
$text = str_replace('<title>7ba.Ru</title>','', $text);
$text = str_replace('<font color="#c00000">','', $text);
$text = str_replace('<font color="#FFFF00">','', $text);
$text = str_replace('</font>','', $text);
$text = str_replace('Гигабайты халявы на 7ba.Ru','', $text);
$text = str_replace('7ba.Ru рекомендует Вам:','', $text);
$text = str_replace('<div style="text-align: center">','', $text);
$text = str_replace('<div style="text-align: left">','', $text);
$text = str_replace('<div class="contur_rek">','', $text);
$text = str_replace('<div class="header_rek">','', $text);
$text = str_replace('<div class="contur_t">','', $text);
$text = str_replace('<div class="contur">','', $text);
$text = str_replace('<div class="header">','', $text);
$text = str_replace('</div></div>','<br/>', $text);
$text = str_replace('<br/><br/>','<br/>', $text);
$text = str_replace('<h1>','', $text);
$text = str_replace('</h1>','<br/>', $text);
$text = str_replace('<b>','', $text);
$text = str_replace('</b>','', $text);
$text = str_replace('</li>','', $text);
$text = str_replace('</ul>','', $text);
$text = str_replace('<a href="http://erotel.us/in/go.php?id=19">Другие архивы халявы</a><br/>','', $text);                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              $text = str_replace('<a href="http://waplog.net/ru/c.shtml?6159"><img src="http://c.waplog.net/ru/6159.cnt" alt="top-waplog"/></a><br/>','<a href="http://waplog.mobi/from.php?s_id=10681"><img src="http://waplog.mobi/10681.small" alt="waplog.mobi" /><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"/>
<img src="http://wappixel.com/pixel.gif?id=296" alt="." height="1" width="1"/>','', $text);
$text = str_replace('Халява на ','', $text);
$text = str_replace('7ba.Ru </a>','', $text);
$text = str_replace('<html>','', $text);
$text = str_replace('</html>','', $text);

///////Очень не хорошая Реклама
$text = preg_replace ('/<a href="http:\/\/vip.erotel.us\/(.*?)">(.*?)<\/a><br\/>/i', '', $text );
$text = preg_replace ('/<a href=\'http:\/\/vip.erotel.org\/(.*?)\'>(.*?)<\/a><br\/>/i', '', $text );
print "$text";
include("foot.php");
?>