<?php
include '../inc/head.php';
$file=file_get_contents('http://books.wapos.ru/pop.php?'.$_SERVER['QUERY_STRING']);
$file=preg_replace('|<div class="top">(.*?)</div>|is','',$file);
$file=str_replace('<img src="imgs/o/folder.gif" alt="-" />','', $file);
$file=str_replace('<div class="logo"><img src="/img/logo.gif" alt="" /></div>','', $file);
$file=str_replace('<img src="imgs/o/ob.gif" alt=""/>','', $file);
$file=preg_replace('|<div class="foot"(.*?)</div>|is','',$file);
$file=str_replace('<link rel="stylesheet" type="text/css" href="http://wapos.ru/styles/red.css"/>','', $file);
$file=preg_replace('|<a href="http://wap.1124.ru(.*?)</a>|is','',$file);
$file=preg_replace('|<img src="imgs/coms.gif" alt="-"/(.*?)<br/>|is','',$file);
$file=preg_replace('|<img src="imgs/(.*?)"/>|is','',$file);
$file=preg_replace('|<a href="http://tabor.ru/(.*?)/a>|is','',$file);
$file=preg_replace('|<a href="http://spin2win.wapos.ru"(.*?)/a>|is','',$file);
$file=preg_replace('|<div class="about"(.*?)</div>|is','',$file);
$file=str_replace('http://books.wapos.ru/base/','b.php?book=', $file);
$file=str_replace('<br/><br/><br/><div class="menu"><br/><br/></div><br/>','', $file);
$file=preg_replace('|<p><small(.*?)/p>|is','',$file);
$file=str_replace('<b>Wapos.ru (c) 2010</b>','', $file);
$file=str_replace('<p><a href="http://waplog.net/ru/c.shtml?41142"><img src="http://c.waplog.net/ru/41142.cnt" alt="w" /></a></p>','', $file);
$file=str_replace('<a href="http://wapos.ru">На главную</a>','<br /><br /><a href="../">На главную</a>', $file);
$file=str_replace('<?xml version="1.0" encoding="UTF-8"?>','', $file);
$file=str_replace('<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.2//EN" "http://www.wapforum.org/DTD/wml12.dtd">','', $file);
$file=str_replace('<a href="http://waplog.net/ru/c.shtml?5896"><img src="http://c.waplog.net/ru/5896.cnt" alt="w" /></a>','', $file);
$file=str_replace('<a href="http://wapos.ru">На главную</a>','<a href="../">На главную</a>', $file);
$file=preg_replace('|<a href="search.php"(.*?)/a>|is','',$file);
$file=preg_replace('|<div class="menu"(.*?)/div>|is','',$file);
$file=preg_replace('|<div class="logo"(.*?)/div>|is','',$file);
$file=str_replace('<br/>
<br/>','', $file);
$file=preg_replace('|<a href="comments.php(.*?)/a>|is','',$file);
echo $file ;
include '../inc/foot.php';
//include ('../foot.php');
?>