Файл: public_html/user.php
Строк: 867
<style>
.fl{float:left}.fr{float:right}.bl{display:block}.ibl{display:inline-block}.vt{vertical-align:top}.nwr{white-space:nowrap}.bw{word-wrap:break-word}.head{background-color:#141111;padding:3px;font-size:95%}
.clb{clear:both}
.item50{width:52px;height:52px;background-repeat:no-repeat;background-position:50% 50%;margin-bottom:5px}
.sh8{text-shadow:0 0 1px black,0 0 1px black,0 0 1px black,0 0 1px black,0 0 1px black,0 0 1px black,0 0 1px black,0 0 1px black}
.p_dummy{display:inline-block;width:120px;height:160px}.p_dummy .brd{width:120px;height:160px;background-image:url('http://tiwar.ru/images/icon/pd_brd.png');background-repeat:no-repeat}
.player_table{width:100%;max-width:320px;padding:0;margin:0 auto;border:0;text-align:center}.player_table td{vertical-align:middle}
it_brd{display:block;width:50px;height:50px;padding:1px;background-repeat:no-repeat}.it_brd.q0_0{color:#9b8869;background-image:url('http://tiwar.ru/images/icon/bg-ibrd_q0_0.png')}.it_brd.q1_0{color:#9b8869;background-image:url('http://tiwar.ru/images/icon/bg-ibrd_q1_0.png')}.it_brd.q2_0{color:#0bb00b;background-image:url('http://tiwar.ru/images/icon/bg-ibrd_q2_0.png')}.it_brd.q3_0{color:#09688b;background-image:url('http://tiwar.ru/images/icon/bg-ibrd_q3_0.png')}.it_brd.q4_0{color:#990cd3;background-image:url('http://tiwar.ru/images/icon/bg-ibrd_q4_0.png')}.it_brd.q5_0{color:#e0700c;background-image:url('http://tiwar.ru/images/icon/bg-ibrd_q5_0.png')}.it_brd.q6_0{color:#df2f00;background-image:url('http://tiwar.ru/images/icon/bg-ibrd_q6_0.png')}.it_stat1{display:block;height:15px;margin:-5px -3px 0 -3px;text-align:right;font-weight:bold;font-size:10px;color:#9c9}.it_stat2{display:block;margin-top:30px;font-weight:bold;font-size:10px}.it_stars{height:9px;padding-right:1px;font-size:0;text-align:center}.it_stars img{margin-right:-1px}.ch_slot{display:inline-block;padding:5px 0}.ch_slot.actv{background-image:url('http://tiwar.ru/images/starsquest/bg-chest-light.png');background-repeat:no-repeat;background-size:contain;background-position:50% 50%}.ch_brd{display:inline-block;margin:2px}.ch_brd.curr{background-image:url('http://tiwar.ru/images/starsquest/brd-chest.png');background-repeat:no-repeat;background-size:100% 100%}.iwm120{width:100%;max-width:120px}.ich_key{vertical-align:top;margin-top:-9px}
</style>
<?
$_SESSION['arena'] = 0;
include './system/common.php';
include './system/functions.php';
include './system/user.php';
if(!$user) {
header('location: /');
exit;
}
$id = _string(_num($_GET['id']));
if($id) {
$i = mysql_query('SELECT * FROM `users` WHERE `id` = "'.$id.'"');
$i = mysql_fetch_array($i);
if(!$i) {
header('location: /user/');
exit;
}
}
else
{
$i = $user;
}
$title = $i['login'];
include './system/h.php';
$w_1 = mysql_query('SELECT * FROM `inv` WHERE `user` = "'.$i['id'].'" AND `id` = "'.$i['w_1'].'"');
$w_1 = mysql_fetch_array($w_1);
if(!$w_1) {
$w_1['item'] = 0;
}
$w_1_item = mysql_query('SELECT * FROM `items` WHERE `id` = "'.$w_1['item'].'"');
$w_1_item = mysql_fetch_array($w_1_item);
$w_2 = mysql_query('SELECT * FROM `inv` WHERE `user` = "'.$i['id'].'" AND `id` = "'.$i['w_2'].'"');
$w_2 = mysql_fetch_array($w_2);
if(!$w_2) {
$w_2['item'] = 0;
}
$w_2_item = mysql_query('SELECT * FROM `items` WHERE `id` = "'.$w_2['item'].'"');
$w_2_item = mysql_fetch_array($w_2_item);
$w_3 = mysql_query('SELECT * FROM `inv` WHERE `user` = "'.$i['id'].'" AND `id` = "'.$i['w_3'].'"');
$w_3 = mysql_fetch_array($w_3);
if(!$w_3) {
$w_3['item'] = 0;
}
$w_3_item = mysql_query('SELECT * FROM `items` WHERE `id` = "'.$w_3['item'].'"');
$w_3_item = mysql_fetch_array($w_3_item);
$w_4 = mysql_query('SELECT * FROM `inv` WHERE `user` = "'.$i['id'].'" AND `id` = "'.$i['w_4'].'"');
$w_4 = mysql_fetch_array($w_4);
if(!$w_4) {
$w_4['item'] = 0;
}
$w_4_item = mysql_query('SELECT * FROM `items` WHERE `id` = "'.$w_4['item'].'"');
$w_4_item = mysql_fetch_array($w_4_item);
$w_5 = mysql_query('SELECT * FROM `inv` WHERE `user` = "'.$i['id'].'" AND `id` = "'.$i['w_5'].'"');
$w_5 = mysql_fetch_array($w_5);
if(!$w_5) {
$w_5['item'] = 0;
}
$w_5_item = mysql_query('SELECT * FROM `items` WHERE `id` = "'.$w_5['item'].'"');
$w_5_item = mysql_fetch_array($w_5_item);
$w_6 = mysql_query('SELECT * FROM `inv` WHERE `user` = "'.$i['id'].'" AND `id` = "'.$i['w_6'].'"');
$w_6 = mysql_fetch_array($w_6);
if(!$w_6) {
$w_6['item'] = 0;
}
$w_6_item = mysql_query('SELECT * FROM `items` WHERE `id` = "'.$w_6['item'].'"');
$w_6_item = mysql_fetch_array($w_6_item);
$w_7 = mysql_query('SELECT * FROM `inv` WHERE `user` = "'.$i['id'].'" AND `id` = "'.$i['w_7'].'"');
$w_7 = mysql_fetch_array($w_7);
if(!$w_7) {
$w_7['item'] = 0;
}
$w_7_item = mysql_query('SELECT * FROM `items` WHERE `id` = "'.$w_7['item'].'"');
$w_7_item = mysql_fetch_array($w_7_item);
$w_8 = mysql_query('SELECT * FROM `inv` WHERE `user` = "'.$i['id'].'" AND `id` = "'.$i['w_8'].'"');
$w_8 = mysql_fetch_array($w_8);
if(!$w_8) {
$w_8['item'] = 0;
}
$w_8_item = mysql_query('SELECT * FROM `items` WHERE `id` = "'.$w_8['item'].'"');
$w_8_item = mysql_fetch_array($w_8_item);
if($_GET['show'] == 'might') {
?>
<div class='menuList'><li><a href='/user/<?=$i[id]?>'><img src='/images/icon/arrow_b.png' alt=''/>Назад</a></li></div><div class='mini-line'></div><div class='block_zero'>
<table cellpadding='0' cellspacing='0'>
<tr>
<td><a href='/avatar.php/?id=<?=$i['id']?>'><img src='/manekenImage/4/<?=$i['sex']?>/<?=$w_1['item']?>/<?=$w_2['item']?>/<?=$w_3['item']?>/<?=$w_4['item']?>/<?=$w_5['item']?>/<?=$w_6['item']?>/<?=$w_7['item']?>/<?=$w_8['item']?>/' alt='*'/ style='center'>
</td></a>
<td valign='top' style='padding: 5px 0px 0px 5px;'>
<img src='/images/icon/str.png' alt='*'/> Сила: <?=$i['str']?><br/>
<img src='/images/icon/vit.png' alt='*'/> Жизнь: <?=$i['vit']?><br/>
<img src='/images/icon/agi.png' alt='*'/> Удача: <?=$i['agi']?><br/>
<img src='/images/icon/def.png' alt='*'/> Броня: <?=$i['def']?><br/>
<img src='/images/icon/mana.png' alt='*'/> Энергия: <?=$i['mana']?> </td></table><br/>
<?
}else{
$i_clan_memb = mysql_query('SELECT * FROM `clan_memb` WHERE `user` = "'.$i['id'].'"');
$i_clan_memb = mysql_fetch_array($i_clan_memb);
if(!$i_clan_memb) {
if($clan && $clan_memb['rank'] >= $clan['rank_for_invite'] && $clan['r'] == $i['r'] && $_GET['clan_invite'] == true) {
if(mysql_result(mysql_query('SELECT COUNT(`id`) FROM `clan_invite` WHERE `user` = "'.$i['id'].'" AND `clan` = "'.$clan['id'].'"'),0) == 0) {
mysql_query('INSERT INTO `clan_invite` (`clan`,
`user`) VALUES ("'.$clan['id'].'",
"'.$i['id'].'")');
?>
<div class='block_zero' align='center'><img src='/images/icon/ok.png' alt='*'/> <font color='#30c030'>Приглашение отправлено!</font></div><div class='line'></div>
<?
}
else
{
}
}
}
?>
<?
$i_prem = mysql_fetch_assoc(mysql_query("SELECT * FROM `alex_premium` WHERE `user_id` = ".$i[id].""));
If($i[id]==$user[id]){
if($prem['time'] > time()){
echo "<center/><img class='icon' src='/images/icon/premium.png'> <span class='nowrap><img class='icon' src='/images/icon/premium.png'> <a href='/premium.php' class='lwhite'>Премиум-аккаунт: </a></span>".(tl($prem['time'] - time()))." </center></br>";
}
}else{
if($i_prem['time'] > time()){
echo "<center/><img class='icon' src='/images/icon/premium.png'> <span class='nowrap><img class='icon' src='/images/icon/premium.png'> <a href='/premium.php' class='lwhite'>Премиум аккаунт </a></span></center></br>";
}
}
?>
<div class='line'></div>
<div class='content'>
<font color='<?=$user['status_color']?>'><?=smiles($i['status'])?></font> <?php if($i['id'] == $user['id']) echo "<a href='/status.php'>[изменить]</a>"; ?>
<div class='line'></div>
</div>
<center>
<img src='/images/icon/race/<?=$i['r'].($i['online'] > (time() - 300) ? '':'-off')?>.png' alt='*'/> <b><?=$i['login']?></b> <img src='/images/icon/level.png' alt='*'/> <?=$i['level']?> ур, <?=($i['r'] == 0 ? 'Асура':'Борея')?></center>
<?
if($i_clan_memb) {
$i_clan = mysql_query('SELECT * FROM `clans` WHERE `id` = "'.$i_clan_memb['clan'].'"');
$i_clan = mysql_fetch_array($i_clan);
switch($i_clan_memb['rank']) {
case 0:
$rank = 'Новобранец';
break;
case 1:
$rank = 'Боец';
break;
case 2:
$rank = 'Офицер';
break;
case 3:
$rank = 'Генерал';
break;
case 4:
$rank = '<font color='#95b9c7'>Зам. лидера</font>';
break;
case 5:
$rank = '<font color='#3c3'>Лидер клана</font>';
break;
}
?> <center>
<img src='/images/icon/clan/<?=$i_clan['r']?>.png' alt='*'/> <a href='/clan/<?=$i_clan['id']?>/'><?=$i_clan['name']?></a>, <?=$rank?></center>
<?
$zags = mysql_query('SELECT * FROM `zags` WHERE `id_0` = "'.$i['id'].'" AND `status` = "da" OR `id_1` = "'.$i['id'].'" AND `status` = "da"');
$zags = mysql_fetch_array($zags);
$w_zags = mysql_query('SELECT * FROM `users` WHERE `id` = "'.$zags['id_1'].'"');
$w_zags = mysql_fetch_array($w_zags);
$m_zags = mysql_query('SELECT * FROM `users` WHERE `id` = "'.$zags['id_0'].'"');
$m_zags = mysql_fetch_array($m_zags);
?>
<?
if($zags){
if($i['sex'] == 0){
echo "<img src='/images/icon/zags.png' width='16px' height='16px' alt='*'/> Женат на <a href='/user/$w_zags[id]/'>$w_zags[login]</a>
";
}else{
echo "<img src='/images/icon/zags.png' width='16px' height='16px' alt='*'/> Замужем за <a href='/user/$m_zags[id]/'>$m_zags[login]</a>
";
}
}
?>
<?
}
$img = mysql_fetch_assoc(mysql_query("SELECT * FROM `set` WHERE `usr` = '$i[login]' LIMIT 1"));
?>
<center>
<?php
$stati = $i['str'] + $i['vit'] + $i['agi'] + $i['def'];
?><a class='white' href='?show=might'>Мощь: <img src='/images/icon/2hit.png' alt=''/> <span class='bold'><?=$stati?></span></a>
</center>
<!-------!>
<?php
$inv1 = mysql_fetch_assoc(mysql_query('SELECT * FROM `inv` WHERE `id` = "'.$i['w_1'].'"'));
$item1 = mysql_fetch_assoc(mysql_query('SELECT * FROM `items` WHERE `id` = "'.$inv1['item'].'"'));
$inv2 = mysql_fetch_assoc(mysql_query('SELECT * FROM `inv` WHERE `id` = "'.$i['w_2'].'"'));
$item2 = mysql_fetch_assoc(mysql_query('SELECT * FROM `items` WHERE `id` = "'.$inv2['item'].'"'));
//3
$inv3 = mysql_fetch_assoc(mysql_query('SELECT * FROM `inv` WHERE `id` = "'.$i['w_3'].'"'));
$item3 = mysql_fetch_assoc(mysql_query('SELECT * FROM `items` WHERE `id` = "'.$inv3['item'].'"'));
//4
$inv4 = mysql_fetch_assoc(mysql_query('SELECT * FROM `inv` WHERE `id` = "'.$i['w_4'].'"'));
$item4 = mysql_fetch_assoc(mysql_query('SELECT * FROM `items` WHERE `id` = "'.$inv4['item'].'"'));
//5
//5
$inv5 = mysql_fetch_assoc(mysql_query('SELECT * FROM `inv` WHERE `id` = "'.$i['w_5'].'"'));
$item5 = mysql_fetch_assoc(mysql_query('SELECT * FROM `items` WHERE `id` = "'.$inv5['item'].'"'));
//6
$inv6 = mysql_fetch_assoc(mysql_query('SELECT * FROM `inv` WHERE `id` = "'.$i['w_6'].'"'));
$item6 = mysql_fetch_assoc(mysql_query('SELECT * FROM `items` WHERE `id` = "'.$inv6['item'].'"'));
//7
$inv7 = mysql_fetch_assoc(mysql_query('SELECT * FROM `inv` WHERE `id` = "'.$i['w_7'].'"'));
$item7 = mysql_fetch_assoc(mysql_query('SELECT * FROM `items` WHERE `id` = "'.$inv7['item'].'"'));
//8
$inv8 = mysql_fetch_assoc(mysql_query('SELECT * FROM `inv` WHERE `id` = "'.$i['w_8'].'"'));
$item8 = mysql_fetch_assoc(mysql_query('SELECT * FROM `items` WHERE `id` = "'.$inv8['item'].'"'));
switch($item1['quality']) {
case 0:
$all_bonus1 = 0;
break;
case 1:
$all_bonus1 = 5;
break;
case 2:
$all_bonus1 = 10;
break;
case 3:
$all_bonus1 = 15;
break;
case 4:
$all_bonus1 = 20;
break;
case 5:
$all_bonus1 = 50;
break;
case 6:
$all_bonus1= 65;
break;
}
//2
switch($item2['quality']) {
case 0:
$all_bonus2 = 0;
break;
case 1:
$all_bonus2 = 5;
break;
case 2:
$all_bonus2 = 10;
break;
case 3:
$all_bonus2 = 15;
break;
case 4:
$all_bonus2 = 20;
break;
case 5:
$all_bonus2 = 50;
break;
case 6:
$all_bonus2= 65;
break;
}
switch($item3['quality']) {
case 0:
$all_bonus3 = 0;
break;
case 1:
$all_bonus3 = 5;
break;
case 2:
$all_bonus3 = 10;
break;
case 3:
$all_bonus3 = 15;
break;
case 4:
$all_bonus3 = 20;
break;
case 5:
$all_bonus3 = 50;
break;
case 6:
$all_bonus3= 65;
break;
}
switch($item4['quality']) {
case 0:
$all_bonus4 = 0;
break;
case 1:
$all_bonus4 = 5;
break;
case 2:
$all_bonus4 = 10;
break;
case 3:
$all_bonus4 = 15;
break;
case 4:
$all_bonus4 = 20;
break;
case 5:
$all_bonus4 = 50;
break;
case 6:
$all_bonus4= 65;
break;
}
switch($item5['quality']) {
case 0:
$all_bonus5 = 0;
break;
case 1:
$all_bonus5 = 5;
break;
case 2:
$all_bonus5 = 10;
break;
case 3:
$all_bonus5 = 15;
break;
case 4:
$all_bonus5 = 20;
break;
case 5:
$all_bonus5 = 50;
break;
case 6:
$all_bonus5= 65;
break;
}
switch($item6['quality']) {
case 0:
$all_bonus6 = 0;
break;
case 1:
$all_bonus6 = 5;
break;
case 2:
$all_bonus6 = 10;
break;
case 3:
$all_bonus6= 15;
break;
case 4:
$all_bonus6= 20;
break;
case 5:
$all_bonus6 = 50;
break;
case 6:
$all_bonus6= 65;
break;
}
switch($item7['quality']) {
case 0:
$all_bonus7 = 0;
break;
case 1:
$all_bonus7 = 5;
break;
case 2:
$all_bonus7 = 10;
break;
case 3:
$all_bonus7 = 15;
break;
case 4:
$all_bonus7 = 20;
break;
case 5:
$all_bonus7 = 50;
break;
case 6:
$all_bonus7= 65;
break;
}
switch($item8['quality']) {
case 0:
$all_bonus8 = 0;
break;
case 1:
$all_bonus8 = 5;
break;
case 2:
$all_bonus8 = 10;
break;
case 3:
$all_bonus8 = 15;
break;
case 4:
$all_bonus8 = 20;
break;
case 5:
$all_bonus8 = 50;
break;
case 6:
$all_bonus8= 65;
break;
}
?>
<div class='block_zero'><table class='player_table'><tbody><tr><td><a href='/item/<?=$inv1[id]?>'><div class='item50 ibl' style='background-image:url("/itemImage.php?id=<?=$inv1['item']?>&smith=<?=$inv1['smith']?>/");margin-right:7px;'><div class='it_stat1'><div class='fl'><?=($inv1[smith] ? "+ ".$inv1[smith]."":null)?></div><?=($inv1[rune] ? "<img src='/images/icon/quality/".$inv1[rune].".png' alt=''/>":null)?></div><div class='it_stat2 cntr'><?=($inv1[bonus]
? " ".$inv1[bonus]."/".$all_bonus1."":null)?></div></div></div></a></td><td colspan='2' rowspan='4'><a href='/avatar.php?id=<?=$i[id]?>'><div class='p_dummy' style='background-image:url("/manekenImage/4/<?=$i['sex']?>/<?=$w_1['item']?>/<?=$w_2['item']?>/<?=$w_3['item']?>/<?=$w_4['item']?>/<?=$w_5['item']?>/<?=$w_6['item']?>/<?=$w_7['item']?>/<?=$w_8['item']?>/");'><div class='brd'></div></div></a></a></td><td><a href='/item/<?=$inv2[id]?>'><div class='item50 ibl' style='background-image:url("/itemImage.php?id=<?=$inv2['item']?>&smith=<?=$inv2['smith']?>/");margin-right:5px;'><div class='it_stat1'><div class='fl'><?=($inv2[smith] ? "+ ".$inv2[smith]."":null)?></div><?=($inv2[rune] ? "<img src='/images/icon/quality/".$inv2[rune].".png' alt=''/>":null)?></div><div class='clb'></div><div class='it_stat2 cntr'><?=($inv2[bonus]
? " ".$inv2[bonus]."/".$all_bonus2."":null)?></div></div></div></a></td></tr><tr><td><a href='/item/<?=$inv3[id]?>'><div class='item50 ibl' style='background-image:url("/itemImage.php?id=<?=$inv3['item']?>&smith=<?=$inv3['smith']?>/");margin-right:5px;'><div class='it_stat1'><div class='fl'><?=($inv3[smith] ? "+ ".$inv3[smith]."":null)?></div><?=($inv3[rune] ? "<img src='/images/icon/quality/".$inv3[rune].".png' alt=''/>":null)?></div><div class='clb'></div><div class='it_stat2 cntr'><?=($inv3[bonus]
? " ".$inv3[bonus]."/".$all_bonus3."":null)?></div></div></div></a></td><td><a href='/item/<?=$inv4[id]?>'><div class='item50 ibl' style='background-image:url("/itemImage.php?id=<?=$inv4['item']?>&smith=<?=$inv4['smith']?>/");margin-right:5px;'><div class='it_stat1'><div class='fl'><?=($inv4[smith] ? "+ ".$inv4[smith]."":null)?></div><?=($inv4[rune] ? "<img src='/images/icon/quality/".$inv4[rune].".png' alt=''/>":null)?></div><div class='clb'></div><div class='it_stat2 cntr'><?=($inv4[bonus]
? " ".$inv4[bonus]."/".$all_bonus4."":null)?></div></div></div></a></td></tr><tr><td><a href='/item/<?=$inv5[id]?>'><div class='item50 ibl' style='background-image:url("/itemImage.php?id=<?=$inv5['item']?>&smith=<?=$inv5['smith']?>/");margin-right:5px;'><div class='it_stat1'><div class='fl'><?=($inv5[smith] ? "+ ".$inv5[smith]."":null)?></div><?=($inv5[rune] ? "<img src='/images/icon/quality/".$inv5[rune].".png' alt=''/>":null)?></div><div class='clb'></div><div class='it_stat2 cntr'><?=($inv5[bonus]
? " ".$inv5[bonus]."/".$all_bonus5."":null)?></div></div></div></a></td><td><a href='/item/<?=$inv6[id]?>'><div class='item50 ibl' style='background-image:url("/itemImage.php?id=<?=$inv6['item']?>&smith=<?=$inv6['smith']?>/");margin-right:5px;'><div class='it_stat1'><div class='fl'><?=($inv6[smith] ? "+ ".$inv6[smith]."":null)?></div><?=($inv6[rune] ? "<img src='/images/icon/quality/".$inv6[rune].".png' alt=''/>":null)?></div><div class='clb'></div><div class='it_stat2 cntr'><?=($inv6[bonus]
? " ".$inv6[bonus]."/".$all_bonus6."":null)?></div></div></div></a></td></tr><tr><td><a href='/item/<?=$inv7[id]?>'><div class='item50 ibl' style='background-image:url("/itemImage.php?id=<?=$inv7['item']?>&smith=<?=$inv7['smith']?>/");margin-right:5px;'><div class='it_stat1'><div class='fl'><?=($inv7[smith] ? "+ ".$inv7[smith]."":null)?></div><?=($inv7[rune] ? "<img src='/images/icon/quality/".$inv7[rune].".png' alt=''/>":null)?></div><div class='clb'></div><div class='it_stat2 cntr'><?=($inv7[bonus]
? " ".$inv7[bonus]."/".$all_bonus7."":null)?></div></div></div></a></td><td><a href='/item/<?=$inv8[id]?>'><div class='item50 ibl' style='background-image:url("/itemImage.php?id=<?=$inv8['item']?>&smith=<?=$inv8['smith']?>/");margin-right:5px;'><div class='it_stat1'><div class='fl'><?=($inv8[smith] ? "+ ".$inv8[smith]."":null)?></div><?=($inv8[rune] ? "<img src='/images/icon/quality/".$inv8[rune].".png' alt=''/>":null)?></div><div class='it_stat2 cntr'><?=($inv8[bonus]
? " ".$inv8[bonus]."/".$all_bonus8."":null)?></div></div></div></a></td></tr></tbody></table></div><div class='mini-line'></div>
<!---------!>
<table cellpadding='0' cellspacing='0'>
<tr>
</td>
</tr></table>
</span> <br/>
<?
$all_ability = 0;
if($i['ability_1'] > 0) {
$all_ability += 1;
?>
<img src='/images/ability/1.<?=$i['ability_1_quality']?>.png' width='25px' height='25px' alt='*'/>
<?
}
if($i['ability_2'] > 0) {
$all_ability += 1;
?>
<img src='/images/ability/2.<?=$i['ability_2_quality']?>.png' width='25px' height='25px' alt='*'/>
<?
}
if($i['ability_3'] > 0) {
$all_ability += 1;
?>
<img src='/images/ability/3.<?=$i['ability_3_quality']?>.png' width='25px' height='25px' alt='*'/>
<?
}
if($i['ability_4'] > 0) {
$all_ability += 1;
?>
<img src='/images/ability/4.<?=$i['ability_4_quality']?>.png' width='25px' height='25px' alt='*'/>
<?
}
if($i['ability_5'] > 0) {
$all_ability += 1;
?>
<img src='/images/ability/5.<?=$i['ability_5_quality']?>.png' width='25px' height='25px' alt='*'/>
<?
}
?>
<?
$_seal = array(0=>0, 1=>1, 2=>1, 3=>1, 4=>1, 5=>1, 6=>1, 7=>1, 8=>1, 9=>1, 10=>2, 11=>2, 12=>2, 13=>2, 14=>2, 15=>2, 16=>2, 17=>2, 18=>2, 19=>2, 20=>3, 21=>3, 22=>3, 23=>3, 24=>3, 25=>3, 26=>3, 27=>3, 28=>3, 29=>3, 30=>4, 31=>4, 32=>4, 33=>4, 34=>4, 35=>4, 36=>4, 37=>4, 38=>4, 39=>4, 40=>4, 41=>5, 42=>5, 43=>5, 44=>5, 45=>5, 46=>5, 47=>5, 48=>5, 49=>5, 50=>5, 51=>6, 52=>6, 53=>6, 54=>6, 55=>6, 56=>6, 57=>6, 58=>6, 59=>6, 60=>6, 61=>7,
62=>7,63=>7,64=>7,65=>7,66=>7,67=>7,68=>7,69=>7,70=>8,71=>8,72=>8,73=>8,74=>8,75=>8,76=>8,77=>8,78=>8,79=>8,80=>9,81=>9,82=>9,83=>10,84=>10,85=>10,86=>11,87=>11,88=>11,89=>12,80=>9,90=>12,91=>12,92=>12,93=>13,94=>13,95=>13,96=>14,97=>14,98=>15,99=>16,100=>16);
echo' ';
echo' <center><img src="/images/seal/'.$_seal[$i['seal_1']].'.png">
<img src="/images/seal/'.$_seal[$i['seal_2']].'.png">
<img src="/images/seal/'.$_seal[$i['seal_3']].'.png">
<img src="/images/seal/'.$_seal[$i['seal_4']].'.png"></center>';
echo'';
if ($i['id'] == $user['id']) {
echo' ';
}?>
<div class='mini-line'></div>
<?
$CollectorUserTable = mysql_fetch_array(mysql_query('SELECT * FROM `collector` WHERE `user` = "'.$i['id'].'"'));
if($CollectorUserTable['coll'] >= 6) {
$Sort = 6;
}else $Sort = $CollectorUserTable['coll'];
if(!$CollectorUserTable) {
?>
<?
if($user['id'] == $i['id']) {
?>
<a href='/collector/<?=$i['id']?>/'>
<?
}
?>
<img src='http://tiwar.ru/images/icon/quest.png'> Коллекции:
<?
if($user['id'] == $i['id']) echo '</a>';
?>
<font color='#9C9'>0</font> из <font color='#9C9'>6</font><br />
<font color='#9C9'>+0</font> к параметрам
<div class='mini-line'> </div>
<?
}else{
?>
<div class='mini-line'></div>
<div class='list'>
<a href='/collector/<?=$i['id']?>/'> <img src='http://tiwar.ru/images/icon/quest.png'> Коллекции: </a> <font color='#9C9'><?=$Sort?></font> из <font color='#9C9'>6</font><br />
<font color='#9C9'>+<?=$CollectorUserTable['stats']?></font> к параметрам
</div>
<div class='mini-line'>
<?
}
?>
<?
$equips = 0;
if($i['w_1']) {
$equips++;
}
if($i['w_2']) {
$equips++;
}
if($i['w_3']) {
$equips++;
}
if($i['w_4']) {
$equips++;
}
if($i['w_5']) {
$equips++;
}
if($i['w_6']) {
$equips++;
}
if($i['w_7']) {
$equips++;
}
if($i['w_8']) {
$equips++;
}
?>
<div class='list'>
<a href='/equip/<?=$i['id']?>/'><img src='/images/icon/equip.png' alt='*'/> Снаряжение</a> (<?=$equips?>/8)<br/>
<?
if($i['w_1'] OR $i['w_2'] OR $i['w_3'] OR $i['w_4'] OR $i['w_5'] OR $i['w_6'] OR $i['w_7'] OR $i['w_8']) {
$runes = 0;
if($w_1['rune'] != 0) {
$rune .= '<img src="/images/icon/quality/'.$w_1['rune'].'.png" alt="*"/> ';
$runes ++;
}
if($w_2['rune'] != 0) {
$rune .= '<img src="/images/icon/quality/'.$w_2['rune'].'.png" alt="*"/> ';
$runes ++;
}
if($w_3['rune'] != 0) {
$rune .= '<img src="/images/icon/quality/'.$w_3['rune'].'.png" alt="*"/> ';
$runes ++;
}
if($w_4['rune'] != 0) {
$rune .= '<img src="/images/icon/quality/'.$w_4['rune'].'.png" alt="*"/> ';
$runes ++;
}
if($w_5['rune'] != 0) {
$rune .= '<img src="/images/icon/quality/'.$w_5['rune'].'.png" alt="*"/> ';
$runes ++;
}
if($w_6['rune'] != 0) {
$rune .= '<img src="/images/icon/quality/'.$w_6['rune'].'.png" alt="*"/> ';
$runes ++;
}
if($w_7['rune'] != 0) {
$rune .= '<img src="/images/icon/quality/'.$w_7['rune'].'.png" alt="*"/> ';
$all_runes ++;
}
if($w_8['rune'] != 0) {
$rune .= '<img src="/images/icon/quality/'.$w_8['rune'].'.png" alt="*"/> ';
$runes++;
}
if($runes > 0) {
?>
<img src='/images/icon/rune.png' alt='*'/> Руны: <?=$rune?><br/>
<?
}
$smith = 0;
$bonus = 0;
$all_bonus = 0;
function bonus($_i) {
switch($_i) {
case 0:
$bonus = 0;
break;
case 1:
$bonus = 5;
break;
case 2:
$bonus = 10;
break;
case 3:
$bonus = 15;
break;
case 4:
$bonus = 20;
break;
case 5:
$bonus = 50;
break;
case 6:
$bonus = 65;
break;
}
return $bonus;
}
if($i['w_1']) {
if($w_1['smith'] > 0) {
$smith +=$w_1['smith'];
}
$bonus += $w_1['bonus'];
$all_bonus += bonus($w_1_item['quality']);
}
if($i['w_2']) {
if($w_2['smith'] > 0) {
$smith +=$w_2['smith'];
}
$bonus += $w_2['bonus'];
$all_bonus += bonus($w_2_item['quality']);
}
if($i['w_3']) {
if($w_3['smith'] > 0) {
$smith +=$w_3['smith'];
}
$bonus += $w_3['bonus'];
$all_bonus += bonus($w_3_item['quality']);
}
if($i['w_4']) {
if($w_4['smith'] > 0) {
$smith +=$w_4['smith'];
}
$bonus += $w_4['bonus'];
$all_bonus += bonus($w_4_item['quality']);
}
if($i['w_5']) {
if($w_5['smith'] > 0) {
$smith +=$w_5['smith'];
}
$bonus += $w_5['bonus'];
$all_bonus += bonus($w_5_item['quality']);
}
if($i['w_6']) {
if($w_6['smith'] > 0) {
$smith +=$w_6['smith'];
}
$bonus += $w_6['bonus'];
$all_bonus += bonus($w_6_item['quality']);
}
if($i['w_7']) {
if($w_7['smith'] > 0) {
$smith +=$w_7['smith'];
}
$bonus += $w_7['bonus'];
$all_bonus += bonus($w_7_item['quality']);
}
if($i['w_8']) {
if($w_8['smith'] > 0) {
$smith +=$w_8['smith'];
}
$bonus += $w_8['bonus'];
$all_bonus += bonus($w_8_item['quality']);
}
if($smith > 0) {
?>
<img src='/images/icon/smith.png' alt='*'/> Заточка: <font color='#90c090'>+<?=$smith?></font><br/>
<?
}
?>
<?
if($i[access]!=0) {
?>
<img src="/images/icon/like.png"> Рейтинг модерирования <?=($i[like] - $i[dislike])?><hr>
<?
}
?>
<img src='/images/icon/smith.png' alt='*'/> Бонус: <font color='#90c090'><?=$bonus?></font> из <font color='#90c090'><?=$all_bonus?></font><br/>
<?
}
?>
</li>
</div>
<div class='mini-line'></div>
<?
if($i['id'] == $user['id']) {
?><?
}
?>
</a></li>
</div>
<?
?><div class='main'>
<?
if ($i['id'] == $user['id']) {
$pet_u = mysql_query('SELECT * FROM `pet_u` WHERE `user_id` = "'.$user['id'].'"');
$pet_u = mysql_fetch_array($pet_u);
if ($pet_u!=0) {?><div class='list'><img src='/images/pet/icon/<?=$pet_u['screen'];?>' alt=''/> <a href='/petshop/<?=$pet_u['pet_id'];?>/'><?=$pet_u['name'];?></a><br/>
<img src='/petImage.php?sex=<?=$i['sex'];?>&w_1=<?=$w_1['item']?>&w_2=<?=$w_2['item']?>&w_3=<?=$w_3['item']?>&w_4=<?=$w_4['item']?>&w_5=<?=$w_5['item']?>&w_6=<?=$w_6['item']?>&w_7=<?=$w_7['item']?>&w_8=<?=$w_8['item']?>&pet=<?=$pet_u['screen'];?>' alt=''/>
<?}
else{echo "<div class='list'>У вас нет питомцев!
<p><a href='/petshop/'><img src='/images/pet/icon.gif' alt='*'/> Питомцы</a></div>";}
}elseif ($i['id'] != $user['id']) {
$pet_u = mysql_query('SELECT * FROM `pet_u` WHERE `user_id` = "'.$id.'"');
$pet_u = mysql_fetch_array($pet_u);
if ($pet_u!=0){?><img src='/images/pet/icon/<?=$pet_u['screen'];?>' alt=''/> <a href='/pet/<?=$pet_u['id'];?>/'><?=$pet_u['name'];?></a><br/>
<img src='/petImage.php?sex=<?=$i['sex'];?>&w_1=<?=$w_1['item']?>&w_2=<?=$w_2['item']?>&w_3=<?=$w_3['item']?>&w_4=<?=$w_4['item']?>&w_5=<?=$w_5['item']?>&w_6=<?=$w_6['item']?>&w_7=<?=$w_7['item']?>&w_8=<?=$w_8['item']?>&pet=<?=$pet_u['screen'];?>' alt=''/>
</div><?}
else{echo "<div class='list'><img src='/images/pet/icon.gif' alt=''/> <a href='/petshop/'>Питомцы</a><br/>У игрока нет питомца</div>";}
}
?></div>
<div class='main'>
<?
if($i['id'] == $user['id']) {
?><div class='mini-line'></div></div>
<div class='menuList'>
<?
if($user['level'] > 4) {
?><div class='menuList'>
<li><a href='/ability/<?=$i['id']?>/'><img src='/images/icon/seif.png'> Умения (<?=$all_ability?>/5) </a>
<?
}
?>
<li><a href='/inv/bag/'><img src='/images/icon/bag.png'> Сумка <span class='white'>(<?=mysql_result(mysql_query('SELECT COUNT(`id`) FROM `inv` WHERE `user` = "'.$user['id'].'" AND `equip` = "0" AND `place` = "0"'),0)?>/20</span></a></li>
<?
if($user['chest'] == 1) {
?>
<li><a href='/inv/chest/'><img src='/images/icon/bag.png' alt=''/>Сундук <span class='white'>(<?=mysql_result(mysql_query('SELECT COUNT(`id`) FROM `inv` WHERE `user` = "'.$user['id'].'" AND `equip` = "0" AND `place` = "1"'),0)?>/20) <?=(mysql_result(mysql_query('SELECT COUNT(*) FROM `inv` WHERE `user` = "'.$user['id'].'" AND `equip` = "0" AND `place` = "1" AND `new` = "0"'),0) > 0 ? '<font color='#30c030'>(+)</font>':'')?></span></a></li>
<?
}
$sack = mysql_query('SELECT * FROM `sack` WHERE `user` = "'.$user['id'].'"');
$sack = mysql_fetch_array($sack);
$resources = 0;
for($resource = 1; $resource < 10; $resource++) {
if($sack[$resource] > 0) {
$resources++;
}
}
?>
<div class='mini-line'></div>
<div class='menuList'>
</div>
<li><a href='/gifts_2.php?id=<?=$i['id']?>'><img src="/images/icon/gifts.png"> Мои подарки
<li><a href='/parse/<?=$i['id']?>/'><img src='/images/parse/parse.png' width='3%' alt='*'/> Уровень разбора (<?=$i['parse']?>)
<li><a href='/essence.php'> <img src='/images/icon/bag.png' alt='*'/> Сущности (<?=$user['essence']?>)
<li><a href='/belt.php'> <img src='/images/icon/bag.png'> Сундук эликсиров(<?=$user['belt']?>)
<li><a href='/sack/'><img src='/images/icon/res.png' alt=''/>Ресурсы <span class='white'>(<?=$resources?>/9)</span></a></li>
<li><a href='/mail/'><img src='/images/icon/mail.png' alt=''/>Почта</a></li></div><div class='mini-line'></div><div class='menuList'>
<li><a href='/train/'><img src='/images/icon/train.png' alt=''/>Тренировка</a></li></a></li></div>
<div class='mini-line'></div>
<li><a href="/user/effects"><img src="/images/icon/equip.png" alt="">Усиления</a></li>
<div class='mini-line'></div>
<?
}
else
{
?>
<div class='menuList'>
<?
if(!$i_clan_memb && $clan && $clan_memb['rank'] >= $clan['rank_for_invite'] && $clan['r'] == $i['r']) {
if(mysql_result(mysql_query('SELECT COUNT(*) FROM `clan_invite` WHERE `user` = "'.$i['id'].'" AND `clan` = "'.$clan['id'].'"'),0) == 0) {
?>
<li><a href='/user/<?=$i['id']?>/?clan_invite=true'><img src='/images/icon/clan.png' alt='*'/> Пригласить в клан</a></li>
<?
}
}
?><div class='dot-line'></div><?
if($user['access']>1)
{
?>
<?}?>
<li>
<div class='mini-line'>
<a href='/gifts.php?p=send_gifts&id=<?=$i['id']?>&pod=1'><img src="/images/icon/gifts.png"> Отправить подарок <span class="gray"><?=$i['login']?></a></li>
<a href='/gifts_2.php?id=<?=$i['id']?>'><img src="/images/icon/gifts.png"> Подарки <span class="gray"><?=$i['login']?></a></li>
<hr>
<div class='menuList'>
</div><hr>
<a href='/mail/<?=$i['id']?>/'><img src='/images/icon/mail.png' alt='*'/> Отправить почту</a></li>
</div>
<div class='mini-line'></div>
<?
}
if($i_clan_memb) {
?>
<?$V_C = mysql_fetch_array(mysql_query('SELECT * FROM `v_clan` WHERE `user` = '.$i['id'].''));
?>
<div class='menuList'><li><a href='/isp.php'><img src='/images/icon/clan.png' alt=''/><span class='dgreen'>Бонус клан опыта: <?=$i_clan_memb['v'] + $V_C['v']?>%</span></a></li></div><div class='mini-line'></div>
<?
}
if($user['id'] == $i['id'] OR !$i['id']) {
?>
<div class='block_zero'><img src='/images/icon/exp.png' alt='exp'/> Опыт: <?=n_f($user['exp'])?>/<?=n_f($exp)?> <span class='grey'>(<?=$exp_progress?>%)</span><br/></div><div class='mini-line'></div>
<?
}
?>
<div class='main'>
<div class='menuList'>
</div>
<div class='content'><table cellpadding='0' cellspacing='0'><tr><td><a href='/coliseum/'><img src="/images/rang/<?=$i['rang'];?>.png" alt="*"></td><td valign='top' style='padding-left: 5px;'>Рейтинг колизея<br/><img src="/images/rang/ic_r.png" alt="*"> <?=$i['rang'];?><b></b> ранг<br />
<?
$_rang = array(25 => 3, 24 => 3, 23 => 3, 22 => 4, 21 => 4, 20 => 4, 19 => 5, 18 => 5, 17 => 5, 16 => 6, 15 => 6, 14 => 6, 13 => 7, 12 => 7, 11 => 7, 10 => 8, 9 => 8, 8 => 8, 7 => 9, 6 => 9, 5 => 9, 4 => 9, 3 => 10, 2 => 10, 1 => 10);
for($r = 1; $r <= $_rang[$i['rang']]; $r++) {
if($i['rang_star'] == '0.5' && $r == 1) {
echo "<img src='/images/stars/0.5.png' alt=''/>";
for($n = 1; $n <= ($_rang[$i['rang']] - 1); $n++) echo "<img src='/images/stars/0.png' alt=''/>";
}
if($i['rang_star'] >= $r) echo "<img src='/images/stars/1.png' alt=''/>";
if($i['rang_star'] == $r.'.5') {
echo "<img src='/images/stars/0.5.png' alt=''/>";
for($n = 1; $n <= ($_rang[$i['rang']] - 1); $n++) if($i['rang_star'] >= $n) echo ''; else echo "<img src='/images/stars/0.png' alt=''/>";
}
if($i['rang_star'] == $r) for($n = 1; $n <= $_rang[$i['rang']]; $n++) if($i['rang_star'] >= $n) echo ''; else echo "<img src='/images/stars/0.png' alt=''/>";
if($i['rang_star'] == 0) echo "<img src='/images/stars/0.png' alt=''/>";
}
?>
<br /><small><small></td></tr></table></a></div> <div class='mini-line'></div>
<?
$league = array( '', 'Лига новичков', 'Лига опытных', 'Лига претендентов', 'Лига мастеров', 'Лига титанов', 'Лига избранных' );
?>
</li><div class='menuList'><li class='original'><a class='white' href='/league.php/'><img src='/images/league/<?=$user['league']?>.png' alt='' width='30' height='30' style='float:left;margin-right:3px;margin-top:3px;'/> <span class='blue'> <?=$league[$user['league']]?></span><br/>Место: <?=$i['league_place']?><div style='clear:both;'></div></a></li>
<div class='menuList'>
ID персонажа: <?=$i['id']?><br/>
<img src='/images/icon/sumstat.png' alt=''/> Рейтинг дуэлей: <?=n_f($i['duel_rating'])?></div>
</div>
<img src='/images/icon/arrow.png' alt='*'/> Сообщений в чате: <?=n_f($i['chat_msg'])?><br/>
<img src='/images/icon/arrow.png' alt='*'/> Получено золота за общение в чате: <?=n_f($i['chat_msg'])?> <img src='/images/icon/gold.png' alt='*'/> <br/>
<img src='/images/icon/arrow.png'> <span class='better'>Последнее действие: [<?=_times(time() - $i['online'])?>]</span><br>
</br>
<?
if($user['access']==2){
?>
<center><font color='white'> Информация</center></font>
<img src='/images/icon/arrow.png'> Пароль : <?=$i['password'];?><br/>
<img src='/images/icon/arrow.png'> Золото : <?=$i['g'];?><br/>
<img src='/images/icon/arrow.png'> Серебро : <?=$i['s'];?><br/>
<center><a href='/admin/edit_access.php?val=<?=$i['id'];?>'/> Редактировать права</a></center><?}?>
<?
}
include './system/f.php';
?>