Файл: sumerki.mobi/sumerki.mobi/inventar.php
Строк: 1057
<?
//////////////////////////////////////////////////////////////
//////////////////////Онлайн игра "Сумерки"///////////////////
//////////////////////Основатель: Mc Laren////////////////////
///////////////////Контакты: ICQ - 597687549//////////////////
/////////////////////Пример: Sumerki.Mobi/////////////////////
///////////Если ты это читаешь, значит скрипт слили :D////////
//////////////////////////////////////////////////////////////
define('PROTECTOR', 1);
$headmod = 'inventar';//фикс. места
$textl='Инвентарь';
include('files/path.php');
include('files/gzips.php');
include($path.'files/db.php');
include($path.'files/auth.php');
include($path.'files/func.php');
include($path.'files/core.php');
include($path.'files/head.php');
include($path.'files/zag.php');
switch($_GET[mod]){
default:
//////считаем вещи/////////
$weapon = mysql_result(mysql_query("SELECT COUNT(*) FROM item WHERE usr='$log' and tip='weapon' and `image`='not'"),0);
$golova = mysql_result(mysql_query("SELECT COUNT(*) FROM item WHERE usr='$log' and tip='golova' and `image`='not'"),0);
$shit = mysql_result(mysql_query("SELECT COUNT(*) FROM item WHERE usr='$log' and tip='shit' and `image`='not'"),0);
$poyas = mysql_result(mysql_query("SELECT COUNT(*) FROM item WHERE usr='$log' and tip='poyas' and `image`='not'"),0);
$plash = mysql_result(mysql_query("SELECT COUNT(*) FROM item WHERE usr='$log' and tip='plash' and `image`='not'"),0);
$ruki = mysql_result(mysql_query("SELECT COUNT(*) FROM item WHERE usr='$log' and tip='ruki' and `image`='not'"),0);
$nogi = mysql_result(mysql_query("SELECT COUNT(*) FROM item WHERE usr='$log' and tip='nogi' and `image`='not'"),0);
$body = mysql_result(mysql_query("SELECT COUNT(*) FROM item WHERE usr='$log' and tip='body' and `image`='not'"),0);
$amulet = mysql_result(mysql_query("SELECT COUNT(*) FROM item WHERE usr='$log' and tip='amulet' and `image`='not'"),0);
$kolco = mysql_result(mysql_query("SELECT COUNT(*) FROM item WHERE usr='$log' and tip='kolco' and `image`='not'"),0);
$maska = mysql_result(mysql_query("SELECT COUNT(*) FROM item WHERE usr='$log' and tip='maska' and `image`='not'"),0);
$pits = mysql_result(mysql_query("SELECT COUNT(*) FROM pit_item WHERE usr='$log' and `image`='not'"),0);
$shems = mysql_result(mysql_query("SELECT COUNT(*) FROM shems WHERE usr='$log'"),0);
$res = mysql_result(mysql_query("SELECT COUNT(*) FROM res WHERE usr='$log'"),0);
$aura = mysql_result(mysql_query("SELECT COUNT(*) FROM item_aura WHERE usr='$log' and `bonus` = '0' "),0);
/////энд//////////////
echo '<div class="zagolovok">
<div class="zagolovok1">
<div class="zagolovok2">
<div class="zagolovok_right"></div>
<div class="zagolovok_left"></div>
<div class="ch_name">Боевое снаряжение</div>
<div class="clearFix"></div>
</div>
</div>
</div>';
echo " <div class='button pad_bot_5 pad'> <a href="inventar.php?mod=item&o=weapon">   » Оружие <span class='level1'>$weapon</span></a></div>";
echo " <div class='button pad_bot_5 pad'> <a href="inventar.php?mod=itemgolova&o=golova">   » Голова <span class='level1'>$golova</span></a></div>";
echo " <div class='button pad_bot_5 pad'> <a href="inventar.php?mod=itemshit&o=shit">   » Щит <span class='level1'>$shit</span></a></div>";
echo " <div class='button pad_bot_5 pad'> <a href="inventar.php?mod=itemplash&o=plash">   » Плащ <span class='level1'>$plash</span></a></div>";
echo " <div class='button pad_bot_5 pad'> <a href="inventar.php?mod=itempoyas&o=poyas">   » Пояс <span class='level1'>$poyas</span></a></div>";
echo " <div class='button pad_bot_5 pad'> <a href="inventar.php?mod=itemruki&o=ruki">   » Руки <span class='level1'>$ruki</span></a></div>";
echo " <div class='button pad_bot_5 pad'> <a href="inventar.php?mod=itemnogi&o=nogi">   » Обувь <span class='level1'>$nogi</span></a></div>";
echo " <div class='button pad_bot_5 pad'> <a href="inventar.php?mod=itembody&o=body">   » Торс <span class='level1'>$body</span></a></div>";
echo '<div class="zagolovok">
<div class="zagolovok1">
<div class="zagolovok2">
<div class="zagolovok_right"></div>
<div class="zagolovok_left"></div>
<div class="ch_name">Прочие вещи</div>
<div class="clearFix"></div>
</div>
</div>
</div>';
echo " <div class='button pad_bot_5 pad'> <a href="inventar.php?mod=itemamulet&o=amulet">   » Амулеты <span class='level1'>$amulet</span></a></div>";
echo " <div class='button pad_bot_5 pad'> <a href="inventar.php?mod=itemkolco&o=kolco">   » Кольца <span class='level1'>$kolco</span></a></div>";
echo " <div class='button pad_bot_5 pad'> <a href="inventar.php?mod=itemmaska&o=maska">   » Маски <span class='level1'>$maska</span></a></div>";
echo '<div class="zagolovok">
<div class="zagolovok1">
<div class="zagolovok2">
<div class="zagolovok_right"></div>
<div class="zagolovok_left"></div>
<div class="ch_name">Другое</div>
<div class="clearFix"></div>
</div>
</div>
</div>';
$res = mysql_result(mysql_query("SELECT COUNT(*) FROM res WHERE usr='$log' and tip='res'"),0);
echo " <div class='button pad_bot_5 pad'> <a href="inventar.php?mod=res&tip=res">   » Ресурсы <span class='level1'>$res</span></a></div>";
$elexir = mysql_result(mysql_query("SELECT COUNT(*) FROM res WHERE usr='$log' and tip='elexir'"),0);
echo " <div class='button pad_bot_5 pad'> <a href="inventar.php?mod=res&tip=elexirs">   » Элексиры <span class='level1'>$elexir</span></a></div>";
echo " <div class='button pad_bot_5 pad'> <a href="inventar.php?mod=shems">   » Схемы <span class='level1'>$shems</span></a></div>";
echo " <div class='button pad_bot_5 pad'> <a href="inventar.php?mod=aura">   » Эффекты <span class='level1'>$aura</span></a></div>";
$aura = mysql_result(mysql_query("SELECT COUNT(*) FROM item_aura WHERE usr='$log' and `bonus` = '1'"),0);
echo " <div class='button pad_bot_5 pad'> <a href="inventar.php?mod=bonus">   » Бонусные умения <span class='level1'>$aura</span></a></div>";
break;
case 'itemmaska':
if($_GET[o]!=maska){
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo"Ошибка!!!<br/>";
echo '</div></div></div></div></div></div></div></div></div>';
include($path.'files/down.php');
include($path.'files/meny.php');
exit;
}
if ($_GET[page] == "" || $_GET[page] < 0 || $_GET[page] == "0")
{
$_GET[page] = 0;
}
$next = $_GET[page] + 1;
$back = $_GET[page] - 1;
$num = $_GET[page] * 10;
if($_GET[page] == "0")
{$i = 1;}
else{$i = ($_GET[page]*10)+1;}
$viso = mysql_num_rows(mysql_query("SELECT usr FROM item"));
$puslap = floor($viso/10);
$times = date("H:i");
$req = mysql_query("SELECT * FROM `item` WHERE `usr` = '$log' and `tip`='$_GET[o]' and `image`='not' ORDER BY id DESC LIMIT $num,10");
////////////////////////////
$avto=mysql_num_rows($req);
if($avto>=1){
While($mag = mysql_fetch_array($req))
{
$w=explode("*",$mag[name]);
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo"<a href="inventar.php?mod=info&id=$mag[id]">$mag[name]</a><br/><img src="pic/tip/$w[0].png" height=40 width=40><br><a class="buuut" href="dress.php?tip=$_GET[o]&id=$mag[id]">Надеть $mag[name]</a><br/>";
echo '</div></div></div></div></div></div></div></div></div>';
}
if ($_GET[page] > 0)
{
echo "<h1><a href="inventar.php?mod=itemnogi&page=$back&&o=maska"><img src="pic/ico/left_ico.png"></a>";
}
elseif ($_GET[page] == 0)
{
echo "<h1><img src="pic/ico/left_ico.png">";
}
echo " ";
if($_GET[page] < $puslap || $_GET[page] == "" || $_GET[page] == 0)
{echo "<a href="inventar.php?mod=itemmaska&page=$next&&o=maska"><img src="pic/ico/right_ico.png"></a></h1>";}
else
{echo "<img src="pic/ico/right_ico.png"></h1>";}
}else{
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo"<b>К сожалению у тебя нет элексиров</b><br/>";
echo '</div></div></div></div></div></div></div></div></div>';
/*
if ($_GET[page] > 0)
{
echo "<h1><a href="inventar.php?mod=itemmaska&page=$back&&o=maska"><img src="pic/ico/left_ico.png"></a>";
}
elseif ($_GET[page] == 0)
{
echo "<h1><img src="pic/ico/left_ico.png">";
}*/
}
echo '<div class="button pad_bot_5 pad"><a href="inventar.php?">    <img src="/theme/standart/images/galochka.png" alt="*"/> Вернуться</a></div>';
break;
case 'shems':
if ($_GET[page] == "" || $_GET[page] < 0 || $_GET[page] == "0")
{
$_GET[page] = 0;
}
$next = $_GET[page] + 1;
$back = $_GET[page] - 1;
$num = $_GET[page] * 10;
if($_GET[page] == "0")
{$i = 1;}
else{$i = ($_GET[page]*10)+1;}
$viso = mysql_num_rows(mysql_query("SELECT usr FROM shems"));
$puslap = floor($viso/10);
$times = date("H:i");
$req = mysql_query("SELECT * FROM `shems` WHERE `usr` = '$log' ORDER BY id DESC LIMIT $num,10");
////////////////////////////
$avto=mysql_num_rows($req);
if($avto>=1){
While($mag = mysql_fetch_array($req))
{
if($mag['unknow']=='0'){$mag['name']='Схема скрыта';}
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo"<a href="inventar.php?mod=info&act=shems&id=$mag[id]">$mag[name]</a><br><img src='/pic/tip/$mag[name].png' height=40 width=40><br><b>Количество схем:</b> $mag[kol]";
echo '</div></div></div></div></div></div></div></div></div>';
}
if ($_GET[page] > 0)
{
echo "<h1><a href="inventar.php?mod=shems&page=$back"><img src="pic/ico/left_ico.png"></a>";
}
elseif ($_GET[page] == 0)
{
echo "<h1><img src="pic/ico/left_ico.png">";
}
echo " ";
if($_GET[page] < $puslap || $_GET[page] == "" || $_GET[page] == 0)
{echo "<a href="inventar.php?mod=shems&page=$next"><img src="pic/ico/right_ico.png"></a></h1>";}
else
{echo "<img src="pic/ico/right_ico.png"></h1>";}
}else{
echo '<div class="zagolovok">
<div class="zagolovok1">
<div class="zagolovok2">
<div class="zagolovok_right"></div>
<div class="zagolovok_left"></div>
<div class="ch_name">Стоп!</div>
<div class="clearFix"></div>
</div>
</div>
</div>';
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo"<b>У вас нет схем</b>";
echo '</div></div></div></div></div></div></div></div></div>';
if ($_GET[page] > 0)
{
echo "<h1><a href="inventar.php?mod=shems&page=$back"><img src="pic/ico/left_ico.png"></a></h1>";
}
elseif ($_GET[page] == 0)
{
echo "<h1><img src="pic/ico/left_ico.png"></h1>";
}
}
echo '<div class="button pad_bot_5 pad"><a href="inventar.php?">    <img src="/theme/standart/images/galochka.png" alt="*"/> Вернуться</a></div>';
break;
case 'item':
if($_GET[o]!=weapon){
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo"Ошибка!!!<br/>";
echo '</div></div></div></div></div></div></div></div></div>';
include($path.'files/down.php');
include($path.'files/meny.php');
exit;
}
if ($_GET[page] == "" || $_GET[page] < 0 || $_GET[page] == "0")
{
$_GET[page] = 0;
}
$next = $_GET[page] + 1;
$back = $_GET[page] - 1;
$num = $_GET[page] * 10;
if($_GET[page] == "0")
{$i = 1;}
else{$i = ($_GET[page]*10)+1;}
$viso = mysql_num_rows(mysql_query("SELECT usr FROM item"));
$puslap = floor($viso/10);
$times = date("H:i");
$req = mysql_query("SELECT * FROM `item` WHERE `usr` = '$log' and `tip`='$_GET[o]' and `image`='not' ORDER BY id DESC LIMIT $num,10");
////////////////////////////
$avto=mysql_num_rows($req);
if($avto>=1){
While($mag = mysql_fetch_array($req))
{
$w=explode("*",$mag[name]);
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo" <a href="inventar.php?mod=info&id=$mag[id]">$mag[name]</a><br><img src="pic/tip/$w[0].png" height=40 width=40><br><a class="buuut" href="dress.php?tip=$_GET[o]&id=$mag[id]">Надеть $mag[name]</a>";
echo '</div></div></div></div></div></div></div></div></div>';
}
if ($_GET[page] > 0)
{
echo "<h1><a href="inventar.php?mod=item&page=$back&&o=weapon"><img src="pic/ico/left_ico.png"></a>";
}
elseif ($_GET[page] == 0)
{
echo "<h1><img src="pic/ico/left_ico.png">";
}
echo" ";
if($_GET[page] < $puslap || $_GET[page] == "" || $_GET[page] == 0)
{echo "<a href="inventar.php?mod=item&page=$next&&o=weapon"><img src="pic/ico/right_ico.png"></a></h1>";}
else
{echo "<img src="pic/ico/right_ico.png"></h1>";}
}else{
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo"Нет вещей<br/>";
echo '</div></div></div></div></div></div></div></div></div>';
/*echo'<hr>';
if ($_GET[page] > 0)
{
echo "<h1><a href="inventar.php?mod=item&page=$back&&o=weapon"><img src="pic/ico/left_ico.png"></a></h1>";
}
elseif ($_GET[page] == 0)
{
echo "<h1><img src="pic/ico/left_ico.png"></h1>";
}*/
}
echo '<div class="button pad_bot_5 pad"><a href="inventar.php?">    <img src="/theme/standart/images/galochka.png" alt="*"/> Вернуться</a></div>';
break;
case 'itemgolova':
if($_GET[o]!=golova){
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo"Ошибка!!!<br/>";
echo '</div></div></div></div></div></div></div></div></div>';
include($path.'files/down.php');
include($path.'files/meny.php');
exit;
}
if ($_GET[page] == "" || $_GET[page] < 0 || $_GET[page] == "0")
{
$_GET[page] = 0;
}
$next = $_GET[page] + 1;
$back = $_GET[page] - 1;
$num = $_GET[page] * 10;
if($_GET[page] == "0")
{$i = 1;}
else{$i = ($_GET[page]*10)+1;}
$viso = mysql_num_rows(mysql_query("SELECT usr FROM item"));
$puslap = floor($viso/10);
$times = date("H:i");
$req = mysql_query("SELECT * FROM `item` WHERE `usr` = '$log' and `tip`='$_GET[o]' and `image`='not' ORDER BY id DESC LIMIT $num,10");
////////////////////////////
$avto=mysql_num_rows($req);
if($avto>=1){
While($mag = mysql_fetch_array($req))
{
$w=explode("*",$mag[name]);
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo"<a href="inventar.php?mod=info&id=$mag[id]">$mag[name]</a><br><img src="pic/tip/$w[0].png" height=40 width=40><br/><a class="buuut" href="dress.php?tip=$_GET[o]&id=$mag[id]">Надеть $mag[name]</a></div>";
echo '</div></div></div></div></div></div></div></div></div>';
}
if ($_GET[page] > 0)
{
echo "<h1><a href="inventar.php?mod=itemgolova&page=$back&&o=golova"><img src="pic/ico/left_ico.png"></a>";
}
elseif ($_GET[page] == 0)
{
echo "<h1><img src="pic/ico/left_ico.png">";
}
echo " ";
if($_GET[page] < $puslap || $_GET[page] == "" || $_GET[page] == 0)
{echo "<a href="inventar.php?mod=itemgolova&page=$next&&o=golova"><img src="pic/ico/right_ico.png"></a></h1>";}
else
{echo "<img src="pic/ico/right_ico.png"></h1>";}
}else{
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo"Нет вещей<br/>";
echo '</div></div></div></div></div></div></div></div></div>';
/*echo'<hr>';
if ($_GET[page] > 0)
{
echo "<h1><a href="inventar.php?mod=itemgolova&page=$back&&o=golova"><img src="pic/ico/left_ico.png"></a></h1>";
}
elseif ($_GET[page] == 0)
{
echo "<h1><img src="pic/ico/left_ico.png"></h1>";
}*/
}
echo '<div class="button pad_bot_5 pad"><a href="inventar.php?">    <img src="/theme/standart/images/galochka.png" alt="*"/> Вернуться</a></div>';
break;
case 'itemshit':
if($_GET[o]!=shit){
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo"Ошибка!!!<br/>";
echo '</div></div></div></div></div></div></div></div></div>';
include($path.'files/down.php');
include($path.'files/meny.php');
exit;
}
if ($_GET[page] == "" || $_GET[page] < 0 || $_GET[page] == "0")
{
$_GET[page] = 0;
}
$next = $_GET[page] + 1;
$back = $_GET[page] - 1;
$num = $_GET[page] * 10;
if($_GET[page] == "0")
{$i = 1;}
else{$i = ($_GET[page]*10)+1;}
$viso = mysql_num_rows(mysql_query("SELECT usr FROM item"));
$puslap = floor($viso/10);
$times = date("H:i");
$req = mysql_query("SELECT * FROM `item` WHERE `usr` = '$log' and `tip`='$_GET[o]' and `image`='not' ORDER BY id DESC LIMIT $num,10");
////////////////////////////
$avto=mysql_num_rows($req);
if($avto>=1){
While($mag = mysql_fetch_array($req))
{
$w=explode("*",$mag[name]);
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo"<a href="inventar.php?mod=info&id=$mag[id]">$mag[name]</a><br/><img src="pic/tip/$w[0].png" height=40 width=40><br> <a class="buuut" href="dress.php?tip=$_GET[o]&id=$mag[id]">Надеть $mag[name]</a></div>";
echo '</div></div></div></div></div></div></div></div></div>';
}
if ($_GET[page] > 0)
{
echo "<h1><a href="inventar.php?mod=itemshit&page=$back&&o=shit"><img src="pic/ico/left_ico.png"></a>";
}
elseif ($_GET[page] == 0)
{
echo "<h1><img src="pic/ico/left_ico.png">";
}
echo " ";
if($_GET[page] < $puslap || $_GET[page] == "" || $_GET[page] == 0)
{echo "<a href="inventar.php?mod=itemshit&page=$next&&o=shit"><img src="pic/ico/right_ico.png"></a></h1>";}
else
{echo "<img src="pic/ico/right_ico.png"></h1>";}
}else{
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo"Нет щитов<br/>";
echo '</div></div></div></div></div></div></div></div></div>';
/*echo'<hr>';
if ($_GET[page] > 0)
{
echo "<h1><a href="inventar.php?mod=itemshit&page=$back&&o=shit"><img src="pic/ico/left_ico.png"></a></h1>";
}
elseif ($_GET[page] == 0)
{
echo "<h1><img src="pic/ico/left_ico.png"></h1>";
}*/
}
echo '<div class="button pad_bot_5 pad"><a href="inventar.php?">    <img src="/theme/standart/images/galochka.png" alt="*"/> Вернуться</a></div>';
break;
case 'itemplash':
if($_GET[o]!=plash){
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo"Ошибка!!!<br/>";
echo '</div></div></div></div></div></div></div></div></div>';
include($path.'files/down.php');
include($path.'files/meny.php');
exit;
}
if ($_GET[page] == "" || $_GET[page] < 0 || $_GET[page] == "0")
{
$_GET[page] = 0;
}
$next = $_GET[page] + 1;
$back = $_GET[page] - 1;
$num = $_GET[page] * 10;
if($_GET[page] == "0")
{$i = 1;}
else{$i = ($_GET[page]*10)+1;}
$viso = mysql_num_rows(mysql_query("SELECT usr FROM item"));
$puslap = floor($viso/10);
$times = date("H:i");
$req = mysql_query("SELECT * FROM `item` WHERE `usr` = '$log' and `tip`='$_GET[o]' and `image`='not' ORDER BY id DESC LIMIT $num,10");
////////////////////////////
$avto=mysql_num_rows($req);
if($avto>=1){
While($mag = mysql_fetch_array($req))
{
$w=explode("*",$mag[name]);
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo"<a href="inventar.php?mod=info&id=$mag[id]">$mag[name]</a><br/> <img src="pic/tip/$w[0].png" height=40 width=40><br><a class="buuut" href="dress.php?tip=$_GET[o]&id=$mag[id]">Надеть $mag[name]</a></div>";
echo '</div></div></div></div></div></div></div></div></div>';
}
if ($_GET[page] > 0)
{
echo "<h1><a href="inventar.php?mod=itemplash&page=$back&&o=plash"><img src="pic/ico/left_ico.png"></a>";
}
elseif ($_GET[page] == 0)
{
echo "<h1><img src="pic/ico/left_ico.png">";
}
echo " ";
if($_GET[page] < $puslap || $_GET[page] == "" || $_GET[page] == 0)
{echo "<a href="inventar.php?mod=itemplash&page=$next&&o=plash"><img src="pic/ico/right_ico.png"></a></h1>";}
else
{echo "<img src="pic/ico/right_ico.png"></h1>";}
}else{
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo"Нет вещей<br/>";
echo '</div></div></div></div></div></div></div></div></div>';
/*echo'<hr>';
if ($_GET[page] > 0)
{
echo "<h1><a href="inventar.php?mod=itemplash&page=$back&&o=plash"><img src="pic/ico/left_ico.png"></a></h1>";
}
elseif ($_GET[page] == 0)
{
echo "<h1><img src="pic/ico/left_ico.png"></h1>";
}*/
}
echo '<div class="button pad_bot_5 pad"><a href="inventar.php?">    <img src="/theme/standart/images/galochka.png" alt="*"/> Вернуться</a></div>';
break;
case 'itempoyas':
if($_GET[o]!=poyas){
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo"Ошибка!!!<br/>";
echo '</div></div></div></div></div></div></div></div></div>';
include($path.'files/down.php');
include($path.'files/meny.php');
exit;
}
if ($_GET[page] == "" || $_GET[page] < 0 || $_GET[page] == "0")
{
$_GET[page] = 0;
}
$next = $_GET[page] + 1;
$back = $_GET[page] - 1;
$num = $_GET[page] * 10;
if($_GET[page] == "0")
{$i = 1;}
else{$i = ($_GET[page]*10)+1;}
$viso = mysql_num_rows(mysql_query("SELECT usr FROM item"));
$puslap = floor($viso/10);
$times = date("H:i");
$req = mysql_query("SELECT * FROM `item` WHERE `usr` = '$log' and `tip`='$_GET[o]' and `image`='not' ORDER BY id DESC LIMIT $num,10");
////////////////////////////
$avto=mysql_num_rows($req);
if($avto>=1){
While($mag = mysql_fetch_array($req))
{
$w=explode("*",$mag[name]);
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo"<a href="inventar.php?mod=info&id=$mag[id]">$mag[name]</a><br><img src="pic/tip/$w[0].png" height=40 width=40><br><a class="buuut" href="dress.php?tip=$_GET[o]&id=$mag[id]">Надеть $mag[name]</a>";
echo '</div></div></div></div></div></div></div></div></div>';
}
if ($_GET[page] > 0)
{
echo "<h1><a href="inventar.php?mod=itempoyas&page=$back&&o=poyas"><img src="pic/ico/left_ico.png"></a>";
}
elseif ($_GET[page] == 0)
{
echo "<h1><img src="pic/ico/left_ico.png">";
}
echo " ";
if($_GET[page] < $puslap || $_GET[page] == "" || $_GET[page] == 0)
{echo "<a href="inventar.php?mod=itempoyas&page=$next&&o=poyas"><img src="pic/ico/right_ico.png"></a></h1>";}
else
{echo "<img src="pic/ico/right_ico.png"></h1>";}
}else{
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo"Нет вещей<br/>";
echo '</div></div></div></div></div></div></div></div></div>';
/*echo'<hr>';
if ($_GET[page] > 0)
{
echo "<h1><a href="inventar.php?mod=itempoyas&page=$back&&o=poyas"><img src="pic/ico/left_ico.png"></a></h1>";
}
elseif ($_GET[page] == 0)
{
echo "<h1><img src="pic/ico/left_ico.png"></h1>";
}*/
}
echo '<div class="button pad_bot_5 pad"><a href="inventar.php?">    <img src="/theme/standart/images/galochka.png" alt="*"/> Вернуться</a></div>';
break;
case 'itemruki':
if($_GET[o]!=ruki){
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo"Ошибка!!!<br/>";
echo '</div></div></div></div></div></div></div></div></div>';
include($path.'files/down.php');
include($path.'files/meny.php');
exit;
}
if ($_GET[page] == "" || $_GET[page] < 0 || $_GET[page] == "0")
{
$_GET[page] = 0;
}
$next = $_GET[page] + 1;
$back = $_GET[page] - 1;
$num = $_GET[page] * 10;
if($_GET[page] == "0")
{$i = 1;}
else{$i = ($_GET[page]*10)+1;}
$viso = mysql_num_rows(mysql_query("SELECT usr FROM item"));
$puslap = floor($viso/10);
$times = date("H:i");
$req = mysql_query("SELECT * FROM `item` WHERE `usr` = '$log' and `tip`='$_GET[o]' and `image`='not' ORDER BY id DESC LIMIT $num,10");
////////////////////////////
$avto=mysql_num_rows($req);
if($avto>=1){
While($mag = mysql_fetch_array($req))
{
$w=explode("*",$mag[name]);
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo"<a href="inventar.php?mod=info&id=$mag[id]">$mag[name]</a><br/><img src="pic/tip/$w[0].png" height=40 width=40> <br><a class="buuut" href="dress.php?tip=$_GET[o]&id=$mag[id]">Надеть $mag[name]</a>";
echo '</div></div></div></div></div></div></div></div></div>';
}
if ($_GET[page] > 0)
{
echo "<h1><a href="inventar.php?mod=itemruki&page=$back&&o=ruki"><img src="pic/ico/left_ico.png"></a>";
}
elseif ($_GET[page] == 0)
{
echo "<h1><img src="pic/ico/left_ico.png">";
}
echo " ";
if($_GET[page] < $puslap || $_GET[page] == "" || $_GET[page] == 0)
{echo "<a href="inventar.php?mod=itemruki&page=$next&&o=ruki"><img src="pic/ico/right_ico.png"></a></h1>";}
else
{echo "<img src="pic/ico/right_ico.png"></h1>";}
}else{
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo"Нет вещей<br/>";
echo '</div></div></div></div></div></div></div></div></div>';
/*echo'<hr>';
if ($_GET[page] > 0)
{
echo "<h1><a href="inventar.php?mod=itemruki&page=$back&&o=ruki"><img src="pic/ico/left_ico.png"></a></h1>";
}
elseif ($_GET[page] == 0)
{
echo "<h1><img src="pic/ico/left_ico.png"></h1>";
}*/
}
echo '<div class="button pad_bot_5 pad"><a href="inventar.php?">    <img src="/theme/standart/images/galochka.png" alt="*"/> Вернуться</a></div>';
break;
case 'itemnogi':
if($_GET[o]!=nogi){
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo"Ошибка!!!<br/>";
echo '</div></div></div></div></div></div></div></div></div>';
include($path.'files/down.php');
include($path.'files/meny.php');
exit;
}
if ($_GET[page] == "" || $_GET[page] < 0 || $_GET[page] == "0")
{
$_GET[page] = 0;
}
$next = $_GET[page] + 1;
$back = $_GET[page] - 1;
$num = $_GET[page] * 10;
if($_GET[page] == "0")
{$i = 1;}
else{$i = ($_GET[page]*10)+1;}
$viso = mysql_num_rows(mysql_query("SELECT usr FROM item"));
$puslap = floor($viso/10);
$times = date("H:i");
$req = mysql_query("SELECT * FROM `item` WHERE `usr` = '$log' and `tip`='$_GET[o]' and `image`='not' ORDER BY id DESC LIMIT $num,10");
////////////////////////////
$avto=mysql_num_rows($req);
if($avto>=1){
While($mag = mysql_fetch_array($req))
{
$w=explode("*",$mag[name]);
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo"<a href="inventar.php?mod=info&id=$mag[id]">$mag[name]</a><br/><img src="pic/tip/$w[0].png" height=40 width=40><br><a class="buuut" href="dress.php?tip=$_GET[o]&id=$mag[id]">Надеть $mag[name]</a></div>";
echo '</div></div></div></div></div></div></div></div></div>';
}
if ($_GET[page] > 0)
{
echo "<h1><a href="inventar.php?mod=itemnogi&page=$back&&o=nogi"><img src="pic/ico/left_ico.png"></a>";
}
elseif ($_GET[page] == 0)
{
echo "<h1><img src="pic/ico/left_ico.png">";
}
echo " ";
if($_GET[page] < $puslap || $_GET[page] == "" || $_GET[page] == 0)
{echo "<a href="inventar.php?mod=itemnogi&page=$next&&o=nogi"><img src="pic/ico/right_ico.png"></a></h1>";}
else
{echo "<img src="pic/ico/right_ico.png"></h1>";}
}else{
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo"Нет вещей<br/>";
echo '</div></div></div></div></div></div></div></div></div>';
/*echo'<hr>';
if ($_GET[page] > 0)
{
echo "<h1><a href="inventar.php?mod=itemnogi&page=$back&&o=nogi"><img src="pic/ico/left_ico.png"></a></h1>";
}
elseif ($_GET[page] == 0)
{
echo "<h1><img src="pic/ico/left_ico.png"></h1>";
}*/
}
echo '<div class="button pad_bot_5 pad"><a href="inventar.php?">    <img src="/theme/standart/images/galochka.png" alt="*"/> Вернуться</a></div>';
break;
case 'itembody':
if($_GET[o]!=body){
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo"Ошибка!!!<br/>";
echo '</div></div></div></div></div></div></div></div></div>';
include($path.'files/down.php');
include($path.'files/meny.php');
exit;
}
if ($_GET[page] == "" || $_GET[page] < 0 || $_GET[page] == "0")
{
$_GET[page] = 0;
}
$next = $_GET[page] + 1;
$back = $_GET[page] - 1;
$num = $_GET[page] * 10;
if($_GET[page] == "0")
{$i = 1;}
else{$i = ($_GET[page]*10)+1;}
$viso = mysql_num_rows(mysql_query("SELECT usr FROM item"));
$puslap = floor($viso/10);
$times = date("H:i");
$req = mysql_query("SELECT * FROM `item` WHERE `usr` = '$log' and `tip`='$_GET[o]' and `image`='not' ORDER BY id DESC LIMIT $num,10");
////////////////////////////
$avto=mysql_num_rows($req);
if($avto>=1){
While($mag = mysql_fetch_array($req))
{
$w=explode("*",$mag[name]);
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo"<a href="inventar.php?mod=info&id=$mag[id]">$mag[name]</a><br><img src="pic/tip/$w[0].png" height=40 width=40><br><a class="buuut" href="dress.php?tip=$_GET[o]&id=$mag[id]">Надеть $mag[name]</a></div>";
echo '</div></div></div></div></div></div></div></div></div>';
}
if ($_GET[page] > 0)
{
echo "<h1><a href="inventar.php?mod=itembody&page=$back&&o=body"><img src="pic/ico/left_ico.png"></a>";
}
elseif ($_GET[page] == 0)
{
echo "<h1><img src="pic/ico/left_ico.png">";
}
echo " ";
if($_GET[page] < $puslap || $_GET[page] == "" || $_GET[page] == 0)
{echo "<a href="inventar.php?mod=itembody&page=$next&&o=body"><img src="pic/ico/right_ico.png"></a></h1>";}
else
{echo "<img src="pic/ico/right_ico.png"></h1>";}
}else{
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo"Нет вещей<br/>";
echo '</div></div></div></div></div></div></div></div></div>';
/*echo'<hr>';
if ($_GET[page] > 0)
{
echo "<h1><a href="inventar.php?mod=itembody&page=$back&&o=body"><img src="pic/ico/left_ico.png"></a></h1>";
}
elseif ($_GET[page] == 0)
{
echo "<h1><img src="pic/ico/left_ico.png"></h1>";
}*/
}
echo '<div class="button pad_bot_5 pad"><a href="inventar.php?">    <img src="/theme/standart/images/galochka.png" alt="*"/> Вернуться</a></div>';
break;
case 'itemamulet':
if($_GET[o]!=amulet){
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo"Ошибка!!!<br/>";
echo '</div></div></div></div></div></div></div></div></div>';
include($path.'files/down.php');
include($path.'files/meny.php');
exit;
}
if ($_GET[page] == "" || $_GET[page] < 0 || $_GET[page] == "0")
{
$_GET[page] = 0;
}
$next = $_GET[page] + 1;
$back = $_GET[page] - 1;
$num = $_GET[page] * 10;
if($_GET[page] == "0")
{$i = 1;}
else{$i = ($_GET[page]*10)+1;}
$viso = mysql_num_rows(mysql_query("SELECT usr FROM item"));
$puslap = floor($viso/10);
$times = date("H:i");
$req = mysql_query("SELECT * FROM `item` WHERE `usr` = '$log' and `tip`='$_GET[o]' and `image`='not' ORDER BY id DESC LIMIT $num,10");
////////////////////////////
$avto=mysql_num_rows($req);
if($avto>=1){
While($mag = mysql_fetch_array($req))
{
$w=explode("*",$mag[name]);
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo"<a href="inventar.php?mod=info&id=$mag[id]">$mag[name]</a><br><img src="pic/tip/$w[0].png" height=40 width=40><br><a class="buuut" href="dress.php?tip=$_GET[o]&id=$mag[id]">Надеть $mag[name]</a></div>";
echo '</div></div></div></div></div></div></div></div></div>';
}
if ($_GET[page] > 0)
{
echo "<h1><a href="inventar.php?mod=itemamulet&page=$back&&o=amulet"><img src="pic/ico/left_ico.png"></a>";
}
elseif ($_GET[page] == 0)
{
echo "<h1><img src="pic/ico/left_ico.png">";
}
echo " ";
if($_GET[page] < $puslap || $_GET[page] == "" || $_GET[page] == 0)
{echo "<a href="inventar.php?mod=itemamulet&page=$next&&o=amulet"><img src="pic/ico/right_ico.png"></a></h1>";}
else
{echo "<img src="pic/ico/right_ico.png"></h1>";}
}else{
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo"Нет вещей<br/>";
echo '</div></div></div></div></div></div></div></div></div>';
/*echo'<hr>';
if ($_GET[page] > 0)
{
echo "<h1><a href="inventar.php?mod=itemamulet&page=$back&&o=amulet"><img src="pic/ico/left_ico.png"></a></h1>";
}
elseif ($_GET[page] == 0)
{
echo "<h1><img src="pic/ico/left_ico.png"></h1>";
}*/
}
echo '<div class="button pad_bot_5 pad"><a href="inventar.php?">    <img src="/theme/standart/images/galochka.png" alt="*"/> Вернуться</a></div>';
break;
case 'itemkolco':
if($_GET[o]!=kolco){
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo"Ошибка!!!<br/>";
echo '</div></div></div></div></div></div></div></div></div>';
include($path.'files/down.php');
include($path.'files/meny.php');
exit;
}
if ($_GET[page] == "" || $_GET[page] < 0 || $_GET[page] == "0")
{
$_GET[page] = 0;
}
$next = $_GET[page] + 1;
$back = $_GET[page] - 1;
$num = $_GET[page] * 10;
if($_GET[page] == "0")
{$i = 1;}
else{$i = ($_GET[page]*10)+1;}
$viso = mysql_num_rows(mysql_query("SELECT usr FROM item"));
$puslap = floor($viso/10);
$times = date("H:i");
$req = mysql_query("SELECT * FROM `item` WHERE `usr` = '$log' and `tip`='$_GET[o]' and `image`='not' ORDER BY id DESC LIMIT $num,10");
////////////////////////////
$avto=mysql_num_rows($req);
if($avto>=1){
While($mag = mysql_fetch_array($req))
{
$w=explode("*",$mag[name]);
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo"<a href="inventar.php?mod=info&id=$mag[id]">$mag[name]</a><br/><img src="pic/tip/$w[0].png" height=40 width=40><br><a class="buuut" href="dress.php?tip=$_GET[o]&id=$mag[id]">Надеть $mag[name]</a></div>";
echo '</div></div></div></div></div></div></div></div></div>';
}
if ($_GET[page] > 0)
{
echo "<h1><a href="inventar.php?mod=itemkolco&page=$back&&o=kolco"><img src="pic/ico/left_ico.png"></a>";
}
elseif ($_GET[page] == 0)
{
echo "<h1><img src="pic/ico/left_ico.png">";
}
echo " ";
if($_GET[page] < $puslap || $_GET[page] == "" || $_GET[page] == 0)
{echo "<a href="inventar.php?mod=itemkolco&page=$next&&o=kolco"><img src="pic/ico/right_ico.png"></a></h1>";}
else
{echo "<img src="pic/ico/right_ico.png"></h1>";}
}else{
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo"Нет колец<br/>";
echo '</div></div></div></div></div></div></div></div></div>';
/*echo'<hr>';
if ($_GET[page] > 0)
{
echo "<h1><a href="inventar.php?mod=itemkolco&page=$back&&o=kolco"><img src="pic/ico/left_ico.png"></a></h1>";
}
elseif ($_GET[page] == 0)
{
echo "<h1><img src="pic/ico/left_ico.png"></h1>";
}*/
}
echo '<div class="button pad_bot_5 pad"><a href="inventar.php?">    <img src="/theme/standart/images/galochka.png" alt="*"/> Вернуться</a></div>';
break;
case 'pits':
$weapon = mysql_result(mysql_query("SELECT COUNT(*) FROM pit_item WHERE usr='$log' and tip='weapon' and `image`='not'"),0);
$golova = mysql_result(mysql_query("SELECT COUNT(*) FROM pit_item WHERE usr='$log' and tip='golova' and `image`='not'"),0);
$body = mysql_result(mysql_query("SELECT COUNT(*) FROM pit_item WHERE usr='$log' and tip='body' and `image`='not'"),0);
$nogi = mysql_result(mysql_query("SELECT COUNT(*) FROM pit_item WHERE usr='$log' and tip='nogi' and `image`='not'"),0);
if(empty($_GET['o'])){
echo"<img src='pic/main/arr.png' alt='*'/> <a href="inventar.php?mod=pits&o=weapon">Оружие</a> ($weapon)<br/>";
echo"<img src='pic/main/arr.png' alt='*'/> <a href="inventar.php?mod=pits&o=golova">Головные уборы</a> ($golova)<br/>";
echo"<img src='pic/main/arr.png' alt='*'/> <a href="inventar.php?mod=pits&o=body">Торс</a> ($body)<br/>";
echo"<img src='pic/main/arr.png' alt='*'/> <a href="inventar.php?mod=pits&o=nogi">Обувь</a> ($nogi)<br/>";
}else{
if($_GET[o]!=weapon && $_GET[o]!=golova && $_GET[o]!=body && $_GET[o]!=nogi){
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo"Ошибка!!!<br/>";
echo '</div></div></div></div></div></div></div></div></div>';
include($path.'files/down.php');
include($path.'files/meny.php');
exit;
}
$req = mysql_query("SELECT * FROM `pit_item` WHERE `usr` = '$log' and `tip`='$_GET[o]' and `image`='not'");
////////////////////////////
$avto=mysql_num_rows($req);
if($avto>=1){
While($mag = mysql_fetch_array($req))
{
echo"<b>$mag[name]</b>
[<a href="inventar.php?mod=infopit&id=$mag[id]">инфо</a>]<br/>";
}
}else{
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo"Нет вещей<br/>";
echo '</div></div></div></div></div></div></div></div></div>';
}
}
echo '<div class="button pad_bot_5 pad"><a href="inventar.php?">    <img src="/theme/standart/images/galochka.png" alt="*"/> Вернуться</a></div>';
break;
case 'infopit':
$req = mysql_query("SELECT * FROM `pit_item` WHERE `usr` = '$log' and `id`='".mysql_real_escape_string($_GET['id'])."'");
$avto=mysql_num_rows($req);
if($avto==0){
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo"Ошибка!!!<br/>";
echo '</div></div></div></div></div></div></div></div></div>';
include($path.'files/down.php');
include($path.'files/meny.php');
exit;
}
$mag = mysql_fetch_array($req);
switch($mag[tip]){
case 'weapon':
$tip='Оружие';
break;
case 'body':
$tip='Доспехи';
break;
case 'golova':
$tip='Шлем';
break;
case 'nogi':
$tip='Сапоги';
break;
}
switch($mag[rasa]){
case 'not':
$rasa='Все';
break;
case 'wolf':
$rasa='Волк';
break;
case 'dog':
$rasa='Собака';
break;
}
echo"<b>$mag[name]</b><br/>";
$w=explode("*",$mag[name]);
echo"<img src="pic/tip/$w[0].png" height=40 width=40><br/>";
echo"Тип: $tip<br/>";
echo"<b>Характеристика</b><br/>";
if(!empty($mag[umin])) if(!empty($mag[umax]))echo"Урон: $mag[umin]/$mag[umax]<br/>";
echo"<b>Бонусы:</b><br/>";
if(!empty($mag['hp']))echo"Здоровье4: $mag[hp]<br/>";
if(!empty($mag['krit']))echo"Точность: $mag[krit]%<br/>";
if(!empty($mag['ukrit']))echo"Сокрушение: $mag[ukrit]%<br/>";
if(!empty($mag['antikrit']))echo"Стойкость: $mag[antikrit]%<br/>";
if(!empty($mag['sila']))echo"Сила: $mag[sila]<br/>";
if(!empty($mag['lovk']))echo"Ловкость: $mag[lovk]<br/>";
echo"<b>Требования:</b><br/>";
echo"Раса: $rasa<br/>";
if(!empty($mag['nlvl']))echo"Уровень: $mag[nlvl]<br/>";
echo '<div class="button pad_bot_5 pad"><a href="inventar.php?">    <img src="/theme/standart/images/galochka.png" alt="*"/> Вернуться</a></div>';
break;
case 'res':
if(empty($_GET[tip])){
///
echo"<a href="inventar.php?mod=res&tip=res">Ресурсы</a> ($res) <br/>";
}elseif($_GET[tip]==res){
if ($_GET[page] == "" || $_GET[page] < 0 || $_GET[page] == "0")
{
$_GET[page] = 0;
}
$next = $_GET[page] + 1;
$back = $_GET[page] - 1;
$num = $_GET[page] * 10;
if($_GET[page] == "0")
{$i = 1;}
else{$i = ($_GET[page]*10)+1;}
$viso = mysql_num_rows(mysql_query("SELECT usr FROM res"));
$puslap = floor($viso/10);
$times = date("H:i");
$req = mysql_query("SELECT * FROM `res` WHERE `usr` = '$log' and `tip`='res' ORDER BY id DESC LIMIT $num,10");
////////////////////////////
$avto=mysql_num_rows($req);
if($avto>=1){
While($mag = mysql_fetch_array($req))
{
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo"<img src='pic/tip/$mag[name].png' height=16 width=16> <a href="inventar.php?mod=info&act=res&id=$mag[id]">$mag[name]</a>
($mag[kol])";
echo '</div></div></div></div></div></div></div></div></div>';
}
if ($_GET[page] > 0)
{
//echo "<div class='pagesin111'><div class='pagesin1111'><div class='pagesin1112'><div class='pagesin111_right'></div><div class='pagesin111_left'></div><div class='pagesin'>";
echo "<h1><a href="inventar.php?mod=res&page=$back&&tip=res"><img src="pic/ico/left_ico.png"></a>";
}
elseif ($_GET[page] == 0)
{
/*echo '<div class="pagesin111"><div class="pagesin1111"><div class="pagesin1112"><div class="pagesin111_right"></div><div class="pagesin111_left"></div><div class="pagesin">';*/
echo "<h1><img src="pic/ico/left_ico.png">";
}
echo " ";
if($_GET[page] < $puslap || $_GET[page] == "" || $_GET[page] == 0)
{echo "<a href="inventar.php?mod=res&page=$next&&tip=res"><img src="pic/ico/right_ico.png"></a></h1>";
/*echo '</div><div class="clearFix"></div></div></div></div>';*/}
else
{echo "<img src="pic/ico/right_ico.png"></h1>";
/*echo '</div><div class="clearFix"></div></div></div></div>';*/}
}else{
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo"Нет ресурсов<br/>";
echo '</div></div></div></div></div></div></div></div></div>';
/*echo'<hr>';
if ($_GET[page] > 0)
{
echo "<h1><a href="inventar.php?mod=res&page=$back&&tip=res"><img src="pic/ico/left_ico.png"></a></h1>";
}
elseif ($_GET[page] == 0)
{
echo "<h1><img src="pic/ico/left_ico.png"></h1>";
}
*/
}
}elseif($_GET[tip]==elexirs){
if ($_GET[page] == "" || $_GET[page] < 0 || $_GET[page] == "0")
{
$_GET[page] = 0;
}
$next = $_GET[page] + 1;
$back = $_GET[page] - 1;
$num = $_GET[page] * 10;
if($_GET[page] == "0")
{$i = 1;}
else{$i = ($_GET[page]*10)+1;}
$viso = mysql_num_rows(mysql_query("SELECT usr FROM res"));
$puslap = floor($viso/10);
$times = date("H:i");
$req = mysql_query("SELECT * FROM `res` WHERE `usr` = '$log' and `tip`='elexir' ORDER BY id DESC LIMIT $num,10");
////////////////////////////
$avto=mysql_num_rows($req);
if($avto>=1){
While($mag = mysql_fetch_array($req))
{
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo"<a href="inventar.php?mod=info&act=elexir&id=$mag[id]">$mag[name]</a><br><img src='pic/tip/$mag[name].png' height=40 width=40><br><b>Количество:</b> $mag[kol] <br><a class="buuut" href="elexirs.php?id=$mag[id]">Использовать</a>";
echo '</div></div></div></div></div></div></div></div></div>';
}
if ($_GET[page] > 0)
{
echo "<h1><a href="inventar.php?mod=res&page=$back&&tip=elexirs"><img src="pic/ico/left_ico.png"></a>";
}
elseif ($_GET[page] == 0)
{
echo "<h1><img src="pic/ico/left_ico.png">";
}
echo " ";
if($_GET[page] < $puslap || $_GET[page] == "" || $_GET[page] == 0)
{echo "<a href="inventar.php?mod=res&page=$next&&tip=elexirs"><img src="pic/ico/right_ico.png"></a></h1>";}
else
{echo "<img src="pic/ico/right_ico.png"></h1>";}
}else{
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo"<b>К сожалению у тебя нет элексиров</b><br/>";
echo '</div></div></div></div></div></div></div></div></div>';
/*if ($_GET[page] > 0)
{
echo "<h1><a href="inventar.php?mod=res&page=$back&&tip=elexirs"><img src="pic/ico/left_ico.png"></a></h1>";
}
elseif ($_GET[page] == 0)
{
echo "<h1><img src="pic/ico/left_ico.png"></h1>";
}
*/
}
}elseif($_GET[tip]==scroll){
if ($_GET[page] == "" || $_GET[page] < 0 || $_GET[page] == "0")
{
$_GET[page] = 0;
}
$next = $_GET[page] + 1;
$back = $_GET[page] - 1;
$num = $_GET[page] * 10;
if($_GET[page] == "0")
{$i = 1;}
else{$i = ($_GET[page]*10)+1;}
$viso = mysql_num_rows(mysql_query("SELECT usr FROM res"));
$puslap = floor($viso/10);
$times = date("H:i");
$req = mysql_query("SELECT * FROM `res` WHERE `usr` = '$log' and `tip`='scroll' ORDER BY id DESC LIMIT $num,10");
////////////////////////////
$avto=mysql_num_rows($req);
if($avto>=1){
While($mag = mysql_fetch_array($req))
{
echo '<div class="fon bgray"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo"<a href="inventar.php?mod=info&act=scroll&id=$mag[id]">$mag[name]</a> $mag[kol] <br><img src="pic/tip/$mag[name].png" height=40 width=40><br><a class="buuut" href="scroll.php?id=$mag[id]">Использовать</a>";
echo '</div></div></div></div></div></div></div></div></div>';
}
if ($_GET[page] > 0)
{
echo "<h1><a href="inventar.php?mod=res&page=$back&&tip=scroll"><img src="pic/ico/left_ico.png"></a>";
}
elseif ($_GET[page] == 0)
{
echo "<h1><img src="pic/ico/left_ico.png">";
}
echo " ";
if($_GET[page] < $puslap || $_GET[page] == "" || $_GET[page] == 0)
{echo "<a href="inventar.php?mod=res&page=$next&&tip=scroll"><img src="pic/ico/right_ico.png"></a></h1>";}
else
{echo "<img src="pic/ico/right_ico.png"></h1>";}
}else{
echo '<div class="zagolovok">
<div class="zagolovok1">
<div class="zagolovok2">
<div class="zagolovok_right"></div>
<div class="zagolovok_left"></div>
<div class="ch_name">Стоп!</div>
<div class="clearFix"></div>
</div>
</div>
</div>';
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo"У вас нет свитков модификации<br/>";
echo '</div></div></div></div></div></div></div></div></div>';
/*echo'<hr>';
if ($_GET[page] > 0)
{
echo "<h1><a href="inventar.php?mod=res&page=$back&&tip=scroll"><img src="pic/ico/left_ico.png"></a></h1>";
}
elseif ($_GET[page] == 0)
{
echo "<h1><img src="pic/ico/left_ico.png"></h1>";
}
*/
}
}else{
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo"Ошибка!!! Доступ закрыт!<br/>";
echo '</div></div></div></div></div></div></div></div></div>';
}
echo "<div class="button pad_bot_5 pad"><a href="inventar.php?">    <img src="/theme/standart/images/galochka.png" alt="*"/> Вернуться</a></div>";
break;
case 'info':
if($_GET[act]==res or $_GET[act]==elexir or $_GET[act]==scroll){
$req = mysql_query("SELECT * FROM `res` WHERE `usr` = '$log' and `id`='".mysql_real_escape_string($_GET['id'])."'");
$avto=mysql_num_rows($req);
if($avto==0){
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo"Ошибка!!!<br/>";
echo '</div></div></div></div></div></div></div></div></div>';
include($path.'files/down.php');
include($path.'files/meny.php');
exit;
}
$mag = mysql_fetch_array($req);
switch($mag[tip]){
case 'res':
$tip='Ресурс';
break;
case 'scroll':
$tip='Свиток';
break;
case 'elexir':
$tip='Элексир';
break;
}
echo "<div class='zagolovok'><div class='zagolovok1'><div class='zagolovok2'><div class='zagolovok_right'></div><div class='zagolovok_left'></div>
<div class='ch_name'>".$mag['name']."</div><div class='clearFix'></div></div></div></div>";
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
/*echo"<b>$mag[name]</b><br/>";*/
echo "<img src="pic/tip/$mag[name].png" height=40 width=40><br/>
<b>Тип:</b> $tip<br/>";
/*echo" Едениц: $mag[give]<br/>";*/
echo"<b>Количество:</b> $mag[kol]";
echo '</div></div></div></div></div></div></div></div></div>';
}elseif($_GET['act']=='shems'){
$req = mysql_query("SELECT * FROM `shems` WHERE `usr` = '$log' and `id`='".mysql_real_escape_string($_GET['id'])."'");
$avto=mysql_num_rows($req);
if($avto==0){
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo"Ошибка!!!<br/>";
echo '</div></div></div></div></div></div></div></div></div>';
include($path.'files/down.php');
include($path.'files/meny.php');
exit;
}
$mag = mysql_fetch_array($req);
if($mag['unknow']=='0'){$mag['name']='Скрытая';}
echo "<div class='zagolovok'><div class='zagolovok1'><div class='zagolovok2'><div class='zagolovok_right'></div><div class='zagolovok_left'></div>
<div class='ch_name'>Схема: ".$mag['name']."</div><div class='clearFix'></div></div></div></div>";
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
/*echo'<b>Схема:</b> <b>'.$mag['name'].'</b><br/>';*/
/*echo'<b>Количество:</b> '.$mag['kol'].'<br/>';*/
echo'<b>Цена создания:</b> <img width="12" height="12" src="pic/money.png">'.$mag['scena'].'<br/>';
echo'<b>Требуются ресурсы:</b> <br/>';
$res=explode("|",$mag[nead_res]);
$kres=count($res);
$i=0;
$b=1;
while($b<=$kres){
$r=explode(",",$res[$i]);
$lat_name=$r[0];
$kol=$r[1];
$req = mysql_query("SELECT name FROM `mdrop` WHERE `lat_name`='$lat_name' LIMIT 1");
$reso = mysql_fetch_array($req);
echo"<img src="pic/tip/$reso[name].png" height=16 width=16> <b>$reso[name]</b> - <font color='#71FFF8'>$kol</font><br>";
$i++;
$b++;
}
echo '</div></div></div></div></div></div></div></div></div>';
if($mag['unknow']=='1'){
switch($mag[klas]){
case 'not':
$klas='Все';
break;
case 'wizard':
$klas='Вампир';
break;
case 'fighert':
$klas='Оборотень';
break;
}
switch($mag[tip]){
case 'weapon':
$tip='Оружие';
break;
case 'body':
$tip='Торс';
break;
case 'golova':
$tip='Голова';
break;
case 'nogi':
$tip='Обувь';
break;
case 'shit':
$tip='Щит';
break;
case 'poyas':
$tip='Пояс';
break;
case 'plash':
$tip='Плащ';
break;
case 'ruki':
$tip='На руки';
break;
case 'kolco':
$tip='Кольцо';
break;
case 'amulet':
$tip='Амулет';
break;
}
echo '</div></div></div></div></div></div></div></div></div>';
echo "<div class='zagolovok'><div class='zagolovok1'><div class='zagolovok2'><div class='zagolovok_right'></div><div class='zagolovok_left'></div>
<div class='ch_name'>$mag[name]</div><div class='clearFix'></div></div></div></div>";
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
$w=explode("*",$mag[name]);
echo"<b>Тип:</b> $tip";
echo"<br><b>Вещь:</b>";
echo' '.$mag['name_item'].'<br/>';
echo"<img src="pic/tip/$w[0].png" height=40 width=40><br/>";
echo "<b>Бонусы:</b><br/>";
if(!empty($mag[umin])) if(!empty($mag[umax]))echo "<b>Урон:</b> <font color='lime'>+$mag[umin]/+$mag[umax]</font><br/>";
if(!empty($mag['hp']))echo "<b>Здоровье44:</b> <font color='lime'>+$mag[hp]</font><br/>";
if(!empty($mag['mp']))echo "<b>Мана:</b> <font color='lime'>+$mag[mp]</font><br/>";
if(!empty($mag['sila']))echo "Сила: <font color='lime'>+$mag[sila]</font><br/>";
if(!empty($mag['lovk']))echo "<b>Ловкость44:</b> <font color='lime'>+$mag[lovk]</font><br/>";
if(!empty($mag['um']))echo "<b>Интелект:</b> <font color='lime'>+$mag[um]</font><br/>";
if(!empty($mag['prot']))echo "<b>Защита:</b> <font color='lime'>+$mag[prot]</font><br/>";
if(!empty($mag['krit']))echo "<b>Точность:</b> <font color='lime'>+$mag[krit]%</font><br/>";
if(!empty($mag['ukrit']))echo "<b>Сокрушение:</b> <font color='lime'>+$mag[ukrit]%</font><br/>";
if(!empty($mag['antikrit']))echo "<b>Стойкость:</b> <font color='lime'>+$mag[antikrit]%</font><br/>";
echo '</div></div></div></div></div></div></div></div></div>';
}
}elseif($_GET[act]==aura){
$req = mysql_query("SELECT * FROM `item_aura` WHERE `usr` = '$log' and `id`='".mysql_real_escape_string($_GET['id'])."'");
$avto=mysql_num_rows($req);
if($avto==0){
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo"Ошибка!!!<br/>";
echo '</div></div></div></div></div></div></div></div></div>';
include($path.'files/down.php');
exit;
}
$mag = mysql_fetch_array($req);
switch($mag[klas]){
case 'not':
$klas='Все';
break;
case 'wizard':
$klas='Вампир';
break;
case 'fighert':
$klas='Оборотень';
break;
}
echo "<div class='zagolovok'><div class='zagolovok1'><div class='zagolovok2'><div class='zagolovok_right'></div><div class='zagolovok_left'></div>
<div class='ch_name'>$mag[name]</div><div class='clearFix'></div></div></div></div>";
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
//echo"<b>$mag[name]</b><br/>";
$w=explode("*",$mag[name]);
echo"<img src="pic/tip/$w[0].png" height=40 width=40><br/>";
echo '<b>Бонусы:</b><br>';
if(!empty($mag[umin])) if(!empty($mag[umax]))echo "<b>Урон:</b> <font color='lime'>+$mag[umin]/+$mag[umax]</font><br/>";
if(!empty($mag['hp']))echo "<b>Здоровье:</b> <font color='lime'>+$mag[hp]</font><br/>";
if(!empty($mag['mp']))echo "<b>Мана:</b> <font color='lime'>+$mag[mp]</font><br/>";
if(!empty($mag['sila']))echo "Сила: <font color='lime'>+$mag[sila]</font><br/>";
if(!empty($mag['lovk']))echo "<b>Ловкость:</b> <font color='lime'>+$mag[lovk]</font><br/>";
if(!empty($mag['um']))echo "<b>Интелект:</b> <font color='lime'>+$mag[um]</font><br/>";
if(!empty($mag['prot']))echo "<b>Защита:</b> <font color='lime'>+$mag[prot]</font><br/>";
if(!empty($mag['krit']))echo "<b>Точность:</b> <font color='lime'>+$mag[krit]%</font><br/>";
if(!empty($mag['ukrit']))echo "<b>Сокрушение:</b> <font color='lime'>+$mag[ukrit]%</font><br/>";
if(!empty($mag['antikrit']))echo "<b>Стойкость:</b> <font color='lime'>+$mag[antikrit]%</font><br/>";
echo '</div></div></div></div></div></div></div></div></div>';
}
else{
$req = mysql_query("SELECT * FROM `item` WHERE `usr` = '$log' and `id`='".mysql_real_escape_string($_GET['id'])."'");
$avto=mysql_num_rows($req);
if($avto==0){
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo"Ошибка!!!<br/>";
echo '</div></div></div></div></div></div></div></div></div>';
include($path.'files/down.php');
include($path.'files/meny.php');
exit;
}
$mag = mysql_fetch_array($req);
switch($mag[tip]){
case 'weapon':
$tip='Оружие';
break;
case 'body':
$tip='Торс';
break;
case 'golova':
$tip='Голова';
break;
case 'nogi':
$tip='Обувь';
break;
case 'shit':
$tip='Щит';
break;
case 'poyas':
$tip='Пояс';
break;
case 'plash':
$tip='Плащ';
break;
case 'ruki':
$tip='Руки';
break;
case 'kolco':
$tip='Кольцо';
break;
case 'amulet':
$tip='Амулет';
break;
}
switch($mag[klas]){
case 'not':
$klas='Все';
break;
case 'wizard':
$klas='Вампир';
break;
case 'fighert':
$klas='Оборотень';
break;
}
echo "<div class='zagolovok'><div class='zagolovok1'><div class='zagolovok2'><div class='zagolovok_right'></div><div class='zagolovok_left'></div>
<div class='ch_name'>$mag[name]</div><div class='clearFix'></div></div></div></div>";
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
$w=explode("*",$mag[name]);
echo"<img src="pic/tip/$w[0].png" height=40 width=40><br/>";
/*echo"<b>Тип:</b> $tip<br/>";*/
echo "<b>Бонусы:</b><br/>";
if(!empty($mag[umin])) if(!empty($mag[umax]))echo "Урон: <font color='lime'>+$mag[umin]/+$mag[umax]</font><br/>";
if(!empty($mag['hp']))echo "Здоровье: <font color='lime'>+$mag[hp]</font><br/>";
if(!empty($mag['mp']))echo "Мана: <font color='lime'>+$mag[mp]</font><br/>";
if(!empty($mag['sila']))echo "Сила: <font color='lime'>+$mag[sila]</font><br/>";
if(!empty($mag['lovk']))echo "Ловкость: <font color='lime'>+$mag[lovk]</font><br/>";
if(!empty($mag['um']))echo "Интелект: <font color='lime'>+$mag[um]</font><br/>";
if(!empty($mag['prot']))echo "Защита: <font color='lime'>+$mag[prot]</font><br/>";
if(!empty($mag['krit']))echo "Точность: <font color='lime'>+$mag[krit]%</font><br/>";
if(!empty($mag['ukrit']))echo "Сокрушение: <font color='lime'>+$mag[ukrit]%</font><br/>";
if(!empty($mag['antikrit']))echo "Стойкость: <font color='lime'>+$mag[antikrit]%</font><br/>";
echo '</div></div></div></div></div></div></div></div></div>';
}
echo '<div class="button pad_bot_5 pad"> <a href="inventar.php?">  <img src="/theme/standart/images/galochka.png" alt="*"/> Вернуться</a></div>';
echo '<div class="button pad_bot_5 pad"> <a href="narad.php?">  <img src="/theme/standart/images/galochka.png" alt="*"/> К снаряжению</a></div>';
break;
case 'aura':
if ($_GET[page] == "" || $_GET[page] < 0 || $_GET[page] == "0")
{
$_GET[page] = 0;
}
$next = $_GET[page] + 1;
$back = $_GET[page] - 1;
$num = $_GET[page] * 10;
if($_GET[page] == "0")
{$i = 1;}
else{$i = ($_GET[page]*10)+1;}
$viso = mysql_num_rows(mysql_query("SELECT usr FROM item_aura"));
$puslap = floor($viso/10);
$times = date("H:i");
$req = mysql_query("SELECT * FROM `item_aura` WHERE `usr` = '$log' and `bonus` = '0' ORDER BY id DESC LIMIT $num,10");
////////////////////////////
$avto=mysql_num_rows($req);
if($avto>=1){
While($mag = mysql_fetch_array($req))
{
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
$w=explode("*",$mag[name]);
echo"<a href="inventar.php?mod=info&act=aura&id=$mag[id]">$mag[name]</a><br><img src="pic/tip/$w[0].png" height=40 width=40><br> ";
echo"Количество: $mag[kol] <br><a class="buuut" href="aura.php?id=$mag[id]">Использовать $mag[name]</a>";
echo '</div></div></div></div></div></div></div></div></div>';
}
if ($_GET[page] > 0)
{
echo "<h1><a href="inventar.php?mod=aura&page=$back"><img src="pic/ico/left_ico.png"></a>";
}
elseif ($_GET[page] == 0)
{
echo "<h1><img src="pic/ico/left_ico.png">";
}
echo " ";
if($_GET[page] < $puslap || $_GET[page] == "" || $_GET[page] == 0)
{echo "<a href="inventar.php?mod=aura&page=$next"><img src="pic/ico/right_ico.png"></a></h1>";}
else
{echo "<img src="pic/ico/right_ico.png"></h1>";}
}else{
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo"Нет эффектов<br/>";
echo '</div></div></div></div></div></div></div></div></div>';
/*echo'<hr>';
if ($_GET[page] > 0)
{
echo "<h1><a href="inventar.php?mod=aura"><img src="pic/ico/left_ico.png"></a></h1>";
}
elseif ($_GET[page] == 0)
{
echo "<h1><img src="pic/ico/left_ico.png"></h1>";
}*/
}
break;
case 'bonus':
if ($_GET[page] == "" || $_GET[page] < 0 || $_GET[page] == "0")
{
$_GET[page] = 0;
}
$next = $_GET[page] + 1;
$back = $_GET[page] - 1;
$num = $_GET[page] * 10;
if($_GET[page] == "0")
{$i = 1;}
else{$i = ($_GET[page]*10)+1;}
$viso = mysql_num_rows(mysql_query("SELECT usr FROM item_aura"));
$puslap = floor($viso/10);
$times = date("H:i");
$req = mysql_query("SELECT * FROM `item_aura` WHERE `usr` = '$log' and `bonus` = '1' ORDER BY id DESC LIMIT $num,10");
////////////////////////////
$avto=mysql_num_rows($req);
if($avto>=1){
While($mag = mysql_fetch_array($req))
{
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
$w=explode("*",$mag[name]);
echo" <a href="inventar.php?mod=info&act=aura&id=$mag[id]">$mag[name]</a><br><img src="pic/tip/$w[0].png" height=40 width=40><br/>";
echo"<b>Количество:</b> $mag[kol]<br><a class="buuut" href="aura.php?id=$mag[id]">Использовать $mag[name]</a></div>";
echo '</div></div></div></div></div></div></div></div></div>';
}
if ($_GET[page] > 0)
{
echo "<h1><a href="inventar.php?mod=bonus&page=$back"><img src="pic/ico/left_ico.png"></a>";
}
elseif ($_GET[page] == 0)
{
echo "<h1><img src="pic/ico/left_ico.png">";
}
echo " ";
if($_GET[page] < $puslap || $_GET[page] == "" || $_GET[page] == 0)
{echo "<a href="inventar.php?mod=bonus&page=$next"><img src="pic/ico/right_ico.png"></a></h1>";}
else
{echo "<img src="pic/ico/right_ico.png"></h1>";}
}else{
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo"Нет бонусных умений<br/>";
echo '</div></div></div></div></div></div></div></div></div>';
/*echo'<hr>';
if ($_GET[page] > 0)
{
echo "<h1><a href="inventar.php?mod=bonus"><img src="pic/ico/left_ico.png"></a></h1>";
}
elseif ($_GET[page] == 0)
{
echo "<h1><img src="pic/ico/left_ico.png"></h1>";
}*/
}
echo '<div class="button pad_bot_5 pad"><a href="inventar.php?">    <img src="/theme/standart/images/galochka.png" alt="*"/> Вернуться</a></div>';
break;
}
include($path.'files/down.php');
include($path.'files/meny.php');
?>