Просмотр файла podrobnosti_ua/subj.php

Размер файла: 1.23Kb
<?php
require_once ("../includes/start.php");
require_once ("../includes/functions.php");
require_once ("../includes/header.php");
include_once ("../themes/".$config['themes']."/index.php");
$_SESSION['uri']=$_SERVER['REQUEST_URI'];
$file=@file_get_contents("http://wap.podrobnosti.ua/utf/news2/subj.wml?".$_SERVER['QUERY_STRING']);
@$array=explode('<p>',$file);
@$file=$array[2];
preg_match('|\<strong\>(.+)\<\/strong\>\&nbsp\;\<br\/\>|ui',$file,$out);
$_SESSION['uri_name']=$out['1'];
$file=preg_replace('|\<strong\>(.+)\<\/strong\>\&nbsp\;\<br\/\>|ui','<div class="header"><center>\\1<br/></center></div>',$file);
$file=preg_replace('|\-\&nbsp\;\<a href\=\"full\.wml\?|ui','<div class="row"><a href="full.php?',$file);
$file=str_replace('</a><br/>','</a><br/></div>',$file);
$file=preg_replace('|\<\/p\>\s\<p align\=\"left\"\>|ui','<p>',$file);
$file=preg_replace('|subj\.wml\?|','subj.php?',$file);
echo $file;
echo '<p> - <a href="index.php">В начало</a><br/></p>';
echo '<!-- // end body -->';

list($generic_newmsec,$generic_newsec)=explode(chr('32'),microtime());
echo '<br/>'.round((($generic_newsec+$generic_newmsec)-$generic_time),'4').'<br/>';



//echo '</body>
//</html>';


include_once ("../themes/".$config['themes']."/foot.php");
?>