Файл: load/index.php
Строк: 60
<?php
include 'head.php';
$id= $_GET['load'];
$url = 'http://wap.pux.su'.($id ? $id :'/load');
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl,CURLOPT_USERAGENT,'Opera/9.80 (Windows NT 5.1; U; ru) Presto/2.2.15 Version/10.10');
curl_setopt($curl, CURLOPT_REFERER, "http://pux.su");
curl_setopt($curl, CURLOPT_RETURNTRANSFER,1);
curl_setopt($curl, CURLOPT_TIMEOUT, 30);
$file = curl_exec($curl);
curl_close($curl);
$file = str_replace('<?xml version="1.0" encoding="UTF-8"?>','',$file);
$file = preg_replace('#n#sU','',$file);
$file = preg_replace('#<!DOCTYPE(.*)<div class="zag">(.*)</div>#sU','',$file);
$file = preg_replace('#<div class="dv"><script(.*)</html>#sU','',$file);
$file = preg_replace('#<div class="dv2" style="padding: 5px; border: 0px !important;">(.*)<div class="zag"></div>#sU','',$file);
$file = preg_replace('#<div class="dv2"(.*)Ф-Линия</a></div>#sU','',$file);
$file = preg_replace('#<!--(.*)-->#sU','<!-- Wape.su -->',$file);
$file = str_replace('</a><span','</a> <span',$file);
$file = str_replace('box-link','topmenu',$file);
$file = preg_replace('#<li>(.*)</li>#sU','<div class="menu">1</div>',$file);
$file = preg_replace('#<ul(.*)>(.*)</ul>#sU','2',$file);
$file = preg_replace('#href="/(.*)"#sU','href="index.php?load='.htmlspecialchars('/1').'"', $file);
$file = str_replace('class="box_mp3" ','',$file);
$file = str_replace('&','&',$file);
$file = str_replace('&raquo;','»', $file);
$file=str_replace('<img src="http://c.waplog.net/502249.cnt" alt="waplog" />','',$file);
$file = str_replace('class="dv"','class="menu"', $file);
$file = str_replace('<div class="menu"> <a href="index.php?load=/load_search.html?outpage="><img src="/images/search.png" alt="*"/> Поиск файлов</a> <br /> <a href="index.php?load=/load_top10.html?outpage="><img src="/images/top10.png" alt="*" /> ТОП 10</a> <br /> </div>','', $file);
$file = str_replace('<div class="menu"> <a href="index.php?load=/load_search.html?outpage=2"><img src="/images/search.png" alt="*"/> Поиск файлов</a> <br /> <a href="index.php?load=/load_top10.html?outpage=2"><img src="/images/top10.png" alt="*" /> ТОП 10</a> <br /> </div>','', $file);
$file = str_replace('<div class="menu"> <a href="index.php?load=/load_search.html?outpage=1"><img src="/images/search.png" alt="*"/> Поиск файлов</a> <br /> <a href="index.php?load=/load_top10.html?outpage=1"><img src="/images/top10.png" alt="*" /> ТОП 10</a> <br /> </div>','', $file);
$file = str_replace('<div class="menu"> <a href="index.php?load=/load_search.html?outpage=3"><img src="/images/search.png" alt="*"/> Поиск файлов</a> <br /> <a href="index.php?load=/load_top10.html?outpage=3"><img src="/images/top10.png" alt="*" /> ТОП 10</a> <br /> </div>','', $file);
$file = str_replace('index.php?load=/download','download.php?load=', $file);
$file = str_replace('index.php?load=/load.html','http://zka4ka.ru/load/', $file);
$file = str_replace(array('Pux.su','pUx.su','puX.su', 'pux.Su', 'pux.sU', 'Pux.Su', 'Pux.su', 'PuX.su'),''.str_replace('http://', '', $set['homeurl']).'', $file);
$file = str_replace('http://wap.pux.su/download',''.$set['homeurl'].'/load/download.php?load=', $file);
$file = preg_replace('#load=/">Главная(.*)/html>#sU','',$file);
$file = preg_replace('#load=/">Загрузки(.*)/html>#sU','',$file);
$file = str_replace('value="/load/','value="'.$home.'load/',$file);
$file=preg_replace('|<br/>Url:(.*?)<a href="javascript|is', '<a href="javascript',$file);
$file = preg_replace('#<div class="menu">(.*)<img src="/images/search.png" alt="*"/>(.*)</div>#sU','', $file);
$file = preg_replace('#<div class="menu">(.*)файлов</a> <br />#sU','', $file);
$file = str_replace('<a href="download.php', $links.'<br /><a href="download.php',$file);
$file = preg_replace("'<script[^>]*?>.*?</script>'si", "", $file); // убираем скрипты
$file = str_replace('<div class="menu">','<div class="r_g_menu">',$file);
$file = str_replace('<div class="topmenu">','<div class="m">',$file);
$file = preg_replace('#<div class="octobird-block" data-tp="txt" data-nb="1"></div>(.*)-->#sU','', $file);
$file = str_replace('<!-- Wape.su -->','',$file);
$file = str_replace('value="load/download.php','value="http://zka4ka.ru/load/download.php',$file);
$file = str_replace('<a class="box_dir"','<img src="/img/o.png" alt="" class="o"/> <a ',$file);
$file = preg_replace('#<div class="logotip">(.*)</html>#sU','Вернитесь на главную ! Ошибка! Страница не доступна, сообщите администрации!', $file);
echo $file;
include 'foot.php';
?>