Вход Регистрация
Файл: social12/service/kurs.php
Строк: 17
<?php

require '../sid.php';
require 
'../config.php';
$link = connect_db();
list(
$user, $id, $ps) = check_login($link);
whorm(0, 'service');
include 
'../head.php';

echo 
$div_title . 'Курс валют' . $div_end;

$x = file_get_contents('http://nasimke.ru/services/kurs.php?' . $_SERVER['QUERY_STRING']);

if (empty(
$x)) {
    
err('Извините, сервис курса пока недоступен!');
} else {
    
$x = str_replace('---', '', $x);
    
$x = preg_replace('#<!--(.*)(-->)#isU', '', $x);
    
$x = preg_replace('/<p align="center">(.*)</wml>/isU', '', $x);
    
$x = preg_replace('/<a href="http://wap.sasisa.ru(.*)</a><br/>/isU', '', $x);
    echo 
$div_left . $x . $div_end;
}
unset(
$x);

include 
'../foot.php';

?>
Онлайн: 2
Реклама