Файл: load/index.php
Строк: 31
<?php
define('_IN_JOHNCMS', 1);
$headmod ="00090";
$textl = 'Загрузки';
require_once ("../incfiles/core.php");
require_once ("../incfiles/head.php");
header("Content-type:text/html; charset=utf-8");
$page = $_GET['page'];
if($page==""){$page="/load/";}
$file = file_get_contents('http://anwap.org/'. (!empty($page) ? $page : ''));
$file = str_replace('<a href="http://anwap.org/','<a href="?page=',$file); $file=preg_replace('|Страница(.*?)Готово"/>|is', '<br/>',$file); $file=preg_replace('|<div class="nav(.*?)© Anwap.Org|is', '<br/>',$file); $file=preg_replace('|<input class="enter"(.*?)© Anwap.Org|is', '<br/>',$file); $file=preg_replace('|<br/><strong><a href="?/load/komm/(.*?)</a>|is', '<strong>',$file);
$file=preg_replace('|Нарезка|is', '',$file); $file=preg_replace('|Просмотр архива|is', '',$file); $file=preg_replace('|<div class="news">(.*?)<br/></div>|is', '',$file);
$file = str_replace('<a href="/','<a href="?page=',$file);
$file=str_replace('<?xml version="1.0" encoding="UTF-8"?>', '', $file);
$file = str_replace('src="/load/','src="http://anwap.org/load/',$file); $file = str_replace('<br/><strong><a href="?page=load/','<br/><strong><a href="http://anwap.org/load/',$file); $file = str_replace('?page=load/jad','http://anwap.org/load/jad',$file);
$file=preg_replace('|<!DOCTYPE(.*?)<br /></div>|is', '',$file);
$file=preg_replace('|<div class="logo">(.*?)</div>|si','', $file);
$file=preg_replace('|<head>(.*?)</title>|si','', $file);
$file=preg_replace('|<?xml version="1.0"(.*?)<br />|is', '',$file);
echo $file;
require('../incfiles/end.php');
?>