Файл: index.php
Строк: 57
<?
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/loads'.$_SERVER['QUERY_STRING']);
$file=str_replace('href="/loads', 'href="?', $file);
$file=str_replace('href="/', 'href="load.php?', $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_botktom_dotted">(.*?)</div>|is', '',$file);
$file=preg_replace('|<div class="news border_bottom_dotted reklama">(.*?)</div>|is', '',$file);
$file=preg_replace('|<div class="punkt">(.*?)</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', '</div>',$file);
$file=preg_replace('|<?xml(.*?)</div>|is', '</a>',$file);
$file=str_replace('<ul>', '', $file);
$file=str_replace('</li>', '', $file);
$file=str_replace('<li>', '', $file);
$file=str_replace('</ul>', '', $file);
$file=str_replace("src='ico/", "src='http://wap.pux.su/ico/", $file);
$file=str_replace('<a style="color: black;"', '<a ', $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=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('<br/><br/>', '', $file);
$file=str_replace('<span class="box_downloader2', '<br/><span class="box_downloader2', $file);
$file=str_replace('<br/><a href="??', '<a href="??', $file);
$file=preg_replace('|src="dir.png"(.*?)today_files.html|is', 'src="dir1.png" class="dirimg" alt=""><a href="?/today_files.html',$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="r_g">', $file);
$file=str_replace('<div class="punkt2 punkt_pages">', '<div class="row">', $file);
echo $file;
include 'foot.php';
?>