Вход Регистрация
Файл: music/info.php
Строк: 18
<?php

require '../sid.php';
require 
'../config.php';
$link = connect_db();
if (!empty(
$_SESSION['us'])) {
   list(
$user, $id, $ps) = check_login($link);
   
whorm(0, 'music');
}
include 
'../head.php';

echo 
$div_title . 'Скачать песню' . $div_end;

$x = file_get_contents('http://muzmo.ru/info.php?' . $_SERVER['QUERY_STRING']);
if (!
$x) {
    
err('Извините, архив музыки временно не доступен.');
} else {
$x = preg_replace('#<?xml(.*)(</div>)#isU', '', $x);
$x = preg_replace('#<div class="sub">Конвертация(.*)</html>#isU', '</div>', $x);
$x = preg_replace('#<div class="dark"><img src="img/glavnaya.gif(.*)</html>#isU', '<div class="alarm">Вот и нифига не произошло! Зачем открыли эту страницу, не добавив к адресу id композиции? В дальнейшем не переходите по неверным адресам!</div>', $x);
$x = preg_replace('#<a href="abuse.php(.*)(Пожаловаться на композицию</a>)#isU', '', $x);
$x = str_replace('<br /><br />', '<br />', $x);
$x = preg_replace('#<a href="http://wap.sasisa(.*)(</a>)#isU', '', $x);
$x = str_replace('<div class="light"></div>', '', $x);
$x = str_replace('<div class="sub">', '<div class="aut">', $x);
$x = str_replace('<div class="main">', '<div class="menu">', $x);
$x = str_replace('<div class="light">', '<div class="tworazdel">', $x);
$x = str_replace('<div class="dark">', '<div class="razdel">', $x);
$x = str_replace('<?', '', $x);
$x = str_replace('MUZMO.RU', $site, $x);
$x = preg_replace('#<img src="(.*)(width="12" />)#isU', '<img src="../ico/kompoziciya.gif" height="12" width="12" alt=""/>', $x);
$x = str_replace('<div class="light"></div>', '', $x);
$x = str_replace('size="35"', 'size="20"', $x);
$x = str_replace('"black"', '"gray"', $x);
$x = str_replace('value="http://muzmo.ru', 'value="http://'.$site.'/music', $x);
//$x = preg_replace('#&amp;file(.*)(.mp3)#isU', '', $x);
$x = str_replace('</div></div>', '</div>', $x);
$x = str_replace('http://muzmo.ru/load.php?', 'load.php?', $x);
$x = preg_replace('#load.php?(.*)(&amp;file)#isU', 'load.php?file', $x);
echo 
$div_left . $x . $div_end;
}
unset(
$x);

include 
'../foot.php';

?>
Онлайн: 0
Реклама