Вход Регистрация
Файл: Gladiators v2.2/modules/character/info.asp
Строк: 51
<?php

/**
 * @author ByUNNAMED
 * @copyright 2012
 */

ob_start();
$title='Меню';//Титул
include('../../system/include/settings.inc');//Потключаемся к базе    
include('../../system/include/function.inc');//Выводим функции

head($title,$udata2);//Верх страницы
if(isset($udata['pass']) && isset($udata2['nick'])){

$nick mysql_real_escape_string($_GET['nick']);
        
$req mysql_query("SELECT * FROM `chars` WHERE `nick`='$nick'");
        
$m mysql_fetch_array($req);
        if(
$udata2['pol'] == 'w')
        {
            echo 
'<img src="../../images/avatars/wm.png"  width="95" height="220" /><br />';
            }else{
                echo 
'<img src="../../images/avatars/men.png"  width="95" height="220" /><br />';
            }
            
                echo 
'<img src="../../system/themes/ico.png" /> Уровень '.$m['lvl'];
                if(
$m['pol'] == 'm')
                    {
                        echo 
'<br /><img src="../../system/themes/ico.png" /> Мужщина';
                    }else{
                        echo 
'<br /><img src="../../system/themes/ico.png" /> Женщина';
                    }
                echo 
'<br /><img src="../../system/themes/ico.png" /> Опыт '.$m['exp'];
                
                if(
$udata2['clan'] != '')
                {
                    
$req mysql_query("SELECT * FROM `clan` WHERE `lider` = '".$udata2['clan']."'");
                    
$clan mysql_fetch_array($req);
                    echo 
'<br /><img src="../../system/themes/ico.png" /> Клан <a href="../../modules/clan/info.asp?id='.$clan['id'].'">'.$clan['name'].'</a>';
                }else{
                    echo 
'<br /><img src="../../system/themes/ico.png" /> Клан [Нет клана]';
                }
                echo 
'<br /><img src="../../system/themes/ico.png" /> Очки '.$m['skill'];
                echo 
'<br /><img src="../../system/themes/ico.png" /> Золото '.$m['gold'];
                echo 
'<br /><img src="../../system/themes/ico.png" /> Дерево '.$m['tree'];
                echo 
'<br /><img src="../../system/themes/ico.png" /> Железо '.$m['stones'];
                echo 
'<br /><img src="../../system/themes/ico.png" /> Камень '.$m['iron'];
                echo 
'<div class="title">

 <img src="../../system/themes/cel.png" alt="" width="28" height="28" /> Статистика </div>'
;
                
                echo 
'<img src="../../system/themes/ico.png" /> Жизни '.$m['hp'].'/'.$m['hpall'];
                    if(
$m['skill'] > 0)
                        {
                        echo 
' <a href="add.asp?mod=hp">+20</a>';
                        }
                    echo 
'<br /><img src="../../system/themes/ico.png" /> Атака '.$m['p_ataka'];
                    if(
$m['skill'] > 0)
                        {
                        echo 
' <a href="add.asp?mod=ataka">+2</a>';
                        }
                    echo 
'<br /><img src="../../system/themes/ico.png" /> Физ. Защита '.$m['p_def'];
                    if(
$m['skill'] > 0)
                        {
                        echo 
' <a href="add.asp?mod=pdef">+2</a>';
                        }
                    echo 
'<br /><img src="../../system/themes/ico.png" /> Защита головы '.$m['p_golova'];
                    if(
$m['skill'] > 0)
                        {
                        echo 
' <a href="add.asp?mod=pgolova">+2</a>';
                        }
                    echo 
'<br /><img src="../../system/themes/ico.png" /> Защита тела '.$m['p_body'];
                    if(
$m['skill'] > 0)
                        {
                        echo 
' <a href="add.asp?mod=pbody">+2</a>';
                        }
                        echo 
'<br /><img src="../../system/themes/ico.png" /> Защита ног '.$m['p_nogi'];
                    if(
$m['skill'] > 0)
                        {
                        echo 
' <a href="add.asp?mod=pnogi">+2</a>';
                        }
              


}else{echo
'Вы не ';
echo 
'<a href="../../index.asp">авторизированы</a> или не выбран персонаж';
}
foot();     
?>
Онлайн: 0
Реклама