Размер файла: 1.04Kb
<?php
# Coding by LinX
# ICQ 339890
define('MYURL','http://'.$_SERVER['HTTP_HOST'].'/');
include 'fnc.php';
$f = file_get_contents('http://wapos.ru/allnews/cat.php?'. $_SERVER["QUERY_STRING"]);
$f = str_replace('<?xml version="1.0" encoding="windows-1251"?>','',$f);
$f = str_replace('<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">','',$f);
$f = str_replace('<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru"> ','',$f);
$f = preg_replace('/<img (.*?)\/>/si','',$f);
$f = preg_replace('/<head>(.*?)<\/head>/si','',$f);
$f = str_replace('<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru">','',$f);
$f = str_replace('<body>','',$f);
$f = str_replace('<div class="logo"></div>','',$f);
$f = preg_replace('/<div class="about">(.*?)<\/div>/si','',$f);
$f = str_ireplace('(c) Wapos.ru','',$f);
$f = str_replace(date('Y',time()),'',$f);
s_header('Мировые новости');
echo '<div class="gt">Мировые новости</div><div class="cont">'.$f.'</div>';
s_footer();
?>