Файл: zooshop/info.php
Строк: 84
<?
include_once '../sys/inc/start.php';
include_once '../sys/inc/compress.php';
include_once '../sys/inc/sess.php';
include_once '../sys/inc/home.php';
include_once '../sys/inc/settings.php';
include_once '../sys/inc/db_connect.php';
include_once '../sys/inc/ipua.php';
include_once '../sys/inc/fnc.php';
include_once '../sys/inc/user.php';
if (isset($user))$ank['id']=$user['id'];
if (isset($_GET['id']))$ank['id']=intval($_GET['id']);
if ($ank['id']==0)
{
$ank=get_user($ank['id']);
$set['title']=$ank['nick'].' - анкета '; // заголовок страницы
include_once '../sys/inc/thead.php';
title();
aut();
echo "<span class="status">$ank[group_name]</span><br />n";
if ($ank['ank_o_sebe']!=NULL)echo "<span class="ank_n">О себе:</span> <span class="ank_d">$ank[ank_o_sebe]</span><br />n";
include_once '../sys/inc/tfoot.php';
exit;}
$ank=get_user($ank['id']);
if(!$ank){header("Location: /index.php?".SID);exit;}
$set['title']='Тачка "'.$ank['nick'].'"'; // заголовок страницы
include_once '../sys/inc/thead.php';
title();
if ((!isset($_SESSION['refer']) || $_SESSION['refer']==NULL)
&& isset($_SERVER['HTTP_REFERER']) && $_SERVER['HTTP_REFERER']!=NULL &&
!preg_match('#info.php#',$_SERVER['HTTP_REFERER']))
$_SESSION['refer']=str_replace('&','&',preg_replace('#^http://[^/]*/#','/', $_SERVER['HTTP_REFERER']));
aut();
################################################################################
if ($ank['zverek']!=NULL)echo "<img src='$ank[zverek2]' alt='' /><br />n";
if ($ank['zverek']!=NULL)echo "Питомец: $ank[zverek]<br />n";
else
echo "Нет Тачки<br />n";
################################################################################
include_once '../sys/inc/tfoot.php';
?>