Файл: vesh.php
Строк: 175
<?php
include_once("files/zag.php");
include_once("files/ini.php");
$polz=mysql_query("SELECT * FROM `users` WHERE `udata0`='$log' AND `udata1`='$pas' LIMIT 1");
if(mysql_num_rows($polz)==0){
header ("Location: index.php?error");
echo'<div class="p">Ошибка! Пользователь с таким логином и паролем не зарегистрирован, или пароль/логин неверен! <a href="index.php">На главную</a><br>';exit;
}else{
include_once"files/up.php";
switch(@$go) {
default:
echo"<a href="vesh.php?&go=pokypka&vid=riba">Для рыбалки</a></br>
<a href="vesh.php?&go=pokypka&vid=elic">Элексиры</a></br>
<a href="vesh.php?&go=pokypka&vid=scrol">Свитки</a></br>
<a href="vesh.php?&go=pokypka&vid=soski">Soulshot|Spiritshots</a></br></br>
<a href="gorod.php?">В город</a>";
break;
case 'pokypka':
if($vid=="riba"){
$vesh = mysql_query("SELECT * from `drop_vesh` where `vesh4`='Наживка' ");
if (mysql_affected_rows()==0)
{
echo "Вешей нет";
}
else
{
while($row=mysql_fetch_array($vesh))
{
$startan = $_GET['startan'];
$row[vesh1]=number_format($row[vesh1]);
if($rows[vesh4]=="Удочка"){echo"<img src='pic/uda.jpg' alt='pic'/> ";}
if($row[vesh4]=="Healing Potion"){echo"<img src='pic/beginnerpotion.jpg' alt='pic'/>";}
if($row[vesh4]=="Greater Healing Potion"){echo"<img src='pic/beginnerpotion.jpg' alt='pic'/>";}
if($row[vesh4]=="MP Potion"){echo"<img src='pic/manapotion.jpg' alt='pic'/>";}
if($row[vesh4]=="Greater MP Potion"){echo"<img src='pic/manadrug.jpg' alt='pic'/>";}
if($row[vesh4]=="Soulshot"){echo"<img src='pic/soulshotng-grade.jpg' alt='pic'/>";}
if($row[vesh4]=="Spiritshots"){echo"<img src='pic/spiritshotng-grade.jpg' alt='pic'/>";}
if($row[vesh4]=="Scroll: Armor"){echo"<img src='pic/scrollenchantarmor.jpg' alt='pic'/>";}
if($row[vesh4]=="Scroll: Weapon"){echo"<img src='pic/scrollenchantweapon.jpg' alt='pic'/>";}
if($row[vesh4]=="Blessed Scroll: Armor"){echo"<img src='pic/blessedarmor.png' alt='pic'/>";}
if($row[vesh4]=="Blessed Scroll: Weapon"){echo"<img src='pic/blessed.jpg' alt='pic'/>";}
if($row[vesh4]=="Наживка"){echo"<img src='pic/lure.jpg' alt='pic'/>";}
if($row[vesh6]=="none"){$crystal_type="NG";}
if($row[vesh6]=="d"){$crystal_type="D";}
if($row[vesh6]=="c"){$crystal_type="C";}
if($row[vesh6]=="b"){$crystal_type="B";}
if($row[vesh6]=="a"){$crystal_type="A";}
if($row[vesh6]=="s"){$crystal_type="S";}
echo" <a href="byvesh.php?id=$row[id]">$row[vesh4] $crystal_type</a>[$row[vesh1] аден ]<br/>";
}
}
}else
if($vid=="soski"){
$vesh = mysql_query("SELECT * from `drop_vesh` where `vesh4`='Soulshot' or `vesh4`='Spiritshots' ");
if (mysql_affected_rows()==0)
{
echo "Вешей нет";
}
else
{
while($row=mysql_fetch_array($vesh))
{
$startan = $_GET['startan'];
$row[vesh1]=number_format($row[vesh1]);
if($rows[vesh4]=="Удочка"){echo"<img src='pic/uda.jpg' alt='pic'/> ";}
if($row[vesh4]=="Healing Potion"){echo"<img src='pic/beginnerpotion.jpg' alt='pic'/>";}
if($row[vesh4]=="Greater Healing Potion"){echo"<img src='pic/beginnerpotion.jpg' alt='pic'/>";}
if($row[vesh4]=="MP Potion"){echo"<img src='pic/manapotion.jpg' alt='pic'/>";}
if($row[vesh4]=="Greater MP Potion"){echo"<img src='pic/manadrug.jpg' alt='pic'/>";}
if($row[vesh4]=="Soulshot"){echo"<img src='pic/soulshotng-grade.jpg' alt='pic'/>";}
if($row[vesh4]=="Spiritshots"){echo"<img src='pic/spiritshotng-grade.jpg' alt='pic'/>";}
if($row[vesh4]=="Scroll: Armor"){echo"<img src='pic/scrollenchantarmor.jpg' alt='pic'/>";}
if($row[vesh4]=="Scroll: Weapon"){echo"<img src='pic/scrollenchantweapon.jpg' alt='pic'/>";}
if($row[vesh4]=="Blessed Scroll: Armor"){echo"<img src='pic/blessedarmor.png' alt='pic'/>";}
if($row[vesh4]=="Blessed Scroll: Weapon"){echo"<img src='pic/blessed.jpg' alt='pic'/>";}
if($row[vesh6]=="none"){$crystal_type="NG";}
if($row[vesh6]=="d"){$crystal_type="D";}
if($row[vesh6]=="c"){$crystal_type="C";}
if($row[vesh6]=="b"){$crystal_type="B";}
if($row[vesh6]=="a"){$crystal_type="A";}
if($row[vesh6]=="s"){$crystal_type="S";}
echo" <a href="byvesh.php?id=$row[id]">$row[vesh4] $crystal_type</a>[$row[vesh1] аден ]<br/>";
}
}
}elseif($vid=="scrol"){
if($scrols=="" or $scrols=="standart"){
echo"<b>Scrolls</b> | <a href="vesh.php?go=pokypka&vid=scrol&scrols=blessed">Blessed Scrolls</a><br/>";
$vesh = mysql_query("SELECT * from `drop_vesh` where `vesh4`='Scroll: Weapon' or `vesh4`='Scroll: Armor' ORDER BY `id` ASC ");
if (mysql_affected_rows()==0)
{
echo "Вешей нет";
}
else
{
while($row=mysql_fetch_array($vesh))
{
$startan = $_GET['startan'];
$row[vesh1]=number_format($row[vesh1]);
if($row[vesh4]=="Healing Potion"){echo"<img src='pic/beginnerpotion.jpg' alt='pic'/>";}
if($row[vesh4]=="Greater Healing Potion"){echo"<img src='pic/beginnerpotion.jpg' alt='pic'/>";}
if($row[vesh4]=="MP Potion"){echo"<img src='pic/manapotion.jpg' alt='pic'/>";}
if($row[vesh4]=="Greater MP Potion"){echo"<img src='pic/manadrug.jpg' alt='pic'/>";}
if($row[vesh4]=="Soulshot"){echo"<img src='pic/soulshotng-grade.jpg' alt='pic'/>";}
if($row[vesh4]=="Spiritshots"){echo"<img src='pic/spiritshotng-grade.jpg' alt='pic'/>";}
if($row[vesh4]=="Scroll: Armor"){echo"<img src='pic/scrollenchantarmor.jpg' alt='pic'/>";}
if($row[vesh4]=="Scroll: Weapon"){echo"<img src='pic/scrollenchantweapon.jpg' alt='pic'/>";}
if($row[vesh4]=="Blessed Scroll: Armor"){echo"<img src='pic/blessedarmor.png' alt='pic'/>";}
if($row[vesh4]=="Blessed Scroll: Weapon"){echo"<img src='pic/blessed.jpg' alt='pic'/>";}
if($row[vesh6]=="none"){$crystal_type="NG";}
if($row[vesh6]=="d"){$crystal_type="D";}
if($row[vesh6]=="c"){$crystal_type="C";}
if($row[vesh6]=="b"){$crystal_type="B";}
if($row[vesh6]=="a"){$crystal_type="A";}
if($row[vesh6]=="s"){$crystal_type="S";}
echo" <a href="byvesh.php?id=$row[id]">$row[vesh4] $crystal_type</a>[$row[vesh1] аден ]<br/>";
}
}}elseif($scrols=="blessed"){
echo"<a href="vesh.php?go=pokypka&vid=scrol&scrols=standart">Scrolls</a> | <b>Blessed Scrolls</b><br/>";
$vesh = mysql_query("SELECT * from `drop_vesh` where `vesh4`='Blessed Scroll: Weapon' or `vesh4`='Blessed Scroll: Armor' ORDER BY `id` ASC ");
if (mysql_affected_rows()==0)
{
echo "Вешей нет";
}
else
{
while($row=mysql_fetch_array($vesh))
{
$startan = $_GET['startan'];
$row[vesh1]=number_format($row[vesh1]);
if($row[vesh4]=="Healing Potion"){echo"<img src='pic/beginnerpotion.jpg' alt='pic'/>";}
if($row[vesh4]=="Greater Healing Potion"){echo"<img src='pic/beginnerpotion.jpg' alt='pic'/>";}
if($row[vesh4]=="MP Potion"){echo"<img src='pic/manapotion.jpg' alt='pic'/>";}
if($row[vesh4]=="Greater MP Potion"){echo"<img src='pic/manadrug.jpg' alt='pic'/>";}
if($row[vesh4]=="Soulshot"){echo"<img src='pic/soulshotng-grade.jpg' alt='pic'/>";}
if($row[vesh4]=="Spiritshots"){echo"<img src='pic/spiritshotng-grade.jpg' alt='pic'/>";}
if($row[vesh4]=="Scroll: Armor"){echo"<img src='pic/scrollenchantarmor.jpg' alt='pic'/>";}
if($row[vesh4]=="Scroll: Weapon"){echo"<img src='pic/scrollenchantweapon.jpg' alt='pic'/>";}
if($row[vesh4]=="Blessed Scroll: Armor"){echo"<img src='pic/blessedarmor.png' alt='pic'/>";}
if($row[vesh4]=="Blessed Scroll: Weapon"){echo"<img src='pic/blessed.jpg' alt='pic'/>";}
if($row[vesh6]=="none"){$crystal_type="NG";}
if($row[vesh6]=="d"){$crystal_type="D";}
if($row[vesh6]=="c"){$crystal_type="C";}
if($row[vesh6]=="b"){$crystal_type="B";}
if($row[vesh6]=="a"){$crystal_type="A";}
if($row[vesh6]=="s"){$crystal_type="S";}
echo" <a href="byvesh.php?id=$row[id]">$row[vesh4] $crystal_type</a>[$row[vesh1] аден ]<br/>";
}
}
}
}elseif($vid=="elic"){
$vesh = mysql_query("SELECT * from `drop_vesh` where `vesh4`='Healing Potion' or `vesh4`='Greater Healing Potion' or `vesh4`='MP Potion' or `vesh4`='Greater MP Potion' ");
if (mysql_affected_rows()==0)
{
echo "Вешей нет";
}
else
{
while($row=mysql_fetch_array($vesh))
{
$startan = $_GET['startan'];
$row[vesh1]=number_format($row[vesh1]);
if($rows[vesh4]=="Удочка"){echo"<img src='pic/uda.jpg' alt='pic'/> ";}
if($row[vesh4]=="Healing Potion"){echo"<img src='pic/beginnerpotion.jpg' alt='pic'/>";}
if($row[vesh4]=="Greater Healing Potion"){echo"<img src='pic/beginnerpotion.jpg' alt='pic'/>";}
if($row[vesh4]=="MP Potion"){echo"<img src='pic/manapotion.jpg' alt='pic'/>";}
if($row[vesh4]=="Greater MP Potion"){echo"<img src='pic/manadrug.jpg' alt='pic'/>";}
if($row[vesh4]=="Soulshot"){echo"<img src='pic/soulshotng-grade.jpg' alt='pic'/>";}
if($row[vesh4]=="Spiritshots"){echo"<img src='pic/spiritshotng-grade.jpg' alt='pic'/>";}
if($row[vesh4]=="Scroll: Armor"){echo"<img src='pic/scrollenchantarmor.jpg' alt='pic'/>";}
if($row[vesh4]=="Scroll: Weapon"){echo"<img src='pic/scrollenchantweapon.jpg' alt='pic'/>";}
if($row[vesh4]=="Blessed Scroll: Armor"){echo"<img src='pic/blessedarmor.png' alt='pic'/>";}
if($row[vesh4]=="Blessed Scroll: Weapon"){echo"<img src='pic/blessed.jpg' alt='pic'/>";}
if($row[vesh6]=="none"){$crystal_type="NG";}
if($row[vesh6]=="d"){$crystal_type="D";}
if($row[vesh6]=="c"){$crystal_type="C";}
if($row[vesh6]=="b"){$crystal_type="B";}
if($row[vesh6]=="a"){$crystal_type="A";}
if($row[vesh6]=="s"){$crystal_type="S";}
echo" <a href="byvesh.php?id=$row[id]">$row[vesh4] $crystal_type</a>[$row[vesh1] аден ]<br/>";
}
}
}
break;
}
}
include_once"files/down.php";
?>