<?php
include_once '../../sys/inc/start.php';
include_once '../../sys/inc/compress.php';
include_once '../../sys/inc/sess.php';
include_once '../../sys/inc/home.php';
include_once '../../sys/inc/settings.php';
include_once '../../sys/inc/db_connect.php';
include_once '../../sys/inc/ipua.php';
include_once '../../sys/inc/fnc.php';
include_once '../../sys/inc/user.php';
$set['title']='MRA';//здесь пишем название страници
include_once '../../sys/inc/thead.php';
title();
err();
aut();
$file=file_get_contents('http://jimm.name/wap/mra/?'.$_SERVER['QUERY_STRING']);
$file=preg_replace('|<!DOCTYPE(.*?)<div class="tico">|is','<body><div class="top">Конструктор Mail.Ru Agent',$file);
$file=str_replace('Jimm - Онлайн - конструктор</div>','', $file);
$file=str_replace('<br>','<br/>', $file);
$file=preg_replace('|<a href="/">На главную</a>(.*?)</html>|is','<a href="../">Конструкторы</a><br/>
- ',$file);
$file=preg_replace('|">http://jimm.name/wap/(.*?).jad</a>|is','">JAD</a>',$file);
$file=str_replace('<div class="line"></div>','<hr>', $file);
$file=preg_replace('|">http://jimm.name/wap/(.*?).jar</a>|is','">JAR</a>',$file);
$file=str_replace('<h2>','', $file);
$file=str_replace('</h2>','', $file);
echo $file;
include_once '../../sys/inc/tfoot.php';
?>