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

Размер файла: 2.57Kb
<?php
$path=$_SERVER['QUERY_STRING'];
if(strpos($path,'file=')!==false)

{
$path=str_replace('file=','',$path);
header ("Location: http://o5wap.ru/dc/$path");
exit();
}
$path=str_replace('do','/?do',$path);
$path=str_replace('dc=on&','/dc/?',$path);
if(!strpos($path,'dc')!==false)
{
$res=file("http://o5wap.ru/dc/index.php?d=&s=0&c=10&pr=1".$path);


}
else
{
$res=file('http://o5wap.ru'.$path);
}
$res=implode('', $res);

$res=str_replace('<a href="?d','<a href="?dc=on&d',$res);

$res=ereg_replace('<img src=".','<img src="http://o5wap.ru/dc/',$res);

$res = str_replace('<a href="http://o5wap.ru">На главную</a>','<a href="http://waplend.org">На главную</a>',$res);

$res = ereg_replace("href\=([^\"]+)style.css([^\"]+)/>", "abcx",$res);

$res = str_replace('|','',$res);

$res = ereg_replace('<img src="http://o5wap.ru/dc/ttp://', '',$res);

$res = ereg_replace("<a href\=\"index_2.php([^\"]+)\">([^\"]+)</a>", "",$res);

$res = ereg_replace("<a href\=\"http://demo.1124.ru([^\"]+)\">([^\"]+)</a><br/>", "",$res);

$res = str_replace('«<a href="index.php?c=8&amp;s=0&amp;pr=1">Загрузки</a><br/>','',$res);

$res = ereg_replace("<a href\=\"index.php([^\"]+)\">([^\"]+)\"Загрузки</a>", "",$res);

$res = ereg_replace("<a href\=\"http://4e1.ru([^\"]+)\">([^\"]+)</a><br/>", "",$res);

$res = ereg_replace("<a href\=\"http://wap.1124.ru([^\"]+)\">([^\"]+)</a><br/>", "",$res);
$res = str_replace('<a href="http://top.wapstart.ru/?s=653">counter.wapstart.ru/index.php?c=685;b=1" alt="WapStart" /></a>','',$res);
$res = str_replace(' alt="waplog" /></a><br/>','',$res);

$res = ereg_replace('c.waplog.net/ru/1212.cnt','',$res);
$res = str_replace('1212">"','',$res);

$res = str_replace('<a href="http://waplog.net/ru/c.shtml?','',$res);


$res=str_replace("a href=\"waplog\"</a>","",$res);
$res=str_replace('<a href="?dc=on&d=~V ideo/XXX&amp;s=0&amp;n=0&amp;pr=1">Настройки</a><br/>','',$res);

$res=str_replace('<div class="niz"><b>o5wap.ru<br/>&copy; by GrOb</b></div>','',$res);

$res=ereg_replace('script','_script',$res);


$res=str_replace('<a href="/index.php?do','<a href="?do',$res);
$res=str_replace('<a href="http://o5wap.ru/dc/?','<a href="?dc=on&', $res);
$res=str_replace('<a href="index.php?d','<a href="?dc=on&d',$res);
$res=str_replace('<a href="http://o5wap.ru/dc/index.php?','<a href="?dc=on&',$res);
$res=str_replace('<a href="~','<a href="?file=~',$res);
$res=str_replace('action="index.php"','action="index.php?dc=on"',$res);
$res=str_replace('<a href="./?d','<a href="?dc=on&d',$res);
echo $res;
?>