View file sams/oboi/index.php

File size: 1.9Kb
<?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="Супер обои! - wap.mmfki.net">';
print '<b>wap.mmfki.net</b>';

$file = file("http://samsungi.ru/body/wap_oboi/oboi_cat.php?$QUERY_STRING");

$file = @implode("", $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("|oboi_res.php|","oboi_cat.php",$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('&lt;--------&gt;','',$file);
//Это вырезаем <--------> этот текст
$file = str_replace('&lt;----/\----&gt;','&lt;----/\----&gt;<br/>',$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>';

?>