<?php
include '../inc/head.php';
$file=file_get_contents('http://wapos.ru/anim/?'.$_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('<a href="http://waplog.net/ru/c.shtml?2880"><img src="http://c.waplog.net/ru/2880.cnt" alt="waplog" /></a>','', $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://wapos.ru/anim/base/','anim.php?image=', $file);
$file=str_replace('<br/><br/><br/><div class="menu"><br/><br/></div><br/>','', $file);
$file=str_replace('<img src="http://wapos.ru/im/base/','<img src="http://alawap/im/img.php?url=', $file);
$file=preg_replace('|<p><small(.*?)/p>|is','',$file);
$file=str_replace('<b>Wapos.ru (c) 2010</b>','', $file);
$file=str_replace('<br/><br/><br/><a href="http://waplog.net/ru/c.shtml?4770"><img src="http://c.waplog.net/ru/4770.cnt" alt="w" /></a>','', $file);
$file=str_replace('<br/>---<br/>','', $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?30473"><img src="http://c.waplog.net/ru/30473.cnt" alt="w" /></a>','', $file);
$file=str_replace('[<a href="http://wapos.ru">На главную</a>]','', $file);
$file=str_replace('Картинки','Анимации ', $file);
$file=str_replace('<br/>
<br/>','', $file);
echo $file;
include '../inc/foot.php';
//include ('../foot.php');
?>