Вход Регистрация
Файл: snarajenie.php
Строк: 107
<?php
include 'inc/_conf.php';
include 
'inc/header.php';
echo
'<div class="menu">';
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){



$req mysql_query("SELECT id,name FROM `l2_item` WHERE `usr` = '$nick' and `tip`='golova' and `image`='yes'");
$avto=mysql_num_rows($req);
if(
$avto==0){
echo
"<br><img src="style/img/null.png" height=50 width=50> Голова: <u>не одето</u>";
}else{
$mag mysql_fetch_array($req);
$w=explode("*",$mag[name]);

$req mysql_query("SELECT * FROM `l2_item` WHERE `usr` = '$nick' and `tip`='golova' and `image`='yes' ");
////////////////////////////
$avto=mysql_num_rows($req);
if(
$avto==1){
$res mysql_fetch_array($req);

echo
"<br/><img src="style/shmot/$w[0].gif" height=50 width=50> Голова: <a href="snyat_item.php?tip=golova">$mag[name]</a>";
}}

$req mysql_query("SELECT id,name FROM `l2_item` WHERE `usr` = '$nick' and `tip`='weapon' and `image`='yes'");
$avto=mysql_num_rows($req);
if(
$avto==0){
echo
"<br><img src="style/img/null.png" height=50 width=50> Левая рука: <u>не одето</u>";
}else{
$mag mysql_fetch_array($req);
$w=explode("*",$mag[name]);

$req mysql_query("SELECT * FROM `l2_item` WHERE `usr` = '$nick' and `tip`='weapon' and `image`='yes' ");
////////////////////////////
$avto=mysql_num_rows($req);
if(
$avto==1){
$res mysql_fetch_array($req);
echo
"<br/><img src="style/shmot/$w[0].gif" height=50 width=50> Левая рука: <a href="snyat_item.php?tip=weapon">$mag[name]</a>";
}}

$req mysql_query("SELECT id,name FROM `l2_item` WHERE `usr` = '$nick' and `tip`='shit' and `image`='yes'");
$avto=mysql_num_rows($req);
if(
$avto==0){
echo
"<br><img src="style/img/null.png" height=50 width=50> Правая рука: <u>не одето</u>";
}else{
$mag mysql_fetch_array($req);
$w=explode("*",$mag[name]);

$req mysql_query("SELECT * FROM `l2_item` WHERE `usr` = '$nick' and `tip`='shit' and `image`='yes' ");
////////////////////////////
$avto=mysql_num_rows($req);
if(
$avto==1){
$res mysql_fetch_array($req);
echo
"<br/><img src="style/shmot/$w[0].gif" height=50 width=50> Правая рука: <a href="snyat_item.php?tip=shit">$mag[name]</a>";
}}

$req mysql_query("SELECT id,name FROM `l2_item` WHERE `usr` = '$nick' and `tip`='body' and `image`='yes'");
$avto=mysql_num_rows($req);
if(
$avto==0){
echo
"<br><img src="style/img/null.png" height=50 width=50> Доспехи: <u>не одето</u>";
}else{
$mag mysql_fetch_array($req);
$w=explode("*",$mag[name]);

$req mysql_query("SELECT * FROM `l2_item` WHERE `usr` = '$nick' and `tip`='body' and `image`='yes' ");
////////////////////////////
$avto=mysql_num_rows($req);
if(
$avto==1){
$res mysql_fetch_array($req);

echo
"<br/><img src="style/shmot/$w[0].gif" height=50 width=50> Доспехи: <a href="snyat_item.php?tip=body">$mag[name]</a>";
}}

$req mysql_query("SELECT id,name FROM `l2_item` WHERE `usr` = '$nick' and `tip`='ruki' and `image`='yes'");
$avto=mysql_num_rows($req);
if(
$avto==0){
echo
"<br><img src="style/img/null.png" height=50 width=50> Перчатки: <u>не одето</u>";
}else{
$mag mysql_fetch_array($req);
$w=explode("*",$mag[name]);

$req mysql_query("SELECT * FROM `l2_item` WHERE `usr` = '$nick' and `tip`='ruki' and `image`='yes' ");
////////////////////////////
$avto=mysql_num_rows($req);
if(
$avto==1){
$res mysql_fetch_array($req);

echo
"<br/><img src="style/shmot/$w[0].gif" height=50 width=50> Перчатки: <a href="snyat_item.php?tip=ruki">$mag[name]</a>";
}}
$req mysql_query("SELECT id,name FROM `l2_item` WHERE `usr` = '$nick' and `tip`='nogi' and `image`='yes'");
$avto=mysql_num_rows($req);
if(
$avto==0){
echo
"<br><img src="style/img/null.png" height=50 width=50> Сапоги: <u>не одето</u>";
}else{
$mag mysql_fetch_array($req);
$w=explode("*",$mag[name]);

$req mysql_query("SELECT * FROM `l2_item` WHERE `usr` = '$nick' and `tip`='nogi' and `image`='yes' ");
////////////////////////////
$avto=mysql_num_rows($req);
if(
$avto==1){
$res mysql_fetch_array($req);

echo
"<br/><img src="style/shmot/$w[0].gif" height=50 width=50> Сапоги: <a href="snyat_item.php?tip=nogi">$mag[name]</a>";
}}

echo
"<br>";




}else{
echo 
"Пройдите авторизацию!";
echo 
"<hr><a href="index.php">На главную</a>";
}
    include (
"inc/foter.php");
?>
Онлайн: 1
Реклама