<?php
///////////////////////////////////////////////////////////////////////
//////////http://daymonn.h2m.ru////////////////////////////////////////
////////мой первый граб тв программы с http://wap.amobile.ru///////////
//////////////////////////////////////////////////////////////////////
define('_IN_JOHNCMS', 1);
$textl = 'Тв Программа';
require_once ("../incfiles/core.php");
require_once ("../incfiles/head.php");
header("Content-type:text/html; charset=utf-8");

$file=file_get_contents('http://wap.amobile.ru/tv/?'.$_SERVER['QUERY_STRING']);

//
echo '<div class="b">';
$file = str_replace('Как работает сервис', '', $file);
$file=str_replace('wap.AMOBILE.ru','', $file);
$file=str_replace('wap2.AMOBILE.ru','', $file);
$file=str_replace('wap2.AMOBILE.ru','', $file);
$file=str_replace('http://wap.amobile.ru/tv/index.php','../tv/', $file);
$file=str_replace('WAP.AMOBILE.RU','', $file);





echo $file;

require_once ("../incfiles/end.php");
?>
