Файл: index.php
Строк: 25
<?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);
//*************************************
// ***
// Avtor: Bender | Pro ***
// E-mail: Bender_1011@list.ru ***
// Site: UzBender.Ru | Waplog.Cf ***
// ***
//*************************************
//!
$file = str_replace('<?xml version="1.0" encoding="UTF-8"?>','',$file);
$file = preg_replace('#<!DOCTYPE(.*)<div class="box-link">#sU','<div class="box-link">',$file);
$file = preg_replace('#<div class="octobird-block" data-tp="txt" data-nb="1"></div>(.*)</html>#sU','',$file);
$file = preg_replace('#<!DOCTYPE(.*)<div class="zag"></div>#sU','<div class="zag"></div>',$file);
$file = str_replace('<a class="box_dir"','<div class="menu"><a class="box_dir"',$file);
$file = str_replace('<li>','<br/>',$file);
$file = str_replace('</li>','</div>',$file);
$file = str_replace('<ul class="navigation-link-3">','<div class="post">',$file);
//!
$file = preg_replace('#href="/(.*)"#sU','href="index.php?load='.htmlspecialchars('/1').'"', $file);
$file = str_replace('index.php?load=/download','http://wap.pux.su/download', $file);
$file = preg_replace('#Url: <input name="url(.*)<div class="dv">#sU','<div class="dv">', $file);
echo $file;
include '../foot.php';
?>