Вход Регистрация
Файл: slando.icu/modules/profile/index.php
Строк: 167
<?php
require '../../system/func_for_game2.inc.php';
$sledlvl=num($opitkl+$opitlvl);
if(
$user['opit']<1000){$opit=$user['opit'];}elseif($user['opit']>999 and $user['opit']<999999){$opit=''.round($user['opit']/1000,2).' К';}
elseif(
$user['opit']>999999){$opit=''.round($user['opit']/1000000,2).' М';}
if(
$sledlvl<1000){$opitsled=$sledlvl;}elseif($sledlvl>999 and $sledlvl<999999){$opitsled=''.round($sledlvl/1000,2).' К';}
elseif(
$sledlvl>999999){$opitsled=''.round($sledlvl/1000000,2).' М';}

$sett=mysqli_fetch_assoc(mysqli_query($link,"SELECT * FROM `settings`"));
if(
$sett['bontime']>date("y-m-d",$time)){$piast='<span style="color:#00D6E5">+'.$sett['bon'].'%</span>';}else{$piast='';}


if (
$user['clan'] != "0"
{
$clan=mysqli_fetch_array(mysqli_query($link,"SELECT id,name FROM `clans` WHERE `id`='".num($user['clan'])."'"));
if(
$user['clan_zvanie']==5){$zvanie='<span style="color:#00D6E5">Капитан</span>';}elseif($user['clan_zvanie']==4){$zvanie='<span style="color:#C19E00">Первый помощник</span>';}
elseif(
$user['clan_zvanie']==3){$zvanie='<span style="color:#709900">Штурман</span>';}
elseif(
$user['clan_zvanie']==2){$zvanie='<span style="color:#6270C4">Шкипер</span>';}elseif($user['clan_zvanie']==1){$zvanie='<span style="color:#C45800">Юнга</span>';}

$clan='<div>Флот:<br/> <a href="/flot/view?id='.num($clan['id']).'"><span class="clrt1">'.vivod($clan['name']).'</span></a><br/>'.$zvanie.'</div>';
} else {
$clan='';}
$logsend=$user['adm'];$logadm=$user['login'];
$name color_nick($user['login']);

/*** выводим верх страницы ***/
head2('Профиль');
$in_game time() -70;
$log=mysqli_query($link,"SELECT * FROM `logi_user` WHERE  `id_user`= '".num($user['id'])."' and `date` >= '$in_game' and `tip`='2' order by `id` desc   LIMIT 3 ");
if(
mysqli_num_rows($log)>0){
echo
'<div class="block5">';
while(
$r mysqli_fetch_array($log))
{
echo
'<div class="clrt11">'.$r['log'].'</div>';
}
echo
'</div>';
}

if(
$user['sex']==0){$user['sex']=1;}
echo
'<div class="block1 center">
<div>'
.sex($user['sex']).''.$name.' '.$user['lvl'].' ур.</div>
'
.$clan.'';
if(
$user['avatar']==100){
echo
'<img width="40%" style="margin:5px 0px 15px 0px;" src="/images/icon/avatar/'.md5(md5($user['id'].$user['datereg'])).'.png" alt="" />';
}else{
echo
'<img width="40%" style="margin:5px 0px 15px 0px;" src="/images/icon/avatar/'.$user['sex'].'/'.$user['avatar'].'.png" alt="" />';
}
echo
'<div class="razriv7"></div>
<table style="margin:10px 0px 5px 0px;text-align:center;">
<tr>
<td style="width:33%;padding:10px 0px 10px 0px;vertical-align:top;"><a class="clrt3" href="/profile/sunduk"><img width="90%" src="/images/101.png" alt="" /><br/>Сундук</a></td>
<td style="width:33%;padding:10px 0px 10px 0px;vertical-align:top;"><a class="clrt3" href="/msg"><img width="90%" src="/images/99.png" alt="" /><br/>Почта</a></td>
<td style="width:33%;padding:10px 0px 10px 0px;vertical-align:top;"><a class="clrt3" href="/profile/stat"><img width="90%" src="/images/71.png" alt="" /><br/>Улучшения</a></td>
</tr>
<tr>
<td style="width:33%;padding:10px 0px 10px 0px;vertical-align:top;"><a class="clrt3" href="/profile/rig"><img width="90%" src="/images/104.png" alt="" /><br/>Снаряжение</a></td>
<td style="width:33%;padding:10px 0px 10px 0px;vertical-align:top;"><a class="clrt3" href="/profile/prog"><img width="90%" src="/images/105.png" alt="" /><br/>Прогресс</a></td>
<td style="width:33%;padding:10px 0px 10px 0px;vertical-align:top;"><a class="clrt3" href="/profile/maps"><img width="90%" src="/images/103.png" alt="" /><br/>Карты</a></td>
</tr>
<tr>
<td style="width:33%;padding:10px 0px 10px 0px;vertical-align:top;"><a class="clrt3" href="/profile/arts"><img width="90%" src="/images/81.png" alt="" /><br/>Артефакты</a></td>
<td style="width:33%;padding:10px 0px 10px 0px;vertical-align:top;"><a class="clrt3" href="/profile/gold"><img width="90%" src="/images/82.png" alt="" /><br/>Пиастры '
.$piast.'</a></td>
<td style="width:33%;padding:10px 0px 10px 0px;vertical-align:top;"><a class="clrt3" href="/profile/sett"><img width="90%" src="/images/102.png" alt="" /><br/>Настройки</a></td>

</tr>
</table>
<div class="razriv7"></div>
<div class="block4 left">
<div class="clrt7 left">Пушка: '
.$uron_push.'</div>
<div class="clrt7 left">Гарпуны: '
.$uron_garpun.'</div>
<div class="clrt7 left">Мортиры: '
.$uron_mortira.'</div>
<div class="clrt7 left">Точность: '
.$toch.'</div>
<div class="clrt7 left">Книппели: '
.$uron_knippeli.'</div>
<div class="clrt7 left">Атака героя: '
.$att_user.'</div>
<div class="clrt7 left">Атака экипажа: '
.$att_ekipazh.'</div>
<div class="clrt7 left">Атака пистолета: '
.$uron_pistol.'</div>
<div class="clrt7 left">Маневренность: '
.$manevr.'</div>
<div class="clrt7 left">Здоровье героя: '
.$hp_user.'</div>
<div class="clrt7 left">Здоровье экипажа: '
.$hp_ekipazh.'</div>



</div>
<div class="razriv7"></div>
<div class="block4 left">
<div class="clrt1">Ресурсы:</div>
<span class="res"><img  src="/images/24.png" alt="Пиастры" />'
.$user['gold'].'</span> <span class="res"><img  src="/images/3.png" alt="Серебро" />'.$user['money'].'</span> <span class="res"><img  src="/images/2.png" alt="Дерево" />'.$user['lumber'].'</span> 
<span class="res"><img  src="/images/4.png" alt="Ткань" />'
.$user['tkani'].'</span> <span class="res"><img  src="/images/5.png" alt="Ром" />'.$user['rom'].'</span> 
<span class="res"><img  src="/images/6.png" alt="Железо" />'
.$user['steel'].'</span><br/>';
if(
$user['kozha_akula_bik']>0){echo'<span class="res"><img src="/images/33.png" alt="Кость акулы бык" />'.$user['kozha_akula_bik'].'</span> ';}
if(
$user['kozha_g_kit']>0){echo'<span class="res"><img src="/images/29.png" alt="Кожа горбатого кита" />'.$user['kozha_g_kit'].'</span> ';}
if(
$user['kost_bel_akula']>0){echo'<span class="res"><img src="/images/30.png" alt="Кость белой акулы" />'.$user['kost_bel_akula'].'</span> ';}
if(
$user['kozha_kosatka']>0){echo'<span class="res"><img src="/images/32.png" alt="Кожа косатки" />'.$user['kozha_kosatka'].'</span> ';}
if(
$user['kost_tigr_akula']>0){echo'<span class="res"><img src="/images/37.png" alt="Кость тигровой акулы" />'.$user['kost_tigr_akula'].'</span> ';}
if(
$user['kost_kit_akula']>0){echo'<span class="res"><img src="/images/38.png" alt="Кость китовой акулы" />'.$user['kost_kit_akula'].'</span> ';}
if(
$user['kost_rif_akula']>0){echo'<span class="res"><img src="/images/39.png" alt="Кость рифовой акулы" />'.$user['kost_rif_akula'].'</span> ';}
if(
$user['kost_akul_molot']>0){echo'<span class="res"><img src="/images/31.png" alt="Кость акулы молот" />'.$user['kost_akul_molot'].'</span> ';}
if(
$user['kozha_b_kit']>0){echo'<span class="res"><img src="/images/34.png" alt="Кожа белого кита" />'.$user['kozha_b_kit'].'</span> ';}

echo
'<div class="clrt7 left">Свободное место: <b>'.$sv_mesto_trum.'</b></div>
<div class="clrt7 left">Опыт: '
.$opit.'/'.$opitsled.' ('.round($procl,1).'%)</div>
<div class="clrt7 left">Дата регистрации: '
.date("d.m.Y",num($user['datereg'])).'</div>';
if(
$vips['id']>0){echo '<div class="clrt0">VIP :'.difference($vips['time']-time() ).' </div>';}

echo
'</div>';

foot();
?>
Онлайн: 2
Реклама