You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
|
|
|
<?php
|
|
|
|
|
|
|
|
require 'required.php';
|
|
|
|
|
|
|
|
require 'onlyloggedin.php';
|
|
|
|
|
|
|
|
if (is_empty($VARS['user'])) {
|
|
|
|
sendError("Missing data.", true);
|
|
|
|
}
|
|
|
|
|
|
|
|
$inv = $database->select(
|
|
|
|
'items', [
|
|
|
|
'[>]inventory' => ['itemid' => 'itemid'],
|
|
|
|
'[>]itemclasses' => ['classid', 'classid']
|
|
|
|
], [
|
|
|
|
'inventory.itemuuid',
|
|
|
|
'inventory.itemid',
|
|
|
|
'inventory.itemjson',
|
|
|
|
'items.itemname',
|
|
|
|
'items.itemdesc',
|
|
|
|
'items.itemcode',
|
|
|
|
'itemclasses.classid',
|
|
|
|
'itemclasses.classname'
|
|
|
|
], ['inventory.playeruuid' => $_SESSION['uuid']]
|
|
|
|
);
|
|
|
|
|
|
|
|
$out['status'] = 'OK';
|
|
|
|
$out['items'] = $inv;
|
|
|
|
echo json_encode($out);
|