Файл: menu.php
Строк: 33
<?php
require_once 'sys/inc/start.php';
require_once 'sys/inc/compress.php';
require_once 'sys/inc/sess.php';
require_once 'sys/inc/settings.php';
require_once 'sys/inc/db_connect.php';
require_once 'sys/inc/ipua.php';
require_once 'sys/inc/fnc.php';
require_once 'sys/inc/user.php';
only_reg();
$set['title'] = 'Личный кабинет';
require_once 'sys/inc/thead.php';
err();
aut();
if ((!isset($_SESSION['refer']) || $_SESSION['refer'] == NULL) && isset($_SERVER['HTTP_REFERER']) && $_SERVER['HTTP_REFERER'] != NULL &&
!preg_match('#menu.php#', $_SERVER['HTTP_REFERER'])) {
$_SESSION['refer'] = str_replace('&', '&', preg_replace('#^http://[^/]*/#', '/', $_SERVER['HTTP_REFERER']));
}
include_once 'sys/inc/menu.php';
if (isset($_SESSION['refer']) && $_SESSION['refer'] != NULL && otkuda($_SESSION['refer'])) {
echo "<div class='razd'>";
echo "<img src = '/style/icons/left.png' /> <a href='$_SESSION[refer]'>" . otkuda($_SESSION['refer']) . "</a>";
echo "</div>";
}
require_once 'sys/inc/tfoot.php';