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

Размер файла: 5.71Kb
<?php
/****************************************************************************************************
#  Автор  ==>Jay_z
~~~ Скрипт: граббер загрузок сайта 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"); // запрет кэширования. Раскомментировать при необходимости
$gl = "ozi.kmx.ru"; // ссылка на главную
header("Content-Type: text/html; charset=utf-8");
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
body{
font-weight: normal;
font-size: small;
color: #A7051B;
font-family: sans-serif;
background-color: #FFFB8E
}
a{
color: #000000;
text-decoration: none
}
a:hover{
text-decoration: underline
}
div{
margin: 0px;
padding: 0px 0px 0px 2px
}
.c1{
color: #FF0000
}
.c2{
color: #FFFF00
}
</style>
<title><?=$gl;?></title>
</head>
<body>
<div>
<?

############### функция ###############
function replace($str)
{
$gl = "ozi.kmx.ru"; // ссылка на главную
$str = preg_replace('~<[/]?small>~s','',$str);
$str = preg_replace('~http://wap[.]sasisa[.]ru/files/([0-9a-zA-Z]+)+[.]php[?]~s',"html.php?cont=$1&amp;",$str);
$str = preg_replace('~/files/([0-9a-zA-Z]+)+[.]php[?]~s',"html.php?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.htm'>$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;','html.php?',$str);
$str = preg_replace('~(http://)?wap[.]sasisa[.]ru~s',"$1$gl",$str);
//$str = str_replace('7549438443','6542639256',$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=10444'><img src='http://banners.su/banner.php?id=10444' alt='banners.su'/></a>\n</div></body></html>",$str);
return $str;
}

############### ПОЕХАЛИ!!! ###############
if((empty($_GET[&#039;id&#039;]) || $_GET[&#039;id&#039;] == 281) &amp;&amp; empty($_GET[&#039;cont&#039;])) // главная страница
{
if(!($file = @file_get_contents(&quot;http://wap.sasisa.ru/?option=item&amp;id=281&quot;)))
die("Сервис временно недоступен. Попробуйте зайти попозже!<br/><br/><a href='http://".$gl."'>На главную</a>
<br/><a href='http://banners.su/click.php?id=10323'><img src='http://banners.su/banner.php?id=10444' alt='banners.su'/></a>
</div></body></html>");
preg_match('~<p>(.*?)</wml>~xs', $file,$www);
echo replace($www[0]);
echo '</div></body></html>';
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>
<br/><a href='http://banners.su/click.php?id=10323'><img src='http://banners.su/banner.php?id=10444' alt='banners.su'/></a>
</div></body></html>");
preg_match('~<p>(.*?)</wml>~xs', $file,$www);
echo replace($www[0]);
echo '</div></body></html>';
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>
<br/><a href='http://banners.su/click.php?id=10323'><img src='http://banners.su/banner.php?id=10444' alt='banners.su'/></a>
</div></body></html>");
preg_match('~<p>(.*?)</wml>~xs', $file,$www);
echo replace($www[0]);
echo '</div></body></html>';
exit;
}
?>