Файл: public_html/tophit/index.php
Строк: 37
<?php
/**
- Граббер
- Автор GeGo
- Сайт. http://sumbo.su
*/
define('_IN_JOHNCMS', 1);
$headmod ="tophit";
$textl = 'Чарты';
require_once ("../incfiles/core.php");
require_once ("../incfiles/head.php");
header("Content-type:text/html; charset=utf-8");
$id = $_GET['id'];
$f = file_get_contents("http://muz.mobik.ru/tophit/index.php?".$_SERVER['QUERY_STRING']."");
$f = preg_replace('|<html(.*?)<head>|si','',$f);
$f = preg_replace('|<title>(.*?)<body>|si','',$f);
$f = preg_replace('|<script(.*?)</script>|si','',$f);
$f = preg_replace('|<noindex(.*?)</noindex>|si','',$f);
$f = preg_replace('|<div class="book_menu1">(.*?)</div>|si','',$f);
/*$f = preg_replace('|<div class="footer">(.*?)<div class="footer_b">(.*?)<div class="div_center">(.*?)</html>|si','',$f);*/
$f = preg_replace('|Проверочный код:<br/>(.*?)Формат|si','',$f);
$f = preg_replace('|<div class="footer">(.*?)</div>|si','',$f);
$f = preg_replace('|<div class="footer_b">(.*?)</div>|si','',$f);
$f = preg_replace('|<div class="div_center">(.*?)</html>|si','',$f);
/* КЕСУ */
$f = str_replace('<?xml version="1.0" encoding="UTF-8"?>','',$f);
$f = str_replace('<div class="green_line">','<div class="phdr">',$f);
$f = str_replace('class="menu_green_a','class="topmenu',$f);
$f = str_replace('class="menu_green','class="topmenu',$f);
$f = str_replace('<div class="book_list">','<div class="menu">',$f);
$f = str_replace('<div class="book_menu">','<div class="phdr">',$f);
$f = str_replace('<img src="','<img src="http://muz.mobik.ru/',$f);
$f = str_replace('value="http://muz.siza.us/','value="' . $set['homeurl'] . '/',$f);
$f = str_replace('muz_siza_us','Sumbo_su',$f);
$f = str_replace('файла:','Файл форматы',$f);
$f = str_replace('</body></html>','GeGo',$f);
$f = str_replace('<div class="menu_green_a" id="nav">','<div class="topmenu">',$f);
/* By GeGo */
//echo '<div class="phdr"><b>Темы</b></div>';
echo $f.(!empty($id)?$id:'');
require('../incfiles/end.php');
?>