Файл: load.php
Строк: 66
<?
include 'head.php';
function curl_get($url){
$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);
$cnt = curl_exec($curl);
curl_close($curl);
return $cnt;
}
$file=curl_get('http://wap.pux.su/'.$_SERVER['QUERY_STRING']);
$file=str_replace('href="/loads', 'href="index.php?', $file);
$file=str_replace('href="/', 'href="load.php?', $file);
$file=str_replace('href="??parent', 'href="index.php?parent', $file);
$file=preg_replace('|<!DOCTYPE(.*?)</div>|is', '',$file);
$file = str_replace('?/download_file.html?file_id=','http://wap.pux.su/loads/download_file.html?file_id=', $file);
$file = str_replace('amp;','',$file);
$file=preg_replace('|<div class="news border_bottom_dotted">(.*?)</div>|is', '',$file);
$file=preg_replace('|<div class="news border_bottom_dotted reklama">(.*?)</div>|is', '',$file);
$file=preg_replace('|<div class="punkkt">(.*?)</div>|is', '',$file);
$file=preg_replace('|<div class="punkt1">(.*?)</div>|is', '',$file);
$file=preg_replace('|<div class="news border_top_dotted">(.*?)</div>|is', '',$file);
$file=preg_replace('|<div class="news reklama">(.*?)/>|is', '',$file);
$file=str_replace("src='ico/", "src='http://wap.pux.su/ico/", $file);
$file=str_replace('<ul>', '', $file);
$file=str_replace('</li>', '', $file);
$file=str_replace('<li>', '', $file);
$file=str_replace('</ul>', '', $file);
$file=preg_replace('|<li onclick="(.*?)" >|is', '',$file);
$file=preg_replace('|<li(.*?)">|is', '<img src="dir.png" class="dirimg" alt="">',$file);
$file=preg_replace('|<div style="word-break:(.*?)">|is', '',$file);
$file=str_replace('<a href="?/like_add.html?', '', $file);
$file=preg_replace('|like=(.*?)<br/>|is', '',$file);
$file=preg_replace('|<b>URL:</b>(.*?)"/>|is', '',$file);
$file=str_replace('KB</span>', 'KB</span></span><br/>', $file);
$file=str_replace('MB</span>', 'MB</span></span><br/>', $file);
$file=str_replace('GB</span>', 'GB</span></span><br/>', $file);
$file=str_replace('</span>', '</span><br/>', $file);
$file=str_replace('Футбол 2014</a>', 'Футбол 2014</a><br/>', $file);
$file=preg_replace('|<a class="world_cup_box" href="http://www.kinotut.su/(.*?)<br/>|is', '',$file);
$file=preg_replace('|<a href="http://www.kinotut.su/(.*?)<br/>|is', '',$file);
$file=str_replace('<span class="box_downloader2', '<br/><span class="box_downloader2', $file);
$file=preg_replace('|src="dir.png"(.*?)src="dir.png"|is', 'src="dir.png"',$file);
#####Дивы вторые кавички####
$file=str_replace('<div class="obmennik_folder">', '<div class="aut">', $file);
$file=str_replace('<div class="obmennik_folder opera_old_word_break">', '<div class="row">', $file);
$file=str_replace('<div class="title">', '<div class="aut">', $file);
$file=str_replace('<div class="news" >', '<div class="aut">', $file);
$file=str_replace('<img class="download_icon"', '<div class="row"><img class="download_icon"', $file);
$file=str_replace('<div class="title" style="word-wrap: break-word;">', '<div class="aut">', $file);
$file=str_replace('<div class="news border_bottom_dashed" style="word-wrap: break-word;">', '<div class="row">', $file);
$file=str_replace('<div class="news border_bottom_dashed">', '<div class="row">', $file);
$file=str_replace('<div class="news border_bottom_dashed" style="word-wrap: break-word;">', '<div class="row">', $file);
$file=str_replace('<div class="news border_bottom_dashed" style="word-wrap: break-word">', '<div class="row">', $file);
$file=str_replace('<div class="news">', '<div class="aut">', $file);
$file=str_replace('<span class="navigation">', '<div class="aut">', $file);
$file=str_replace('<div class="news">', '<div class="aut">', $file);
$file=str_replace('<div class="punkt2 punkt_pages">', '<div class="row">', $file);
$file=str_replace('<div class="punkt">', '<div class="row">', $file);
echo $file;
include 'foot.php';
?>