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

Размер файла: 6.44Kb
<?
## Это рефа=) Спасибо sms-send.mobi
ini_set('user_agent','MOT-C261/0.1.31 UP.Browser/6.2.3.9.c.6 (GUI) MMP/2.0'.chr(13).chr(10).'Referer: http://wap.sasisa.ru/');
## А теперь идите на хуй. Спасибо ueb.ru
header("Cache-Control: no-cache");
$gl="wapmobi.org";
$rt1='</div><div class="d1" style="background-color:#000"><center><b><a class="b" href="http://ueb.ru"><small>&copy;2004-2007 Terkin</small></a></b></center></div></body></html>';
$konec=$rt[0].$rt1;
header("Content-Type:text/html;charset=utf-8");
echo'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><style type="text/css">body{background-color:#000;font-family:Comic Sans MS;margin:0;padding:0}div.d1{background-color:#59c;margin:0;border-left:1px solid #E4E4E4;border-top:1px solid #E4E4E4;border-right:1px solid #666;border-bottom:1px solid #666;padding:1px 1px 3px 3px;vertical-align:middle}a,a:visited,a:active,a:hover{color:#000}a.b:link,a.b:visited,a.b:active,a.b:hover{color:#F92}';echo'</style><link rel="shortcut icon" href="http://ueb.ru/g.png"><title>Загрузки для даунов</title></head><body>'; echo'<div class="d1" style="background-color:#FF0">';
function replace($str){
$gl="wapmobi.org";
$str=preg_replace('~http://wap[.]sasisa[.]ru/files/([0-9a-zA-Z]+)+[.]php[?]~s',"?cont=$1&amp;",$str);
$str=preg_replace('~/files/([0-9a-zA-Z]+)+[.]php[?]~s',"?cont=$1&amp;",$str);
$str=preg_replace('~(http://wap.sasisa.ru)?/files/~s',"files.php?",$str);
$str=str_replace('http://wap.sasisa.ru/index.php?option=item&amp;','?',$str);
$str=preg_replace('~(http://)?wap[.]sasisa[.]ru~s',"$1$gl",$str);
$str=preg_replace('~"[/]?index.php"~s','"http://'.$gl.'"',$str);
$str=str_replace($gl."files.php","http://wapmobi.org/daun/files.php",$str);
###########################################################
$str=preg_replace('~<[/]?small>~s','<br/>',$str);
$str=preg_replace('~<[/]?b>~s','',$str);
$str=preg_replace('~<[/]?i>~s','',$str);
$str=preg_replace('~<[/]?p>~s','<br/>',$str);
$str=ereg_replace('<p mode="nowrap" align="left">','<br/>',$str);
$str=ereg_replace('<p align = "center">','<br/>',$str);
$str=preg_replace('~<[/]?card>~s','<br/>',$str);
$str=preg_replace('~<[/]?wml>~s','',$str);
############################################################
$str=ereg_replace("\r",'',$str);
$str=ereg_replace("\n",'',$str);
$str=ereg_replace("  ",' ',$str);
$str=ereg_replace("\!\*",'',$str);
$str=ereg_replace(':::','---',$str);
$str=ereg_replace('<br />','<br/>',$str);
$str=ereg_replace(' <br/>','<br/>',$str);
$str=ereg_replace('<br/><br/>','<br/>',$str);
$str=ereg_replace('<br/><br/>','<br/>',$str);
$str=ereg_replace('<br/><br/>','<br/>',$str);
$b=explode('<br/>',$str);
$t=count($b);
for($i=0;$i<$t;$i++)
{
$p=@eregi('1124.ru',$b[$i]);if($p==true){unset($b[$i]);}
$p=@eregi('mms.sasisa',$b[$i]);if($p==true){unset($b[$i]);}
$p=@eregi('poly.php',$b[$i]);if($p==true){unset($b[$i]);}
$p=@eregi('pay5.php',$b[$i]);if($p==true){unset($b[$i]);}
$p=@eregi('pay.php',$b[$i]);if($p==true){unset($b[$i]);}
$p=@eregi('paym.php',$b[$i]);if($p==true){unset($b[$i]);}
$p=@eregi('payp.php',$b[$i]);if($p==true){unset($b[$i]);}
$p=@eregi('payg.php',$b[$i]);if($p==true){unset($b[$i]);}
$p=@eregi('paye.php',$b[$i]);if($p==true){unset($b[$i]);}
$p=@eregi('payv.php',$b[$i]);if($p==true){unset($b[$i]);}
$p=@eregi('download.php',$b[$i]);if($p==true){$b[$i]='<a href="">Загрузки для даунов</a>'; }
$p=@eregi('Скачайте каталоги:',$b[$i]);if($p==true){unset($b[$i]);}
$p=@eregi('Качай БЕСПЛАТНЫЕ',$b[$i]);if($p==true){unset($b[$i]);}
$p=@eregi('wapmobi.org/z/',$b[$i]);if($p==true){unset($b[$i]);}
$p=@eregi('<img src',$b[$i]);if($p==true){$b[$i]=ereg_replace('pic.php','http://wap.sasisa.ru/files/pic.php',$b[$i]);$b[$i]=ereg_replace('pic9.php','http://wap.sasisa.ru/files/pic9.php',$b[$i]);}
if($b[$i]=='&#1057;&#1090;&#1088;&#1072;&#1085;&#1080;&#1094;&#1072; 1 &#1080;&#1079; 1'){unset($b[$i]);};
if($b[$i]=='Страница 1 из 1'){unset($b[$i]);};
$p=@eregi('©',$b[$i]);if($p==true){unset($b[$i]);}
if($b[$i]=='' or $b[$i]==' ' or $b[$i]=='  '){unset($b[$i]);}
if($b[$i]=='---' and $b[$i+1]=='---'){unset($b[$i]);}
$p=@eregi('Перейти к',$b[$i]);if($p==true){
$b[$i]=$b[$i].$b[($i+1)].$b[($i+2)];
$e=explode('<a href =',$b[$i]);
$f=explode('"',$e[1]);
$l=explode('&amp;',$f[1]);
$n=count($l);
$d=$l[($n-1)];
unset($l[($n-1)]);
$adr=join('&amp;',$l);
$field=explode('=',$d);
$b[$i]='<form action="'.$adr.'" name="go" method="get">Перейти к <input name="'.$field[0].'" type="text" value="1" maxlength="2" size="2"/><input type="submit" value="стр"/></form>';
unset($b[$i+1]);unset($b[$i+2]);$i=$i+2;}}
$str=join('<br/>',$b);
$str=ereg_replace('---<br/>','---',$str);
$str=ereg_replace('<br/>---','---',$str);
$str=ereg_replace('------','---',$str);
$e=explode('---',$str);$e[1]='<small>'.$e[1].'</small>';$e[2]='<small>'.$e[2].'</small>';
$str=join('</div><div style="background-color:#FF0" class="d1">',$e);
$str=ereg_replace('<small></small>','',$str);
$str=ereg_replace('<div style="background-color:#FF0" class="d1"></div>','',$str);
$str=ereg_replace('<div style="background-color:#FF0" class="d1">Array</div>','',$str);
$str=$data[$n+1].'<br/>'.$str.$konec;
$str=ereg_replace('<br/></div>','</div>',$str);
echo $str;}
if((empty($_GET['id'])||$_GET['id']==281)&& empty($_GET['cont'])){if(!($file=@file_get_contents("http://wap.sasisa.ru/?option=item&id=281")))die("Сервис временно недоступен. Попробуйте зайти попозже!<br/><br/><a href='http://".$gl."'>На главную</a>$konec");preg_match('~<p>(.*?)</wml>~xs',$file,$www);echo replace($www[0]);echo $konec;exit;}
if(!empty($_GET['id'])&& empty($_GET['cont'])){if(!($file=@file_get_contents("http://wap.sasisa.ru/index.php?$QUERY_STRING&option=item")))die("Сервис временно недоступен. Попробуйте зайти попозже!<br/><br/><a href='http://".$gl."'>На главную</a>$konec");preg_match('~<p>(.*?)</wml>~xs',$file,$www);echo replace($www[0]);echo $konec;exit;}
if(!empty($_GET['cont'])){if(!($file=@file_get_contents("http://wap.sasisa.ru/files/".$_GET['cont'].".php?$QUERY_STRING")))die("Сервис временно недоступен. Попробуйте зайти попозже!<br/><br/><a href='http://".$gl."'>На главную</a>$konec");preg_match('~<p>(.*?)</wml>~xs', $file,$www);echo replace($www[0]);echo $konec;exit;}

?>