Файл: weed/ank.php
Строк: 103
<?
/*
Автор скрипта: Simptom
Сайт поддержки: http://s-klub.ru
Запрещено распространять скрипт в любом виде и под любым предлогом!
*/
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';
title();
aut();
include_once 'inc/user.php';
if (isset($_GET['id']))
{
$int=intval($_GET['id']);
$ank=mysql_fetch_array(mysql_query("SELECT * FROM `user` WHERE `id`= $int LIMIT 1"));
}
if ((!isset($_GET['id'])) || (!$int) || (!$ank) || ($ank==0))
{
echo "<table style='width:100%' cellspacing='1' cellpadding='1'><tr>";
echo "<td class='err'><center>";
echo '<img src="img/err.png">';
echo "</center></td>";
echo "<td class='err'><center>";
echo "<b>Ошибка!</b>";
echo "</center></td>";
echo "</tr></table>";
echo "<a href='index.php'><table style='width:100%' cellspacing='1' cellpadding='1'><tr>";
echo "<td class='navigator'>";
echo "<img src='img/weed.png' width='18' height='18'> ";
echo "<b>На главную</b><br />";
echo "</td>";
echo "</tr></table></a>";
include_once '../sys/inc/tfoot.php';
exit;
}
echo "<div class='room4'><center>";
avatar($ank['id']);
echo "</center></div>";
echo "<table style='width:100%' cellspacing='1' cellpadding='1'><tr>";
echo "<td class='panel'>";
echo "<img src='img/weed.png' width='18' height='18'> ";
echo "<b>Ник: <a href='/info.php?id=$ank[id]'>".$ank['nick']."</a></b>";
echo "</td>";
echo "</tr><tr>";
echo "<td class='panel'>";
echo "<img src='img/weed.png' width='18' height='18'> ";
echo "<b>Монет: ".$ank['weed_money']."</b>";
echo "</td>";
echo "</tr><tr>";
echo "<td class='panel'>";
echo "<img src='img/weed.png' width='18' height='18'> ";
echo "<b>Семян: ".$ank['weed_semena']." шт.</b>";
echo "</td>";
echo "</tr><tr>";
echo "<td class='panel'>";
echo "<img src='img/weed.png' width='18' height='18'> ";
echo "<b>Листьев: ".$ank['weed_list']." гр.</b>";
echo "</td>";
echo "</tr><tr>";
echo "<td class='panel'>";
echo "<img src='img/weed.png' width='18' height='18'> ";
echo "<b>Собрано урожаев: ".$ank['weed_reyt']."</b>";
echo "</td>";
if ($ank['weed_license']==1)
{
echo "</tr><tr>";
echo "<td class='panel'><center>";
echo "<img src='img/weed.png' width='18' height='18'> ";
echo "<b>Лицензия:</b>";
echo "</center></td>";
echo "</tr><tr>";
echo "<td class='room4'><center>";
echo "<img src='img/license.png'>";
echo "</center></td>";
}
echo "</tr></table>";
echo "<a href='index.php'><table style='width:100%' cellspacing='1' cellpadding='1'><tr>";
echo "<td class='navigator'>";
echo "<img src='img/weed.png' width='18' height='18'> ";
echo "<b>На главную</b><br />";
echo "</td>";
echo "</tr></table></a>";
include_once '../sys/inc/tfoot.php';
?>