-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathitems.php
More file actions
30 lines (24 loc) · 775 Bytes
/
Copy pathitems.php
File metadata and controls
30 lines (24 loc) · 775 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php require_once 'engine/init.php'; theme_open();
/**
* Equipable items browser.
*
* items.xml is uploaded and parsed in the admin panel, under Server Info. This
* page only reads the result:
* $itemsEnabled the page is turned on in config.php
* $items the item list, or false when nothing was published
* $itemsAdmin, $itemsUpdated, $itemsFailed kept at false for older themes
*/
$itemsEnabled = ($config['items'] == true);
$itemsAdmin = false;
$itemsUpdated = false;
$itemsFailed = false;
$items = false;
if ($itemsEnabled) {
$items = serverdata_load('items');
if ($items === false && is_file(serverdata_file('items.xml'))) {
serverdata_rebuild('items');
$items = serverdata_load('items');
}
}
view('items');
theme_close();