<?php
//Требование: PHP,wml
//Автор: wax
//Сайт автора: http://mmfki.net
//Email: [email protected]
header ("Content-type:text/vnd.wap.wml; charset=utf-8");
print '<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>';
echo '<head><meta http-equiv="Cache-Control" content="no-cache" forua="true"/></head>';
echo '<card title="Супер мелодии! - mmfki.net">';
print '<b>mmfki.net</b>';
$file = file("http://samsungi.ru/body/wap_melody/melody_list.php?$QUERY_STRING");
$file = @implode("", $file);
$file = preg_replace("|(.*)/files/|","<br/>» <a href=\"http://samsungi.ru/files/",$file);
$file = preg_replace("|(.*)version(.*)|","",$file);
$file = preg_replace("|(.*)//WAPFORUM//DTD(.*)|","",$file);
$file = preg_replace("|(.*)wapforum.org(.*)|","",$file);
$file = preg_replace("|(.*)wml(.*)|","",$file);
$file = preg_replace("|(.*)waplog.net/(.*)|", "",$file);
$file = preg_replace("|(.*)playfon.ru(.*)|","",$file);
$file = str_replace('<a href="http://eha.ru/index.php?ref=7">NEW! Только для взрослых!</a>','',$file);
$file = preg_replace("|(.*)eha.ru(.*)|","",$file);
$file = preg_replace("|(.*)c100.nsk.ru(.*)|","",$file);
$file = preg_replace("|</p>|","",$file);
$file = preg_replace("|(.*)align|","",$file);
$file = str_replace('="center">','',$file);
$file = str_replace('="left">','',$file);
$file = str_replace('<br/><b>mmf(wav+midi)</b>','Голосовые mmfКи',$file);
$file = str_replace('<-------->','',$file);
$file = str_replace('<----/\---->','<----/\----><br/>',$file);
$file = str_replace('Тип мелодии:','<br/>Выберите:',$file);
$file = str_replace('mmf(wav+midi)','mmf с голосом',$file);
$file = str_replace('Топ 50 скачиваний','Самые - самые',$file);
$file = str_replace('50 новинок','Новинки',$file);
$file = preg_replace("|(.*)card(.*)|","",$file);
print "$file";
print '<a href="http://mmfki.net">На главную</a><br/>';
print '</card></wml>';
?>