diff --git a/system/pages/admin/accounts.php b/system/pages/admin/accounts.php
index 724e382d..a9e2c3da 100644
--- a/system/pages/admin/accounts.php
+++ b/system/pages/admin/accounts.php
@@ -31,7 +31,7 @@ if ($config['account_country']) {
$countries[$code] = $c;
}
$web_acc = array("None", "Admin", "Super Admin", "(Admin + Super Admin)");
-$acc_type = array("Normal", "Tutor", "Senior Tutor", "Gamemaster", "God");
+$acc_type = array("None", "Normal", "Tutor", "Senior Tutor", "Gamemaster", "God");
?>
@@ -204,7 +204,7 @@ else if (isset($_REQUEST['search'])) {
}
}
} else if ($id == 0) {
- $accounts_db = $db->query('SELECT `id`, `name`,`type` FROM `accounts` ORDER BY `id` ASC');
+ $accounts_db = $db->query('SELECT `id`, `name`,' . ($hasTypeColumn ? 'type' : 'group_id') . ' FROM `accounts` ORDER BY `id` ASC');
?>
@@ -222,12 +222,19 @@ else if (isset($_REQUEST['search'])) {
-
+
- |
- |
- |
-
+ | |
+ |
+
+ getGroups();
+ echo $group[$account_lst['group_id']];
+ } ?>
+ |
+
|
@@ -302,7 +309,7 @@ else if (isset($_REQUEST['search'])) {
@@ -418,7 +425,9 @@ else if (isset($_REQUEST['search'])) {
- $player):
+ $player):
+ $i++;
$player_vocation = $player->getVocation();
$player_promotion = $player->getPromotion();
if (isset($player_promotion)) {
@@ -447,7 +456,7 @@ else if (isset($_REQUEST['search'])) {
hasTable('bans')) : ?>
query('SELECT * FROM ' . $db->tableName('bans') . ' WHERE ' . $db->fieldName('active') . ' = 1 AND ' . $db->fieldName('id') . ' = ' . $account->getId() . ' ORDER BY ' . $db->fieldName('added') . ' DESC');
+ $bans = $db->query('SELECT * FROM ' . $db->tableName('bans') . ' WHERE ' . $db->fieldName('active') . ' = 1 AND ' . $db->fieldName('id') . ' = ' . $account->getId() . ' ORDER BY ' . $db->fieldName('added') . ' DESC LIMIT 10');
if ($bans->rowCount()) {
?>
@@ -464,10 +473,6 @@ else if (isset($_REQUEST['search'])) {
100) {
- $next_page = true;
- break;
- }
?>
-
+
|