Файл: public_html/element_include/element_profile_user_false.php
Строк: 311
<div class="nfl p5 mt5 mb5 mlra">
<div class="cntr small mb5">
<?php
if( $profile_user['lost_privilege'] == 1)
{ $status = ', <b>Модератор</b>'; }
if( $profile_user['lost_privilege'] == 2)
{ $status = ', <b>Полу-администратор</b>'; }
if( $profile_user['lost_privilege'] == 3)
{ $status = ', <b>Администратор</b>'; }
$on_off = (!empty($online[$id])) ? 'online' : 'offline';
echo ikonka_user($profile_user['lost_race'], $on_off).' <span class="yellow1 bold">'.$profile_user['lost_login'].''. $status.'</span><br/>';
if ($profile_user['lost_town'] > 0) {
$profile_town = cache_town($profile_user['lost_town']);
$profile_town_other = explode(':', $profile_user['lost_town_other']);
echo '<span class="yellow1"><img src="/images/town/race_'.$profile_town['lost_race'].'.png" alt=""/>
<a class="yellow1 bold" href="/town?id='.$profile_town['lost_id'].'">'.$profile_town['lost_name'].'</a>,
'.town_users_zvanie($profile_town_other[0]).'</span><br/>';
}
echo '<span class="yellow1">'.$name_race[$profile_user['lost_race']].', <span class="bold">'.$profile_user['lost_level'].'</span> уровень</span>';
$wear_item = users_wear_item($profile_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($profile_user['lost_avatar'])) ? 'avatars/users/'.$profile_user['lost_avatar'].'' : $profile_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>
<?php
if ($profile_user['lost_blessing'] > 0 ) {
$blessing = SetBlessing($profile_user['lost_blessing']);
if ($profile_user['lost_blessing_time'] > (time() + (3600 * 24))) {
$time1 = (int)(($profile_user['lost_blessing_time'] - time()) / (3600 * 24));
$time_1 = (int)($time1 * (3600 * 24) + time());
$time2 = $profile_user['lost_blessing_time'] - $time_1;
$time2 = date("$time1 д. Hч. iм. sс.", mktime(0, 0, $time2));
} else {
$time2 = $profile_user['lost_blessing_time'] - time();
$time2 = date("Hч. iм. sс.", mktime(0, 0, $time2));
}
echo '<div class="nf2 small p5 mt5 cntr mlra">';
echo '<div class="mb2">
<table>
<td>
<img width="30" height="30" src="/images/'.$blessing['image'].'">
</td>
<td class="small left" valign="top">
<span class="ml2"><span class="yellow1 small">'.$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>
<div class="nf2 small p5 mb5 mlra">
<div class="ml5 mr5">
<a class="bl p5 block odd" href="/equipment?id=<?php echo $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="/ank?id=<?php echo $id; ?>">
<span class="small yellow1"><img src="/images/icons/forum_topic.png"> Анкета игрока</span> <span class="lngreen"></span>
</a>
</div>
<div class="ml5 mr5">
<a class="bl p5 block" href="/mail/create?id=<?php echo $id; ?>">
<span class="small yellow1"><img src="/images/icons/mail.png"> Отправить почту</span> <span class="lngreen"></span>
</a>
</div>
<?php if (isset($list) && $list != 'contact'): ?>
<div class="ml5 mr5">
<a class="bl p5 block odd" href="/user?id=<?php echo $id; ?>&go=contact">
<span class="small yellow1"><img src="/images/icons/arena.gif"> В контакт-лист</span>
</a>
</div>
<?php endif; ?>
<?php if (isset($list) && $list != 'ignore'): ?>
<div class="ml5 mr5">
<a class="bl p5 block odd" href="/user?id=<?php echo $id; ?>&go=ignore">
<span class="small yellow1"><img src="/images/icons/arena.gif"> В игнор-лист</span>
</a>
</div>
<?php endif; ?>
<?php
if ($user['lost_town'] > 0 AND $profile_user['lost_level'] >= $create_level) {
if ($town_other[0] < 3 AND $town_other[0] >= 0 AND $profile_user['lost_town'] == 0 AND $profile_user['lost_race'] == $user_town['lost_race'] AND empty($priglashenie)) {
echo '<div class="ml5 mr5">
<a class="bl p5 block odd" href="/user?id='.$id.'&go=gorod">
<span class="small yellow1"><img src="/images/icons/1.gif"> Пригласить в город</span> <span class="lngreen"></span>
</a>
</div>';
}
}
?>
</div>
<?php if ($profile_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.'">'.$profile_user['lost_params_strlen']; ?></span><br/>
<img src="/images/icons/heatpoints.png"> <span class="white">Здоровье: </span><span class="<?php echo $colorr.'">'.$profile_user['lost_params_heatpoints']; ?></span><br/>
<img src="/images/icons/protection.png"> <span class="white">Защита: </span><span class="<?php echo $colorr.'">'.$profile_user['lost_params_protection']; ?></span><br/>
<img src="/images/icons/1.gif"> <span class="white">Сумма: </span><span class="<?php echo $colorr.'">'.$profile_user['lost_params_summa']; ?></span>
<?php
if ($profile_user['lost_town_altar'] > 0) {
echo '<br/><img src="/images/icons/1.gif"> <a class="white" href="/town/altar?id='.$profile_user['lost_town'].'">Алтарь</a>: <span class="'.$colorr.'">+'.$profile_user['lost_town_altar'].'%</span>';
}
?>
</div>
<?php
$rating = update_rating_user('strlen', 0);
$strlen = array_search($profile_user['lost_id'], $rating);
if(!$strlen) { $strlen = '1000+'; }
$rating1 = update_rating_user('heatpoints', 0);
$heatpoints = array_search($profile_user['lost_id'], $rating1);
if(!$heatpoints) { $heatpoints = '1000+'; }
$rating2 = update_rating_user('protection', 0);
$protection = array_search($profile_user['lost_id'], $rating2);
if(!$protection) { $protection = '1000+'; }
$rating3 = update_rating_user('summa', 0);
$summa = array_search($profile_user['lost_id'], $rating3);
if(!$summa) { $summa = '1000+'; }
?>
<div class="hr p5"></div>
<div class="mt5 small">
<?php echo ($user['lost_level'] >= $profile_user['lost_level']) ? '<img src="/images/icons/1.gif"> <span class="white">Опыт: <span class="yellow1">'.nmb_2($profile_exp[0]).' / '.nmb_2($cache_level_nex1['lost_exp']).'</span></span><br/>' : ''; ?>
<?php $expllp = explode(' ', $profile_user['lost_other']); echo (empty($online[$id]) ? '<img src="/images/icons/1.gif"> <span class="white">Посл. вход: </span><span class="yellow1">'.rdate("d M H:i", $expllp[1]).'</span><br/>' : '' ); ?>
<?php echo ($id <= 500) ? '<img width="13" height="13" src="/images/testers.png"><span class="yellow1"> Почётный бета-тестер</span><br/>' : '';
echo ($id <= 2300) ? '<img width="13" height="13" src="/images/testers.png"><span class="yellow1"> ДР любимой игры</span><br/>' : '';
?>
</div>
<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
echo ($user['lost_privilege'] > 0 AND $user['lost_privilege'] < 3) ? '
<div class="nf2 small p5 mt10 mb5 mlra">
<div class="small p5 mb5 yellow1 cntr">Управление персонажом</div>
<div class="ml5 mr5"><a class="sndr bl" href="/element/moder/user?id='.$id.'">
<img src="/images/icons/1.gif"> <span class="yellow1">Управление персонажом</span>
</a></div>
<div class="ml5 mr5"><a class="sndr bl" href="/ban/list?id='.$id.'">
<img src="/images/icons/1.gif"> <span class="yellow1">История банов ('.mysql_result(mysql_query("SELECT COUNT(`lost_id`) FROM `element_ban_list` WHERE `lost_user` = '$id'"), 0).')</span>
</a></div>
</div>' : '';
echo ($user['lost_privilege'] == 3) ? '
<div class="nf2 small p5 mt10 mb5 mlra">
<div class="small p5 mb5 yellow1 cntr">Управление персонажом</div>
<div class="ml5 mr5"><a class="sndr bl" href="/element/admin/user?id='.$id.'">
<img src="/images/icons/1.gif"> <span class="yellow1">Управление персонажом</span>
</a></div>
<div class="ml5 mr5"><a class="sndr bl" href="/basket?id='.$id.'">
<img src="/images/icons/1.gif"> <span class="yellow1">Корзина ( вещи )</span>
</a></div>
<div class="ml5 mr5"><a class="sndr bl" href="/ban/list?id='.$id.'">
<img src="/images/icons/1.gif"> <span class="yellow1">История банов ('.mysql_result(mysql_query("SELECT COUNT(`lost_id`) FROM `element_ban_list` WHERE `lost_user` = '$id'"), 0).')</span>
</a></div>
<div class="ml5 mr5"><a class="sndr bl" href="/element/admin/mail?id='.$id.'">
<img src="/images/icons/mail.png"> <span class="yellow1">Почта "'.$profile_user['lost_login'].'"</span>
</a></div>
</div>' : '';
?>
</div>
</div>