Файл: www/servis/w_news/subj.php
Строк: 30
<?php
include '../../config.php';
div('Мировые новости');
$_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> <br/>|ui',$file,$out);
$_SESSION['uri_name']=$out['1'];
$file=preg_replace('|<strong>(.+)</strong> <br/>|ui','<div class="header"><center>\1<br/></center></div>',$file);
$file=preg_replace('|- <a href="full.wml?|ui','<div class="msg1"><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 '<div class="msg2">« <a href="index.php">Мировые новости</a><br/>« <a href="/servis/">Сервисы</a></div>';
//list($generic_newmsec,$generic_newsec)=explode(chr('32'),microtime());
//echo '<br/>'.round((($generic_newsec+$generic_newmsec)-$generic_time),'4').'<br/>';
//echo '</body>
//</html>';
include '../../foot.php';
?>