require "constants.php";
$title = "Anathema Online - Item Information";
include "index-top.php";
$item = $_GET['item'];
$inventory = getInfo(inventory,users,"WHERE id='$userId'");
$inventory = explode('.',$inventory);
if ((inArray($item,$inventory)) || (admin($user_name))) {
$portions = getInfo(portions,user_items,"WHERE id='$item'");
$description = getInfo(written,user_items,"WHERE id='$item'");
$seal = getInfo(extra,user_items,"WHERE id='$item'");
$seal_item = getInfo(item,user_items,"WHERE id='$seal'");
$seal_image = getInfo(image,items,"WHERE id='$seal_item'");
$item = getInfo(item,user_items,"WHERE id='$item'");
$conditions = "WHERE id='$item'";
$name = getInfo(name,items,$conditions);
$shop = getInfo(shop,items,$conditions);
$shop = getInfo(name,places,"WHERE id='$shop'");
$price = getInfo(price,items,$conditions);
$totalPortions = getInfo(portions,items,$conditions);
$type = getInfo(type,items,$conditions);
$stat = getInfo("stat",items,$conditions);
$sex = getInfo(sex,items,$conditions);
$creator = getInfo(creator,items,$conditions);
$typeName = $type;
if ($name) {
$name[0] = strtoupper($name[0]);
echo '
';
echo '';
echo '';
echo '';
echo '';
echo '
';
echo '';
echo '';
echo '';
echo '';
echo '';
echo '';
if ($seal_image) {
echo '';
echo ' ';
echo ' | ';
}
echo '';
echo stripslashes($description);
echo ' | ';
echo ' ';
echo ' ';
echo ' | ';
echo '
';
echo '';
echo '
';
echo '';
} else {
echo '';
echo '';
echo '';
echo '';
echo '';
echo '
';
echo '';
echo '';
echo '';
echo '| ';
echo 'You are not carrying this item.';
echo ' | ';
echo '
';
echo '';
echo '
';
}
} else {
echo '';
echo '';
echo '';
echo '';
echo '';
echo '
';
echo '';
echo '';
echo '';
echo '| ';
echo 'You are not carrying this item.';
echo ' | ';
echo '
';
echo '';
echo '
';
}
?>
include "index-bottom.php"
?>