[go: up one dir, main page]

Menu

[r1]: / list_items.php  Maximize  Restore  History

Download this file

38 lines (30 with data), 1.6 kB

 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
31
32
33
34
35
36
37
<?php
/*********************************************************************/
/* MineCobalt - Minecraft SMP Web Administration */
/* Copyright (c) 2011, Mark Randall @ MineCobalt */
/* All rights reserved. */
/*********************************************************************/
/* Please read licence.txt */
/*********************************************************************/
/* Pagename: list_items.php */
/* Purpose: List items in players inventory */
/*********************************************************************/
require(".settings/siteconfig.php");
require(".classes/mysql.php");
$sql = new mysql_connection($config['mysql']['username'], $config['mysql']['password'], $config['mysql']['hostname'], $config['mysql']['port'], $config['mysql']['database']);
require(".classes/bukkit.php");
$bukkit = new bukkit("mcserv.minecobalt.co.uk","6790");
$bukkit->connect();
$players = $bukkit->playerlist();
require(".classes/smarty.php");
require(".functions/datavalue.php");
require(".settings/pageoptions.php");
$smarty->assign("navigation",navigation());
$smarty->assign('meta', '');
$smarty->assign('javascript', '<script src=".themes/plaintext/javascript/ajaxfunctions.js" type="text/javascript"></script>');
$smarty->assign('css', '');
$smarty->assign('title', 'List Players Inventory');
$smarty->assign('players', $players);
$smarty->display('admin_list_items.tpl');
$bukkit->close();
?>