Вход Регистрация
Файл: alinar.ru/API/show_inventory.php
Строк: 47
<?
header 
("Content-type: text/html; charset=windows-1251");
if (
substr_count($_SERVER['HTTP_REFERER'],'main.php')>0):
    require (
$_SERVER['DOCUMENT_ROOT'].'/maintenance/vars.php');
    require (
ROOT.'/maintenance/dbconn.php');
    require (
ROOT.'/maintenance/vcode.php');
    require (
ROOT.'/maintenance/functions.php');
    if (
VALID):
        
$out '';
        
$pers user(UID);
        
$shmot query("SELECT * FROM inventory WHERE owner=".$pers["uid"]." and stype='".$_REQUEST["type"]."' and weared=0");
        while (
$v=mysql_fetch_array($shmot)):
            if (
$out<>''): $out $out '@'; endif;
            
$out $out $v["name"].'|'.$v["image"].'|'.$v["level"].'|'.$v["s1_n"].'|'.$v["s2_n"].'|'.$v["s3_n"].'|'.$v["s4_n"].'|'.$v["s5_n"].'|'.$v["s6_n"].'|'.$v["s1_g"].'|'.$v["s2_g"].'|'.$v["s3_g"].'|'.$v["s4_g"].'|'.$v["s5_g"].'|'.$v["s6_g"].'|'.$v["ID"].'|'.$v["hit_min"].'|'.$v["hit_max"].'|'.$v["kb"].'|'.$v["mkb"].'|'.$v["mf1"].'|'.$v["mf2"].'|'.$v["mf3"].'|'.$v["mf4"].'|'.$v["mf5"].'|'.$v["mf6"].'|'.$v["price"].'|'.$v["hp"].'|'.$v["mp"].'|'.$v["f_1_n"].'|'.$v["f_2_n"].'|'.$v["f_3_n"].'|'.$v["f_4_n"].'|'.$v["f_5_n"].'|'.$v["f_6_n"].'|'.$v["f_7_n"].'|'.$v["f_8_n"];
        endwhile;
        echo 
$out;
    endif;
else:
    echo 
'ERROR';
endif;

?>
Онлайн: 2
Реклама