View file index.php

File size: 1.65Kb
<?php

header('Content-type: text/html; charset=utf-8');
$owaps = file_get_contents('http://owaps.com/?'.$_SERVER['QUERY_STRING']);

$owaps = preg_replace('|<div class="adv">.*</div>.</div><div class="titl">Навигация</div><div class="dl2">.*</div>|sU','',$owaps);
$owaps = preg_replace('|<div class="titl">Дополнительно</div>.*</div>|sU','',$owaps);
$owaps = str_replace('<a href="http://owaps.com"><font color="white">© OWAPS.COM мобильные технологии</font></a>','',$owaps);
$owaps = str_replace('src="','src="http://owaps.com/',$owaps);
$owaps = preg_replace('|\<a href="komm.php\?id=.*&SID=.*">Ком.: \[.*\]\<\/a\>|U','',$owaps);
$owaps = preg_replace('|<html>.*</div>|sU','',$owaps);
$owaps = str_replace('на owaps.com','на '.$_SERVER['HTTP_HOST'],$owaps);
$owaps = str_replace('load.php','down.php',$owaps);
$owaps = preg_replace('|<div class="i_bar_t">.*</div>|sU','',$owaps);
$owaps = preg_replace('|<div class="dl2"><div class="dl2">.*|s','',$owaps);
$owaps = str_replace('Руби закладку owaps.com','Руби закладку '.$_SERVER['HTTP_HOST'],$owaps);
$owaps = str_replace(
array('<div class="menu">','<div class="t_block">','<div class="title2">','<div class="a">','<div class="i_bar_t">','<div class="titl">','<div class="title">','<div class="dl2">','<div class="dl">'),
array('<div class="tb">','<div class="gt">','<div class="cont">','<div class="cont">','<div class="rek">','<div class="gt">','<div class="tb">','<div class="cont">','<div class="rek1">'),$owaps);
$owaps = str_replace('<div class="cont">  </div>','',$owaps);

include 'head.php';
echo $owaps;
include 'foot.php';
?>