<?php

require_once 'core/system.php';








head('Личные аватары');




reg(); 

?><style>

.mt5 {
    margin-top: 5px;
}
.cntr {
    text-align: center;
}
img {
    vertical-align: bottom;
}
 .section._decor {    padding: 10px 18px 15px 18px;}.section._decor {    background:         url('/img/section/decor-tl.png') 0 0 no-repeat,         url('/img/section/decor-tr.png') 100% 0 no-repeat,         url('/img/section/decor-bl.png') 0 100% no-repeat,        url('/img/section/decor-br.png') 100% 100% no-repeat #16161e !important;    color: inherit;} .section._decor {        background-image: url('/img/section/decor_tl_x2.png'),        url('/img/section/decor_tr_x2.png'),        url('/img/section/decor_bl_x2.png'),        url('/img/section/decor_br_x2.png') !important;        background-size: 22px 22px !important;    } </style><?













?>

<? 










if($_SERVER['REQUEST_URI']=='/avatars.php'){

?><div class="b_tabs font-small mt10">

<div class="b_tabs">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tbody style="vertical-align: bottom;">
<tr>
<td>
<span class="tab first active">
Мужские
</span>
</td><td>
<a href="/avatars.php?woman" class="tab last">
Женские

</a>
</span>
</td><td>
<a href="/avatars.php?gif" class="tab last">
Анимированные

</a> 
</td>
</tr></tbody>
</table>
</div>

</div><? 


}


if($_SERVER['REQUEST_URI']=='/avatars.php?woman'){ 
?><div class="b_tabs font-small mt10">

<div class="b_tabs">
<table cellpadding="0" cellspacing="0" width="100%" border="0">
<tbody style="vertical-align: bottom;">  
    <tr>
<td>
<a href="/avatars.php?men" class="tab first">
Мужские

</a>
</td><td>
<span class="tab last active">
Женские

</span>
</span>
</td><td>
<a href="/avatars.php?gif" class="tab last">
Анимированные

</a>  
</td>
</tr></tbody>
</table>
</div>

</div>
<?

}

if($_SERVER['REQUEST_URI']=='/avatars.php?gif'){ 
?><div class="b_tabs font-small mt10">

<div class="b_tabs">
<table cellpadding="0" cellspacing="0" width="100%" border="0">
<tbody style="vertical-align: bottom;">  
    <tr>
<td>
<a href="/avatars.php?men" class="tab first">
Мужские

</span>
</a>
</td><td>

<a href="/avatars.php?woman" class="tab last">
Женские

</a>
</span> 

</td><td>
<span class="tab last active">

Анимированные

</a>  
</td>
</tr></tbody>
</table>
</div>

</div>
<?

}

if(isset($_GET['cart'])){

?><div class="b-panel-new dblue-panel bordered mt2">


<div class="panel-inner-2"><div class="font-small text-italic c-verygray">Локации в которых возможно найти кристаллы <span class="info"> Призрачный Лес - шанс 40% с vip 70%</br>Обитель Теней - шанс 35% с vip 65%</br> Сумеречная Шахта - шанс 30% с vip 60%</div></div></div><?



foot();exit;

}






if(isset($_GET['men'])){ $_SESSION['try']=0; header('location:avatars.php');exit;}




if(isset($_GET['woman'])){

$_SESSION['try']=1;
?><div class="section _decor mt2">


<div class="cntr mt5">

<div class="ib mlr5 mb5">
<img class="i50" src="/img/avatar/wm/1.png">
<div>01</div>
</div>

<div class="ib mlr5 mb5">
<img class="i50" src="/img/avatar/wm/2.png">
<div>02</div>
</div>

<div class="ib mlr5 mb5">
<img class="i50" src="/img/avatar/wm/3.png">
<div>03</div>
</div>

<div class="ib mlr5 mb5">
<img class="i50" src="/img/avatar/wm/4.png">
<div>04</div>
</div>

<div class="ib mlr5 mb5">
<img class="i50" src="/img/avatar/wm/5.png">
<div>05</div>
</div>

<div class="ib mlr5 mb5">
<img class="i50" src="/img/avatar/wm/6.png">
<div>06</div>
</div>

<div class="ib mlr5 mb5">
<img class="i50" src="/img/avatar/wm/7.png">
<div>07</div>
</div>

<div class="ib mlr5 mb5">
<img class="i50" src="/img/avatar/wm/8.png">
<div>08</div>
</div>

<div class="ib mlr5 mb5">
<img class="i50" src="/img/avatar/wm/9.png">
<div>09</div>
</div>

<div class="ib mlr5 mb5">
<img class="i50" src="/img/avatar/wm/10.png">
<div>10</div>
</div>

<div class="ib mlr5 mb5">
<img class="i50" src="/img/avatar/wm/11.png">
<div>11</div>
</div>

<div class="ib mlr5 mb5">
<img class="i50" src="/img/avatar/wm/12.png">
<div>12</div>
</div>

<div class="ib mlr5 mb5">
<img class="i50" src="/img/avatar/wm/13.png">
<div>13</div>
</div>

<div class="ib mlr5 mb5">
<img class="i50" src="/img/avatar/wm/14.png">
<div>14</div>
</div>

<div class="ib mlr5 mb5">
<img class="i50" src="/img/avatar/wm/15.png">
<div>15</div>
</div>

<div class="ib mlr5 mb5">
<img class="i50" src="/img/avatar/wm/16.png">
<div>16</div>
</div>

<div class="ib mlr5 mb5">
<img class="i50" src="/img/avatar/wm/17.png">
<div>17</div>
</div>

<div class="ib mlr5 mb5">
<img class="i50" src="/img/avatar/wm/18.png">
<div>18</div>
</div>

<div class="ib mlr5 mb5">
<img class="i50" src="/img/avatar/wm/19.png">
<div>19</div>
</div>

<div class="ib mlr5 mb5">
<img class="i50" src="/img/avatar/wm/20.png">
<div>20</div>
</div>

<div class="ib mlr5 mb5">
<img class="i50" src="/img/avatar/wm/21.png">
<div>21</div>
</div>

<div class="ib mlr5 mb5">
<img class="i50" src="/img/avatar/wm/22.png">
<div>22</div>
</div>

<div class="ib mlr5 mb5">
<img class="i50" src="/img/avatar/wm/23.png">
<div>23</div>
</div>

<div class="ib mlr5 mb5">
<img class="i50" src="/img/avatar/wm/24.png">
<div>24</div>
</div>

<div class="ib mlr5 mb5">
<img class="i50" src="/img/avatar/wm/25.png">
<div>25</div>
</div>

<div class="ib mlr5 mb5">
<img class="i50" src="/img/avatar/wm/26.png">
<div>26</div>
</div>

<div class="ib mlr5 mb5">
<img class="i50" src="/img/avatar/wm/27.png">
<div>27</div>
</div>

<div class="ib mlr5 mb5">
<img class="i50" src="/img/avatar/wm/28.png">
<div>28</div>
</div>

<div class="ib mlr5 mb5">
<img class="i50" src="/img/avatar/wm/29.png">
<div>29</div>
</div>

<div class="ib mlr5 mb5">
<img class="i50" src="/img/avatar/wm/30.png">
<div>30</div>
</div>

<div class="ib mlr5 mb5">
<img class="i50" src="/img/avatar/wm/31.png">
<div>31</div>
</div>







</div></div><?



foot();exit;}


if(isset($_GET['gif'])){

$_SESSION['try']=2;
?><div class="section _decor mt2">
<div class="font14 center text-gold">Зарабатывай Кристаллы в турнире питомцев.</div>




<table width="100%" border="0" cellpadding="0" cellspacing="0" class="mt5 table-raiting">
<tbody>
<tr valign="top">


<?





$yh = 0;

$by = $dbc->query("SELECT * FROM `user_pets` WHERE `tour`>0  ORDER BY `tour` desc limit 10");




$gold = 370; //сколько даем золота
$leg = 105; //сколько даем осколков








?><table width="100%" border="0" cellpadding="0" cellspacing="0" class="mt5 table-raiting">
<tbody>
<?

while($de=$by->fetch_assoc()){


$gold  = $gold -20;
$leg  = $leg -5;


$yh++;

?>
<tr valign="top">
<td><span><?=$yh?>.</span>
<span class="nowrap"><img src="img/icons/pet.png"><b><a href="pet.php?id=<?=$de['id_user']?>"><?=$de['name']?></b></a>(<img src="img/money/money.png"><?=$gold?><img src="img/new/leg.png"><?=$leg?>)<td align="right"> (<img src="img/new/kr.png"><?=$de['tour']?>)</td></span>























</td>

<?



}



















?></tr>


</tbody>
</table>

</div><?



foot();exit;}



?><div class="section _decor mt2">

<div class="cntr mt5">

<div class="ib mlr5 mb5">
<img class="i50" src="/img/avatar/men/1.png">
<div>01</div>
</div>

<div class="ib mlr5 mb5">
<img class="i50" src="/img/avatar/men/2.png">
<div>02</div>
</div>

<div class="ib mlr5 mb5">
<img class="i50" src="/img/avatar/men/3.png">
<div>03</div>
</div>

<div class="ib mlr5 mb5">
<img class="i50" src="/img/avatar/men/4.png">
<div>04</div>
</div>

<div class="ib mlr5 mb5">
<img class="i50" src="/img/avatar/men/5.png">
<div>05</div>
</div>

<div class="ib mlr5 mb5">
<img class="i50" src="/img/avatar/men/6.png">
<div>06</div>
</div>

<div class="ib mlr5 mb5">
<img class="i50" src="/img/avatar/men/7.png">
<div>07</div>
</div>

<div class="ib mlr5 mb5">
<img class="i50" src="/img/avatar/men/8.png">
<div>08</div>
</div>

<div class="ib mlr5 mb5">
<img class="i50" src="/img/avatar/men/9.png">
<div>09</div>
</div>

<div class="ib mlr5 mb5">
<img class="i50" src="/img/avatar/men/10.png">
<div>10</div>
</div>

<div class="ib mlr5 mb5">
<img class="i50" src="/img/avatar/men/11.png">
<div>11</div>
</div>

<div class="ib mlr5 mb5">
<img class="i50" src="/img/avatar/men/12.png">
<div>12</div>
</div>

<div class="ib mlr5 mb5">
<img class="i50" src="/img/avatar/men/14.png">
<div>14</div>
</div>

<div class="ib mlr5 mb5">
<img class="i50" src="/img/avatar/men/15.png">
<div>15</div>
</div>

<div class="ib mlr5 mb5">
<img class="i50" src="/img/avatar/men/16.png">
<div>16</div>
</div>

<div class="ib mlr5 mb5">
<img class="i50" src="/img/avatar/men/17.png">
<div>17</div>
</div>

<div class="ib mlr5 mb5">
<img class="i50" src="/img/avatar/men/18.png">
<div>18</div>
</div>

<div class="ib mlr5 mb5">
<img class="i50" src="/img/avatar/men/19.png">
<div>19</div>
</div>

<div class="ib mlr5 mb5">
<img class="i50" src="/img/avatar/men/20.png">
<div>20</div>
</div>

<div class="ib mlr5 mb5">
<img class="i50" src="/img/avatar/men/21.png">
<div>21</div>
</div>

<div class="ib mlr5 mb5">
<img class="i50" src="/img/avatar/men/23.png">
<div>23</div>
</div>

<div class="ib mlr5 mb5">
<img class="i50" src="/img/avatar/men/24.png">
<div>24</div>
</div>

<div class="ib mlr5 mb5">
<img class="i50" src="/img/avatar/men/25.png">
<div>25</div>
</div>

<div class="ib mlr5 mb5">
<img class="i50" src="/img/avatar/men/26.png">
<div>26</div>
</div>
</div>





</div>
<?

foot();