-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathstaff.php
More file actions
31 lines (20 loc) · 678 Bytes
/
staff.php
File metadata and controls
31 lines (20 loc) · 678 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
<?php
$pagetitle = 'Staff Characters';
require 'common.php';
$characters = webcp_db_fetchall("SELECT name, gender, title, admin FROM characters WHERE admin > 0 ORDER BY admin DESC");
if (empty($characters))
{
$tpl->message = "There are no staff characters.";
$tpl->Execute(null);
exit;
}
foreach ($characters as &$character)
{
$character['name'] = ucfirst($character['name']);
$character['gender'] = $character['gender']?'Male':'Female';
$character['title'] = empty($character['title'])?'-':ucfirst($character['title']);
$character['admin_str'] = adminrank_str($character['admin']);
}
unset($character);
$tpl->characters = $characters;
$tpl->Execute('staff');