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

Размер файла: 6.17Kb
<?php
/****************************************************************************************************
#  Автор  ==>   Р’© РќРµ-Лёха (Ne-Lexa)  #
~~~ Скрипт: граббер загрузок сайта http://wap.sasisa.ru ~~~
>>   1.  Запрещено менять код скрипта!
>>   2.  Запрещено продавать, менять, давать скрипт третим лицам!
>>   3.  В случаи не соблюдения правил, будут большие проблемы!

Контактная информация:
#   ICQ: offline vsegda!
#   E-MAIL: [email protected]
#   Home Page: http://ozi.kmx.ru
#   Вы в любое время можtте заказать скрипт по реквизитам в контактной информации
****************************************************************************************************/

error_reporting(0);
// header("Cache-Control: no-cache"); // запрет кэширования. Раскомментировать при необходимости
header("Content-Type: text/vnd.wap.wml; charset=utf-8");
$gl = "ozi.kmx.ru"; // ссылка на главную

############### функция ###############
function replace($str)
{
$gl = "ozi.kmx.ru"; // ссылка на главную
$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 = preg_replace('~(<u>)?[[:space:]]*<a href="[^"<>]*?/poly[.]php"[[:space:]]*>[^<]+?</a>[[:space:]]*(</u>)?[[:space:]]*(<br[[:space:]]*/>)?[[:space:]]*~s','',$str);
$str = preg_replace('~(<u>)?[[:space:]]*<a href="[^"<>]*?/pay[0-9a-z]*[.]php"[[:space:]]*>([^<]+?)</a>[[:space:]]*(</u>)?[[:space:]]*(<br[[:space:]]*/>)?[[:space:]]*~s',"<u><a href='http://ozi.kmx.ru/play.wml'>$2</a></u><br/>",$str);
$str = preg_replace('~<a href="http://wap[.]sasisa[.]ru/z/"[[:space:]]*>[^<]+?</a>[[:space:]]*(<br/>)*?[[:space:]]*~s','',$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 = str_replace('7259756005','7259756005',$str); // заменить на свой id в контенте ммски! Вписать id между кавычек.
$str = preg_replace('~"[/]?index.php"~s','"http://'.$gl.'"',$str);
$str = preg_replace('~[[:space:]]*<img src=[^>]+>[[:space:]]*[^<]+~s','',$str);
$str = preg_replace('~[[:space:]]*<img src=[^>]+"image"[[:space:]]*/>[[:space:]]*(<br[[:space:]]*/>)+~s','<br/>',$str);
$str = preg_replace('~[[:space:]]*<img src=[^>]+>[[:space:]]*<img+~s','<img',$str);
$str = preg_replace('~[[:space:]]*<img src=[^>]+>[[:space:]]*<br[[:space:]]*/>[[:space:]]*---<br[[:space:]]*/>[[:space:]]*+~s','---<br />',$str);
$str = str_replace($gl."files.php","http://ozi.kmx.ru/download/files.php?",$str); // Рђ это будет адрес файла, РєРѕС‚. пишется РёРЅРѕРіРґР°. Р?зменить С…РѕСЃС‚ Рё папку.
$str = preg_replace('~</p>[[:space:]]*</card>[[:space:]]*</wml>~s',"<br/><a href='http://banners.su/click.php?id=14000'><img src='http://banners.su/banner.php?id=14000' alt='banners.su'/></a>\n</p></card></wml>",$str);
return $str;
}
############### ПОЕХАЛР?!!! ###############
if((empty($_GET['id']) || $_GET['id'] == 282) && empty($_GET['cont'])) // главная страница
{
if(!($file = @file_get_contents("http://wap.sasisa.ru/?option=item&id=282")))
die("<?xml version='1.0' encoding='UTF-8'?><!DOCTYPE wml PUBLIC '-//WAPFORUM//DTD WML 1.2//EN' 'http://www.wapforum.org/DTD/wml12.dtd'>
<wml><head><meta http-equiv='Cache-Control' content='no-cache' forua='true'/></head>
<card id='index' title='".$gl."'><p align='center'>Сервис временно недоступен. Попробуйте зайти попозже!<br/><anchor>Назад<prev/></anchor><br/><a href='http://".$gl."'>На главную</a>
############### ПОЕХАЛР?!!! ###############
if((empty(['id']) || ['id'] == 281) && empty(['cont'])) // главная страница
{
if(!( = @file_get_contents("http://wap.sasisa.ru/?option=item&id=281")))
die("<?xml version='1.0' encoding='UTF-8'?><!DOCTYPE wml PUBLIC '-//WAPFORUM//DTD WML 1.2//EN' 'http://www.wapforum.org/DTD/wml12.dtd'>
<wml><head><meta http-equiv='Cache-Control' content='no-cache' forua='true'/></head>
<card id='index' title='".."'><p align='center'>Сервис временно недоступен. Попробуйте зайти попозже!<br/><anchor>Назад<prev/></anchor><br/><a href='http://".."'>На главную</a>
if(!($file = @file_get_contents("http://wap.sasisa.ru/index.php?$QUERY_STRING&option=item")))
die("<?xml version='1.0' encoding='UTF-8'?><!DOCTYPE wml PUBLIC '-//WAPFORUM//DTD WML 1.2//EN' 'http://www.wapforum.org/DTD/wml12.dtd'>
<wml><head><meta http-equiv='Cache-Control' content='no-cache' forua='true'/></head>
<card id='index' title='".$gl."'><p align='center'>Сервис временно недоступен. Попробуйте зайти попозже!<br/><anchor>Назад<prev/></anchor><br/><a href='http://".$gl."'>На главную</a>
<br/><a href='http://banners.su/click.php?id=14000'><img src='http://banners.su/banner.php?id=14000' alt='banners.su'/></a>
</p></card></wml>");
echo replace($file);
exit;
}

if(!empty($_GET['cont']))
{
if(!($file = @file_get_contents("http://wap.sasisa.ru/files/".$_GET['cont'].".php?$QUERY_STRING")))
die("<?xml version='1.0' encoding='UTF-8'?><!DOCTYPE wml PUBLIC '-//WAPFORUM//DTD WML 1.2//EN' 'http://www.wapforum.org/DTD/wml12.dtd'>
<wml><head><meta http-equiv='Cache-Control' content='no-cache' forua='true'/></head>
<card id='index' title='".$gl."'><p align='center'>Сервис временно недоступен. Попробуйте зайти попозже!<br/><anchor>Назад<prev/></anchor><br/><a href='http://".$gl."'>На главную</a>
<br/><a href='http://banners.su/click.php?id=14000'><img src='http://banners.su/banner.php?id=14000' alt='banners.su'/></a>
</p></card></wml>");
echo replace($file);
exit;
}
?>