Файл: elka/index.php
Строк: 97
<?php
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) && !isset($_GET['id'])){header("Location: /index.php?".SID);exit;}
if (isset($user))$ank['id']=$user['id'];
if (isset($_GET['id']))$ank['id']=intval($_GET['id']);
if (mysql_result(mysql_query("SELECT COUNT(*) FROM `user` WHERE `id` = '$ank[id]' LIMIT 1"),0)==0){header("Location: /index.php?".SID);exit;}
$ank=mysql_fetch_array(mysql_query("SELECT * FROM `user` WHERE `id` = $ank[id] LIMIT 1"));
$set['title'] = "Ёлка $ank[nick]";
include_once '../sys/inc/thead.php';
title();
err();
$visx = $ank[el_ydob] + $ank[el_vod] + $ank[el_vit] + $ank[el_sne]; //высота
$yrx = $ank[el_pod] + $ank[el_bel] + $ank[el_lenta] + $ank[el_igr]; //уровень
$yr = $yrx / 10;
$vis = $visx / 100;
echo "<div class='gl'> <img src='/elka/icon/elka.png' alt='elka' title='elka'></br><font color='green'> Высота: $vis м.</br> Уровень: $yr </font></div>";
echo "<center><div class='logo'>Статистика</div> </center>";
echo "<div class='gl'><img src='/elka/icon/sne.png' alt='sne' title=''> : $ank[el_sne] </br>
<img src='/elka/icon/bel.png' alt='bel' title=''> : $ank[el_bel] </br>
<img src='/elka/icon/pod.png' alt='pod' title=''> : $ank[el_pod] </br>
<img src='/elka/icon/igr.png' alt='igr' title=''> : $ank[el_igr] </br> <img src='/elka/icon/lenta.png' alt='lenta' title=''> : $ank[el_lenta] </br>
<img src='/elka/icon/ydob.png' alt='ydob' title=''> : $ank[el_ydob] </br>
<img src='/elka/icon/vod.png' alt='vod' title=''> : $ank[el_vod] </br>
<img src='/elka/icon/vit.png' alt='vit' title=''> : $ank[el_vit] </br>";
include_once '../sys/inc/tfoot.php';
?>