Вход Регистрация
Файл: social12/service/horoscope.php
Строк: 23
<?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://ka4ka.ru/info/horoscope/index.php?' . $_SERVER['QUERY_STRING']);

if (empty(
$x)) {
    
err('Извините, сервис гороскопа пока недоступен!');
} else {
    
$x = preg_replace('#content="text/css"(.*)</style>#isU', '', $x);
    
$x = preg_replace('#Назад(.*)]</div></div>#si', '', $x);
    
$x = str_replace('/info/horoscope/index.php', '', $x);
    
$x = preg_replace('#ka4ka=(.*)(")#isU', '"', $x);
    
$x = preg_replace('#<!--(.*)(-->)#isU', '', $x);
    
$x = preg_replace('/<a href="/cabinet.php?(.*)Регистрация</a><br />/isU', '', $x);
    
$x = preg_replace('#[T:(.*)]<br /></small>#isU', '', $x);
    
$x = preg_replace('#<?(.*)alt="" /><br />#isU', '', $x);
    
$x = str_replace('</p><p align="center">Версия сайта <a href="/?go=ver&amp;d=1&amp;">xHTML</a>|WML</p></card></wml>', '', $x);
    echo 
$div_left . $x . $div_end;
}
unset(
$x);

include 
'../foot.php';

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