Вход Регистрация
Файл: public_html/element_include/element_profile_user_true.php
Строк: 384
<?php defined('element_war') or die('Access forbidden!'); ?>
<div class="nfl p5 mt5 mb5 mlra">
    
    <div class="cntr small mb5">
    <?php
    

    
    
    
    
if( $user['lost_privilege'] == 1
    { 
$status ', <b>Модератор</b>'; }
    if( 
$user['lost_privilege'] == 2
    { 
$status ', <b>Полу-администратор</b>'; }
    if( 
$user['lost_privilege'] == 3
    { 
$status ', <b>Администратор</b>'; }
        require_once 
'./element_function/element_function_item.php';
        echo 
ikonka_user($user['lost_race'], 'online').' <span class="yellow1 bold">'.$user['lost_login'].''.$status.'</span><br/>';
    
//    echo '<span class="yellow1 bold">'.$user['status'].'</span><br/>';
        
echo ($user['lost_town'] > 0) ? '<span class="yellow1"><img src="/images/town/race_'.$user_town['lost_race'].'.png" alt=""/> <a class="yellow1 bold" href="/town?id='.$user_town['lost_id'].'">'.$user_town['lost_name'].'</a>, '.town_users_zvanie($town_other[0]).'</span><br/>' '';
        echo 
'<span class="yellow1">'.$name_race[$user['lost_race']].', <span class="bold">'.$user['lost_level'].'</span> уровень</span>'
    
$wear_item users_wear_item($user['lost_id']);
    
?>

<center>
<table>
<tr>
<td>
<?php
    
if (isset($wear_item['helmet'])) {
        
$item cache_item($wear_item['helmet']); 
        
$bla item_params_type($item['lost_mesto']);
echo
'<a class="yellow1 small" href="/item?id='.$item['lost_id'].'"><img width="30" height="30" src="'.$item['lost_avatar'].'"></a></span>'; }
else { echo
'<img width="30" height="30" src="/images/icons/empty.png">'; }
    
?>
</br>
<?php
    
if (isset($wear_item['cape'])) {
        
$item cache_item($wear_item['cape']); 
        
$bla item_params_type($item['lost_mesto']);
echo
'<a class="yellow1 small" href="/item?id='.$item['lost_id'].'"><img width="30" height="30" src="'.$item['lost_avatar'].'"></a></span>'; }
else { echo
'<img width="30" height="30" src="/images/icons/empty.png">'; }
    
?>
</br>
<?php
    
if (isset($wear_item['armor'])) {
        
$item cache_item($wear_item['armor']); 
        
$bla item_params_type($item['lost_mesto']);
echo
'<a class="yellow1 small" href="/item?id='.$item['lost_id'].'"><img width="30" height="30" src="'.$item['lost_avatar'].'"></a></span>'; }
else { echo
'<img width="30" height="30" src="/images/icons/empty.png">'; }
    
?>
</br>
<?php
    
if (isset($wear_item['zone'])) {
        
$item cache_item($wear_item['zone']); 
        
$bla item_params_type($item['lost_mesto']);
echo
'<a class="yellow1 small" href="/item?id='.$item['lost_id'].'"><img width="30" height="30" src="'.$item['lost_avatar'].'"></a></span>'; }
else { echo
'<img width="30" height="30" src="/images/icons/empty.png">'; }
    
?>
</br>
<?php
    
if (isset($wear_item['feet'])) {
        
$item cache_item($wear_item['feet']); 
        
$bla item_params_type($item['lost_mesto']);
echo
'<a class="yellow1 small" href="/item?id='.$item['lost_id'].'"><img width="30" height="30" src="'.$item['lost_avatar'].'"></a></span>'; }
else { echo
'<img width="30" height="30" src="/images/icons/empty.png">'; }
    
?>

</td>
<td>
   
        <img width="120" height="150" src="/images/<?php echo ((!empty($user['lost_avatar'])) ? 'avatars/users/'.$user['lost_avatar'].'' $user['lost_male'].'.jpg'); ?>">
</td>

<td>
<?php
    
if (isset($wear_item['hands'])) {
        
$item cache_item($wear_item['hands']); 
        
$bla item_params_type($item['lost_mesto']);
echo
'<a class="yellow1 small" href="/item?id='.$item['lost_id'].'"><img width="30" height="30" src="'.$item['lost_avatar'].'"></a></span>'; }
else { echo
'<img width="30" height="30" src="/images/icons/empty.png">'; }
    
?>
</br>
<?php
    
if (isset($wear_item['shield'])) {
        
$item cache_item($wear_item['shield']); 
        
$bla item_params_type($item['lost_mesto']);
echo
'<a class="yellow1 small" href="/item?id='.$item['lost_id'].'"><img width="30" height="30" src="'.$item['lost_avatar'].'"></a></span>'; }
else { echo
'<img width="30" height="30" src="/images/icons/empty.png">'; }
    
?>
</br>
<?php
    
if (isset($wear_item['weapon'])) {
        
$item cache_item($wear_item['weapon']); 
        
$bla item_params_type($item['lost_mesto']);
echo
'<a class="yellow1 small" href="/item?id='.$item['lost_id'].'"><img width="30" height="30" src="'.$item['lost_avatar'].'"></a></span>'; }
else { echo
'<img width="30" height="30" src="/images/icons/empty.png">'; }
    
?>
</br>
<?php
    
if (isset($wear_item['shoes'])) {
        
$item cache_item($wear_item['shoes']); 
        
$bla item_params_type($item['lost_mesto']);
echo
'<a class="yellow1 small" href="/item?id='.$item['lost_id'].'"><img width="30" height="30" src="'.$item['lost_avatar'].'"></a></span>'; }
else { echo
'<img width="30" height="30" src="/images/icons/empty.png">'; }
    
?>
</br>
<?php
echo'<img width="30" height="30" src="/images/icons/empty.png">'
    
?>
</br>
</td>
</tr>
</table>    
</center>     

    </div>
    

    <div>

        <div class="nf2 small p5 mb5 mlra">
            <div class="ml5 mr5">
                <a class="bl p5 block odd" href="/equipment?id=<?php echo $user['lost_id']; ?>">
                    <span class="small yellow1"><img src="/images/icons/arena.gif"> Снаряжение</span> <span class="lngreen">[<?php echo count($wear_item); ?> / 9]</span>
                </a>
            </div>
            <div class="ml5 mr5">
                <a class="bl p5 block" href="/abilities?id=<?php echo $user['lost_id']; ?>">
                    <span class="small yellow1"><img src="/images/icons/1.gif"> Умения</span></span>
                </a>
            </div>
            <div class="ml5 mr5">
                <a class="bl p5 block odd" href="/bag">
                    <span class="small yellow1"><img src="/images/icons/1.gif"> Рюкзак</span> <span class="lngreen">[<?php echo count($shoot_item); ?> / 20]</span>
                </a>
            </div>
            <?php
            $wear_item 
users_wear_item($user['lost_id']);
            
$shoot_item users_shoot_item($user['lost_id'], 'box');
            
$count_item count($shoot_item);

            if (empty(
$user['box']))
            {
            
$user['box'] = 0;
            }
            
?>
            
            <div class="ml5 mr5">
                <a class="bl p5 block odd" href="/box">
                    <span class="small yellow1"><img src="/images/icons/1.gif"> Сундук</span> <span class="lngreen">[<?php echo $count_item; echo' / '; echo $user['box']; ?>]</span>
                </a>
            </div>
            <div class="ml5 mr5">
                <a class="bl p5 block odd" href="/achievement">
                    <span class="small yellow1"><img src="/images/icons/1.gif"> Достижения</span> <span class="lngreen">[0 / 5]</span>
                </a>
            </div>
            
            
            
            <div class="ml5 mr5">
                <a class="bl p5 block" href="/mail">
                    <span class="small yellow1"><img src="/images/icons/mail.png"> Почта</span> <span class="lngreen"><?php echo (($lost_other[2] > 0) ? '[+'.$lost_other[2].']' '' ); ?></span>
                </a>
                <div class="hr"></div>
            </div>
        </div>
    
        <?php if ($user['lost_town_altar'] > 0$colorr 'lngreen'; else $colorr 'yellow1'?>
        <div class="hr"></div>
        <div class="mt5 small">
            <img src="/images/icons/strlen.png"> <span class="white">Сила: </span><span class="<?php echo $colorr.'">'.$user['lost_params_strlen']; ?></span><br/>
            <img src="/images/icons/heatpoints.png"> <span class="white">Здоровье: </span><span class="<?php echo $colorr.'">'.$user['lost_params_heatpoints']; ?></span><br/>
            <img src="/images/icons/protection.png"> <span class="white">Защита: </span><span class="<?php echo $colorr.'">'.$user['lost_params_protection']; ?></span><br/>
            <img src="/images/icons/1.gif"> <span class="white">Сумма: </span><span class="<?php echo $colorr.'">'.$user['lost_params_summa']; ?></span><br/>
            <img src="/images/icons/1.gif"> <span class="white">Характеристики: </span><span class="lngreen"><a href="/gain?go=training">улучшить</a></span>
        <?php
        
if ($user['lost_town_altar'] > 0) {
            echo 
'<br/><img src="/images/icons/1.gif"> <a class="white" href="/town/altar?id='.$user['lost_town'].'">Алтарь</a>: <span class="'.$colorr.'">+'.$user['lost_town_altar'].'%</span>';
        }
        
?>
        </div>
        
        <div class="hr p5"></div>
        <div class="mt5 small">
            <img src="/images/icons/gold.png"> <span class="white">Золото: </span><span class="yellow1"><?php echo $user['lost_money_gold']; ?></span> <br/>
            <img src="/images/icons/cristall.png"> <span class="yellow1"> <span class="white">Кристаллы: </span><span class="yellow1"><?php echo $user['lost_resourse_cristalls']; ?></span><br/>
            <img src="/images/icons/irridyi.png"> <span class="white">Ирридий: </span><span class="yellow1"><?php echo $user['lost_resourse_irridyi']; ?></span>
        </div>
        
        <div class="hr p5"></div>
        <div class="mt5 small">
        <img width="13" height="14" src="/images/icons/experience.png"> <span class="white">Опыт: <span class="yellow1"><?php echo nmb_2($lost_exp[0]).' / '.nmb_2($cache_level_nex['lost_exp']); ?></span></span><br/>
        <img width="13" height="14" src="/images/icons/experience.png"> <span class="white">Глобальный опыт: <span class="yellow1"><?php echo nmb_2($lost_exp[1]); ?></span><br/>
        <?php echo ($user['lost_id'] <= 500) ? '<img width="13" height="13" src="/images/testers.png"> Почётный бета-тестер<span class="yellow1"></span><br/>' ''
        echo (
$user['lost_id'] <= 2300) ? '<img width="13" height="13" src="/images/testers.png"> ДР любимой игры<span class="yellow1"></span><br/>' ''
        
        
?>
        </div>
        <?php
        
if (isset($_GET['params']))
        {
            function 
ParamsCountRepeat($wear$shot$user) {
        
// Если одеты вещи, снимаем и ложим в рюкзак
        
if ($wear) { 
            foreach(
$wear as $mesto => $key) {
                
$item_id cache_item($key);
                
$shoot_item shoot_item($user$item_id$shot$wear'');
                
$shot $shoot_item['shoot'];
                
$wear $shoot_item['wear'];
                
$user $shoot_item['user'];
            }
            
// Записываем данные в кэш
            
writecache('element_wear_item_user_id'.$user['lost_id'], $wear);
            
writecache('element_shoot_item_user_id'.$user['lost_id'], $shot);
        }
        
        
$user['lost_params_strlen'] = 100;
        
$user['lost_params_heatpoints'] = 100;
        
$user['lost_params_protection'] = 100;
        
$user['lost_params_summa'] = 300;
        
        
$add_str 0;
        
$add_hps 0;
        
$add_prs 0;
            
            if (
$user['lost_blessing'] > 0) {
                
$blessing SetBlessing($user['lost_blessing']);
                
$add_str $add_str $blessing['params'];
                
$add_hps $add_hps $blessing['params'];
                
$add_prs $add_prs $blessing['params'];
            }
            
            if (
$user['lost_level'] > 1) {
                
$sum 0;
                    for (
$i 2$i <= $user['lost_level']; $i++) {
                    
$sum $sum $i;
                    }
                
$add_str $add_str $sum;
                
$add_hps $add_hps $sum;
                
$add_prs $add_prs $sum;
            }
        
$training explode(':'$user['lost_params_training']);    
        if (
$training[0] > 0) { $x_par $training[0] * 10$add_str $add_str $x_par; }
        if (
$training[1] > 0) { $x_par $training[1] * 10$add_hps $add_hps $x_par; }
        if (
$training[2] > 0) { $x_par $training[2] * 10$add_prs $add_prs $x_par; }        
        
        if (
$user['lost_town'] > 0$user_town cache_town($user['lost_town']);
        
        
$user['lost_town_altar_time'] = 0;
        
$user['lost_town_altar'] = 0;
        
$user['lost_town_altar_params'] = '';
        
        
$user_altar SetAltar($user['lost_town_altar'], $user['lost_town_altar_time'], $user['lost_town']);
        
SetParams($user$add_str$add_hps$add_prsfalse);
        
    }
        
            require_once 
__DIR__.'/../element_function/element_function_item.php';
            
$wear users_wear_item($user['lost_id']);
            
$shoot users_shoot_item($user['lost_id']);
            
ParamsCountRepeat($wear$shoot$user);
            
header('Location: /user');
            exit;
        }    
            
            
            
        
$rating update_rating_user('strlen'0);
        
$strlen array_search($user['lost_id'], $rating);
        if(!
$strlen) { $strlen '1000+'; }
        
$rating1 update_rating_user('heatpoints'0);
        
$heatpoints array_search($user['lost_id'], $rating1);
        if(!
$heatpoints) { $heatpoints '1000+'; }
        
$rating2 update_rating_user('protection'0);
        
$protection array_search($user['lost_id'], $rating2);
        if(!
$protection) { $protection '1000+'; }
        
$rating3 update_rating_user('summa'0);
        
$summa array_search($user['lost_id'], $rating3);
        if(!
$summa) { $summa '1000+'; }
        
?>
        <div class="hr p5"></div>
        <div class="mt5 small">
        <img src="/images/icons/strlen.png"> <span class="white">Рейтинг силы: <span class="yellow1"><? echo $strlen?> место</span></span><br />
        <img src="/images/icons/protection.png"> <span class="white">Рейтинг защиты: <span class="yellow1"><? echo $protection?> место</span></span><br />
        <img src="/images/icons/heatpoints.png"> <span class="white">Рейтинг здоровья: <span class="yellow1"><? echo $heatpoints?> место</span></span><br />
        <img src="/images/icons/1.gif"> <span class="white">Общий рейтинг: <span class="yellow1"><? echo $summa?> место</span></span>
        </div> 
        <?php
            
if ($user_blessing) {
                    
                    if (
$user['lost_blessing_time'] > (time() + (3600 24))) {
                        
$time1 = (int)(($user['lost_blessing_time'] - time()) / (3600 24));
                        
$time_1 = (int)($time1 * (3600 24) + time());
                        
$time2 $user['lost_blessing_time'] - $time_1;
                        
$time2 date("$time1 д. Hч. iм. sс."mktime(00$time2));
                    } else {
                        
$time2 $user['lost_blessing_time'] - time();
                        
$time2 date("Hч. iм. sс."mktime(00$time2));
                    }
                    
                    echo 
'<div class="nf2 small p5 mt5 cntr mlra">';
                    echo 
'<div class="mb2">
                    <table>
                    <td>
                    <img width="30" height="30" src="/images/'
.$user_blessing['image'].'">
                    </td>
                    <td class="small left" valign="top">
                    <span class="ml2"><span class="yellow1 small">'
.$user_blessing['name'].'</span></span><br/>
                    <span class="ml2"><span class="white">Будет активно ещё: <span class="lngreen bold">'
.$time2.'</span></span></span></td>
                    </table></div>'
;
                    echo 
'</div>';
                
            }



?>
        
        
        <div class="nf2 small p5 mt5 cntr mlra">
            <div class="ml5 mr5">
                <a class="sndr bl" href="/payment">
                <span class="moderator">Купить золото</span>
                </a>
            </div>
            
            <div class="ml5 mr5">
                <a class="sndr bl" href="/refferer">
                <span class="moderator"><b>Пригласить друга</b></span>
                </a>
            </div>
                    <div class="ml5 mr5">
                <a class="sndr bl" href="/history">
                <span class="moderator">История действий</span>
                </a>
            </div>
            <div class="ml5 mr5">
                <a class="sndr bl" href="/ank">
                <span class="moderator">Анкета</span>
                </a>
            </div>
            
            <div class="ml5 mr5">
                <a class="sndr bl" href="/ban/list?id=<?php echo $user['lost_id']; ?>">
                <span class="moderator">История банов (<?php echo mysql_result(mysql_query("SELECT COUNT(`lost_id`) FROM `element_ban_list` WHERE `lost_user` = '$user[lost_id]'"), 0); ?>)</span>
                </a>
            </div>
                <div class="ml5 mr5">
                <a class="sndr bl" href="?params">
                <span class="moderator">Пересчитать параметры</span>
                </a>
            </div>
        
            <?php
            
echo ($user['lost_privilege'] >= AND $user['lost_privilege'] <3) ? '
            <div class="ml5 cntr mr5"><a class="sndr bl" href="/element/moder/user?id='
.$user['lost_id'].'">
                <span class="moderator">Управление персонажом</span>
            </a></div>
            ' 
'';
            
?>
        
            
            <?php
            
echo ($user['lost_privilege'] == 3) ? '
            <div class="ml5 cntr mr5"><a class="sndr bl" href="/element/admin/user?id='
.$user['lost_id'].'">
                <span class="moderator">Управление персонажом</span>
            </a></div>
            <div class="ml5 mr5"><a class="sndr bl" href="/basket?id='
.$user['lost_id'].'">
                <span class="moderator">Корзина</span>
            </a></div>' 
'';
            
?>
            
        </div>
        
    </div>

    
</div>
Онлайн: 1
Реклама