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

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

ob_start();
$title='Меню';//Титул
include('../../system/include/settings.inc');//Потключаемся к базе    
include('../../system/include/function.inc');//Выводим функции
include('../../system/include/experience.inc');
include(
'../../system/include/level.inc');
head($title,$udata2);//Верх страницы
if(isset($udata['pass']) && isset($udata2['nick'])){

    switch(
$_GET['mod'])
        {
                default:
        
$req mysql_query("SELECT * FROM `chars` WHERE `nick`='".$udata2['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'];
                echo 
' ['.$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>';
                        }
                        echo 
'<div class="title">

 <img src="../../system/themes/colisei.png" alt="" width="28" height="28" /> Управление </div>'
;
                        echo 
'<img src="../../system/themes/ico.png" /> <a href="index.asp?mod=equipment">Снаряжение</a><br />';
                        echo 
'<img src="../../system/themes/ico.png" /> <a href="../../modules/character/implements.asp?">Инвентарь</a><br/>';
                        
                break;
                    
                    case 
'equipment':
                    
$req mysql_query("SELECT * FROM `implements` WHERE `usr`='".$udata2['nick']."' and `dressed` = 'yes' and `type` = 'weapon'");
                    
$weapon mysql_fetch_array($req);
                    
$avto mysql_num_rows($req);
                        if(
$avto 0)
                        {
                            echo 
'<b>Оружия:</b> '.$weapon['name'] ;
                            echo 
' [<a href="snyat.asp?mod=weapon&amp;id='.$weapon['id'].'">снять</a>]';
                            }else{
                                echo 
'<b>Оружия:</b> Не одето';
                                }
                    
$req mysql_query("SELECT * FROM `implements` WHERE `usr`='".$udata2['nick']."' and `dressed` = 'yes' and `type` = 'shield'");
                    
$shield mysql_fetch_array($req);
                    
$avto mysql_num_rows($req);
                        if(
$avto 0)
                        {
                            echo 
'<br /><b>Щит:</b> '.$shield['name'];
                            echo 
' [<a href="snyat.asp?mod=shield&amp;id='.$shield['id'].'">снять</a>]';
                            }else{
                                echo 
'<br /><b>Щит:</b> Не одето';
                                }
                    
$req mysql_query("SELECT * FROM `implements` WHERE `usr`='".$udata2['nick']."' and `dressed` = 'yes' and `type` = 'golova'");
                    
$golova mysql_fetch_array($req);
                    
$avto mysql_num_rows($req);
                        if(
$avto 0)
                        {
                            echo 
'<br /><b>Голова:</b> '.$golova['name'];
                            echo 
' [<a href="snyat.asp?mod=golova&amp;id='.$golova['id'].'">снять</a>]';
                            }else{
                                echo 
'<br /><b>Голова:</b> Не одето';
                                }
                    
$req mysql_query("SELECT * FROM `implements` WHERE `usr`='".$udata2['nick']."' and `dressed` = 'yes' and `type` = 'body'");
                    
$body mysql_fetch_array($req);
                    
$avto mysql_num_rows($req);
                        if(
$avto 0)
                        {
                            echo 
'<br /><b>Живот:</b> '.$body['name'];
                            echo 
' [<a href="snyat.asp?mod=body&amp;id='.$body['id'].'">снять</a>]';
                            }else{
                                echo 
'<br /><b>Живот:</b> Не одето';
                                }
                    
$req mysql_query("SELECT * FROM `implements` WHERE `usr`='".$udata2['nick']."' and `dressed` = 'yes' and `type` = 'nogi'");
                    
$nogi mysql_fetch_array($req);
                    
$avto mysql_num_rows($req);
                        if(
$avto 0)
                        {
                            echo 
'<br /><b>Ноги:</b> '.$nogi['name'];
                            echo 
' [<a href="snyat.asp?mod=nogi&amp;id='.$nogi['id'].'">снять</a>]';
                            }else{
                                echo 
'<br /><b>Ноги:</b> Не одето';
                                }
                            echo 
'<br /><a href="index.asp?">Назад</a>';
                    
                    
                break;
                    }

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