Файл: shop_b.php
Строк: 96
<?php
include 'inc/_conf.php';
include 'inc/header.php';
include ("inc/verh.php");
include ("inc/vuvod.php");
$g=mysql_query("SELECT * FROM `pers` WHERE `nick`='$nick' AND `pass`='$pass' LIMIT 1");
if(mysql_num_rows($g)==1){
switch($_GET[mod]){
default:
$weapon = mysql_result(mysql_query("SELECT COUNT(*) FROM turaga_item WHERE usr='$nick' and tip='weapon' and `image`='not'"),0);
$golova = mysql_result(mysql_query("SELECT COUNT(*) FROM turaga_item WHERE usr='$nick' and tip='golova' and `image`='not'"),0);
$shit = mysql_result(mysql_query("SELECT COUNT(*) FROM turaga_item WHERE usr='$nick' and tip='shit' and `image`='not'"),0);
$ruki = mysql_result(mysql_query("SELECT COUNT(*) FROM turaga_item WHERE usr='$nick' and tip='ryka' and `image`='not'"),0);
$nogi = mysql_result(mysql_query("SELECT COUNT(*) FROM turaga_item WHERE usr='$nick' and tip='nogi' and `image`='not'"),0);
$body = mysql_result(mysql_query("SELECT COUNT(*) FROM turaga_item WHERE usr='$nick' and tip='body' and `image`='not'"),0);
echo "<img src="pictures/icons/verhays.gif"> <a href="item.php?mod=item&o=weapon">Оружие</a><br/>";
echo "<img src="pictures/icons/verhays.gif"> <a href="item.php?mod=itemgolova&o=golova">Маска</a><br/>";
echo "<img src="pictures/icons/verhays.gif"> <a href="item.php?mod=itemshit&o=shit">Щиты</a><br/>";
echo "<img src="pictures/icons/verhays.gif"> <a href="item.php?mod=itemruki&o=ryka">Перчатки</a><br/>";
echo "<img src="pictures/icons/verhays.gif"> <a href="item.php?mod=itemnogi&o=nogi">Ботинки</a><br/>";
break;
case 'info':
$req = mysql_query("SELECT * FROM `turaga_item` WHERE `usr` = '$nick' and `id`='".mysql_real_escape_string($_GET['id'])."'");
$avto=mysql_num_rows($req);
if($avto==0){
echo'Ошибка!';
include ("inc/foter.php");
exit;
}
$mag = mysql_fetch_array($req);
echo"<b>$mag[name]</b><br/>";
$w=explode("*",$mag[name]);
echo"<img src="pictures/inventar/$w[0].gif" height=32 width=32><br/>";
echo"Атака любым оружием: <font color='IndianRed1'>+$mag[atak]</font><br/>";
echo"Увеличивает макс. здоровье: <font color='IndianRed1'>+$mag[hp]</font><br/>";
echo"<font color='IndianRed1'>Требования уровня мастерства:</font><br/>";
echo"Петя Верстак: <font color='IndianRed1'>$mag[petya]</font> <img src='/pictures/icons/crisha.gif' alt='*'/><br/>
Яша в поле дым: <font color='IndianRed1'>$mag[yasha]</font> <img src='/pictures/icons/crisha.gif' alt='*'/><br/>
Нинка золотая ручка: <font color='IndianRed1'>$mag[nina]</font> <img src='/pictures/icons/crisha.gif' alt='*'/>
";
echo '<div class="bts"></div>';
echo "<img src="pictures/icons/zon.png"> <a href="item.php?mod=splaw&id=$mag[id]">Сплавить на </a>($udacha <img src='/pictures/icons/siga.gif' alt='*'/>)";
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
break;
}
}else{
echo "Пройдите авторизацию!";
echo "<hr><a href="index.php">На главную</a>";
}
include ("inc/foter.php");
?>