Файл: games/pianica/info.php
Строк: 95
<?
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';
$set['title']='Пьяница'; // заголовок страницы
include_once '../../sys/inc/thead.php';
echo '<link rel="stylesheet" href="style/css.css" type="text/css"/>';
title();
aut();
$game=mysql_fetch_assoc(mysql_query("SELECT * FROM `pianica` WHERE `id_user` = '$user[id]' OR `id_prot` = '$user[id]'"));
$game_my = mysql_result(mysql_query("SELECT COUNT(*) FROM `pianica` WHERE `id_user` = '$user[id]' OR `id_prot` = '$user[id]'"),0);
if (isset($user))$ank['id']=$user['id'];
if (isset($_GET['id']))$ank['id']=intval($_GET['id']);
$ank=mysql_fetch_assoc(mysql_query("SELECT * FROM `pianica_info` WHERE `id_user` = '$ank[id]'"));
if(!$ank){header("Location: index.php?".SID);exit;}
$login=get_user($ank['id_user']);
if (mysql_result(mysql_query("SELECT COUNT(*) FROM `pianica_info` WHERE `id_user` = '$login[id]' LIMIT 1"),0)==0)
{
mysql_query("INSERT INTO `pianica_info` (`id_user`) values('$login[id]')");
header("Location: index.php?");
}
echo "<div class='fon'>";
echo "<div class='uved'>";
echo "Статистика $login[nick]";
echo "</div><br />";
echo "<div class='rules'><div style='margin-left:1%;'>";
echo " ".status($login['id'])." $login[nick] ".medal($login['id'])." ".online($login['id'])."<br />";
echo "</div></div><br />";
echo "<div class='rules'>";
echo " - Побед ($ank[vins])<br />";
echo " - Поражений ($ank[loss])<br />";
echo " - Всего игр ($ank[count])<br />";
echo " - Рейтинг ($ank[rating])<br />";
echo " - Бонусы ($ank[bonus])<br />";
echo "</div><br />";
echo "<div class='rules'>";
if ($login['id']!=$user['id'])
echo " » <a href='index.php?user=$ank[id_user]' >Предложить игру</a><br />";
echo " » <a href='/info.php?id=$ank[id_user]' >Страничка $login[nick]</a><br />";
echo "</div><br />";
echo " <div class='chat_foot' style='padding:13px;'>n";
echo "<a href='index.php' class='niz_menu'>Меню</a> <a href='game.php' class='niz_menu'>Игра</a> ";
echo "</div>";
echo "</div>";
include_once '../../sys/inc/tfoot.php';
?>