<?
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';
$ank['id']=$user['id'];
if (isset($_GET['id']))$ank['id']=intval($_GET['id']);
$ank=get_user($ank['id']);
if(!$ank){header("Location: /index.php?".SID);exit;}
$set['title']='Предложить играть '.$ank['nick']; // заголовок страницы
if ($ank['id']==0 && $ank['id']==$user['id'])
{
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";
if(isset($_SESSION['refer']) && $_SESSION['refer']!=NULL && otkuda($_SESSION['refer']))
echo "<div class='foot'>«<a href='$_SESSION[refer]'>".otkuda($_SESSION['refer'])."</a><br />\n</div>\n";
include_once 'sys/inc/tfoot.php';
exit;
}
include_once '../sys/inc/thead.php';
title();
aut();
echo "<div class='main'>";
echo "<a href='/plugins/pianica/?user=$ank[id]'><img src='/style/icons/pianica.png' width='24' title='Пьяница' alt='*'/> Карточная игра \"Пьяница\"</a>";
echo "</div>";
include_once '../sys/inc/tfoot.php';
?>