{% else-1 %}
(30 мар 2014, 14:23) (0/0) [0]
The Fox, вот граб
Прикрепленные файлы:
* PROFIWM_COM_5916_718811_PROFIWM_COM_6469_4795_1391257973xkaz_pux.zip (2.86 кб)
(30 мар 2014, 14:18) (0/0) [0]
Вот код но как делать для DCMS <?php
define('_IN_JOHNCMS', 1);
$textl = 'Граббер от Hall_Life';
require_once('../incfiles/core.php');
require_once('../incfiles/head.php');
$id= $_GET['load'];
$url = 'http://pux.su'.($id ? $id :'/load.html');
$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('#<!--(.*)-->#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('&','&amp;',$file);
$file = str_replace('&amp;raquo;','&raquo;', $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('','', $file);
$file = str_replace('http://wap.pux.su/download-',''.$set['homeurl'].'/dl/download.php?load=', $file);

$file = preg_replace('#<div class="menu">(.*)<img src="/images/search.png" alt="*"/>(.*)</div>#sU','', $file);
echo $file;
require_once('../incfiles/end.php');
?>
(30 мар 2014, 13:58) (0/0) [0]
Пжл помогите *
(30 мар 2014, 13:47) (0/0) [0]
Я php не понимаю include тоже не могу
(30 мар 2014, 13:45) (0/0) [0]
please*
(30 мар 2014, 13:33) (0/0) [0]
Нада pux.su граббер для DCMS
  • 1 из 1