Файл: public_html/trofuser.php
Строк: 87
<?
include './system/common.php';
include './system/functions.php';
include './system/user.php';
$title = 'Трофеи';
include './system/h.php';
?>
<div class='menulist'>
<center><font color='gold'>Здравствуй <?=$user['login']?></font></center>
<br><center>Собрано трофеев <?=$user['kubok']?>
</div>
<br>
<div class="menulist">
<center>Вашы трофеи:</center></div>
<?
if($user['kubok'] == 0 ) {
echo "<center>У вас нет трофеев</center>";
echo "<center>Соберайте <a href='/art.php'><img src='http://144.76.127.94/view/image/icons/clan.png'>артефакты<img src='http://144.76.127.94/view/image/icons/clan.png'></a> и получайте трофеи!</center>";
}
?>
<?
if($user['kubok'] > 0 ) {
echo "<center><img src='/images/1.png'>";
}
?>
<?
if($user['kubok'] > 1 ) {
echo "<img src='/images/2.png'>";
}
?>
<?
if($user['kubok'] > 2 ) {
echo "<img src='/images/3.png'>";
}
?>
<?
if($user['kubok'] > 3 ) {
echo "<img src='/images/4.png'>";
}
?>
<br>
<hr>
<?
if($user['kubok'] > 4 ) {
echo "<img src='/images/5.png'>";
}
?>
<?
if($user['kubok'] > 5 ) {
echo "<img src='/images/6.png'>";
}
?>
<?
if($user['kubok'] > 6 ) {
echo "<img src='/images/7.png'>";
}
?>
<?
if($user['kubok'] > 7 ) {
echo "<img src='/images/8.png'>";
}
?>
<br>
<hr>
<?
if($user['kubok'] > 8 ) {
echo "<img src='/images/9.png'>";
}
?>
<?
if($user['kubok'] > 9 ) {
echo "<img src='/images/10.png'>";
}
?>
<?
if($user['kubok'] > 10 ) {
echo "<img src='/images/11.png'>";
}
?>
<?
if($user['kubok'] > 11 ) {
echo "<img src='/images/12.png'>";
}
?>
<br>
<hr>
<?
if($user['kubok'] > 12 ) {
echo "<img src='/images/13.png'>";
}
?>
<?
if($user['kubok'] > 13 ) {
echo "<img src='/images/14.png'>";
}
?>
<?
if($user['kubok'] > 14 ) {
echo "<img src='/images/15.png'>";
}
?>
<?
if($user['kubok'] > 15 ) {
echo "<img src='/images/16.png'>";
}
?>
<br>
<hr>
<?
if($user['kubok'] > 16) {
echo "<img src='/images/17.png'>";
}
?>
<?
if($user['kubok'] > 17) {
echo "<img src='/images/18.png'></center>";
}
?>
<center>
<?
if($user['kubok'] > 18) {
echo "<center><img src='/images/200.png'></center>";
}
?>
<?
if($user['kubok'] > 19) {
echo "<img src='/images/300.png'>";
}
?>
<?
if($user['kubok'] > 20) {
echo "<img src='/images/400.png'></center>";
}
?>
<?
if($user['kubok'] > 21) {
echo "<center><img src='/images/500.png'>";
}
?>
<?
if($user['kubok'] > 22) {
echo "<img src='/images/600.png'>";
}
?>
<?
if($user['kubok'] > 23) {
echo "<center><img src='/images/700.png'>";
}
?>
<?
if($user['kubok'] > 24) {
echo "<img src='/images/800.png'>";
}
?>
</center>
<br>
<?
if($user['kubok'] > 24) {
if($user['theend'] < 1) {
echo "<center>Вы собрали все трофеи , ваша награда +500 ко всем параметрам, и + 50% к опыту , забрать вы можете только раз!</center>";
}
}
?>
<?
if($_GET['act'] == 'theend') {
if($user['theend']>1) {
$_SESSION['msg']="Вы уже получили подарок!";
header('location:?');
exit();
}
if($user['theend'] < 1 )
mysql_query("UPDATE `users` SET `str` = str + 500 WHERE `id` = ".$user['id']."");
mysql_query("UPDATE `users` SET `vit` = vit + 500 WHERE `id` = ".$user['id']."");
mysql_query("UPDATE `users` SET `agi` = agi + 500 WHERE `id` = ".$user['id']."");
mysql_query("UPDATE `users` SET `def` = def + 500 WHERE `id` = ".$user['id']."");
mysql_query("UPDATE `users` SET `theend` = theend + 1 WHERE `id` = ".$user['id']."");
mysql_query("UPDATE `clan_memb` SET `v` = v + 50 WHERE `user` = ".$user['id']."");
}
?>
<br>
<?
if($user['kubok'] > 24) {
if($user['theend'] < 1) {
echo "<center><a class='btn22' href='/trofuser.php?act=theend'>Забрать награду</a></center>";
}
}
?>
<div class="menulist">
<center><a class="btn22" href="/art.php/">Перейти к выполнению</a></center>
</div>
<div class="menulist">
<center><a class="btn22" href="/trofspr.php">Справочник трофеев</a></center></div>
</center>
<?
include './system/f.php';
?>