Просмотр файла index.php

Размер файла: 2.55Kb
<?php

header ("Content-type: application/vnd.wap.xhtml+xml; charset=utf-8");

/*Отправляем данные*/

$path=$_SERVER['QUERY_STRING'];

$file=file_get_contents('http://fank.ru/mp3/'.$path);

$file=str_replace('<div class="body">
<span style="color: #333333">Поиск исполнителя:</span><br/>
<form method="get" action="/mp3/search.shtml"><input type="text" name="q" value="" /><br/><input type="submit" value="найти" /></form>','',$file);

$file = preg_replace('/<a href="http:\/\/wap.1124.ru(.*?)<\/a>/si','',$file);

$file=preg_replace('#<form method="get"(.*)value="найти" /></form>#isU','',$file);

$file=ereg_replace("<div class=\"([^\"]+)\">","",$file);

$file=str_replace('</div>','',$file);

$file=str_replace('Поиск:<br/>','',$file);

$file=str_replace('<form method="get" action="/mp3/search.shtml"><input type="text" name="q" value="" /><br/><input type="submit" value="найти" /></form>','',$file);

$file=str_replace('russian.shtml','?russian.shtml',$file);

$file=str_replace('song.shtml','?song.shtml',$file);

$file=str_replace('album.shtml','?album.shtml',$file);


$file=str_replace('english.shtml','?english.shtml',$file);

$file=str_replace('genre.shtml','?genre.shtml',$file);

$file=str_replace('get.shtml','?get.shtml',$file);

$file=str_replace('action="/mp3/?get.shtml"','action="/mp3/get.php"',$file);

$file=str_replace('news.shtml','?news.shtml',$file);

$file=str_replace('<img src="http://i.fank.ru/i/d0/m.gif" alt="" /><a href="/mp3/makering.shtml','<a href="/mp3/makering.shtml',$file);

$file=preg_replace('#<a href="/mp3/makering.shtml\?id=(.*)#isU','ggLITLE',$file);

$file=preg_replace('#ggLITLE(.*)">сделать звонок</a><br/>#isU','',$file);

$file=str_replace('artist.shtml','?artist.shtml',$file);

$file=preg_replace("'<style[^>]*?>.*?</style>'si","",$file);

$file=ereg_replace("<span style=\"([^\"]+)\">","",$file);

$file=str_replace('http://fank.ru/mp3/','',$file);

$file=str_replace('</span>','',$file);

$file=str_replace('<div>','',$file);

$file=str_replace('<img src="http://i.fank.ru/i/d0/logo_music.gif" width="120" height="34" alt="" />','',$file);

$file=str_replace('</div>','',$file);

$file=str_replace('(c) 2007 ','',$file);

$file=str_replace('ring.shtml','?ring.shtml',$file);

include 'head.php';

$file=str_replace("<body>","<body bgcolor=\"$fon\" link=\"$link\" text=\"$text\">",$file);

$file=explode('<a href="/">Фанк.ру</a>',$file);


echo $file[0];

include 'foot.php';












######
/*Автор: Bull
Сайт: http://wapmik.net.ru/
ICQ: 6445474
E-Mail: [email protected]
*/

?>