This commit is contained in:
slawkens 2023-02-03 16:13:53 +01:00
parent 7e62bd74a3
commit eaec00122b
2 changed files with 6 additions and 2 deletions

View File

@ -33,6 +33,11 @@ if ($config['account_country']) {
} }
$web_acc = array("None", "Admin", "Super Admin", "(Admin + Super Admin)"); $web_acc = array("None", "Admin", "Super Admin", "(Admin + Super Admin)");
$acc_type = array("None", "Normal", "Tutor", "Senior Tutor", "Gamemaster", "God"); $acc_type = array("None", "Normal", "Tutor", "Senior Tutor", "Gamemaster", "God");
$groups = new OTS_Groups_List();
if ($groups->getHighestId() == 6) {
$acc_type = array("None", "Normal", "Tutor", "Senior Tutor", "Gamemaster", "Community Manager", "God");
}
?> ?>
<link rel="stylesheet" type="text/css" href="<?php echo BASE_URL; ?>tools/css/jquery.datetimepicker.css"/ > <link rel="stylesheet" type="text/css" href="<?php echo BASE_URL; ?>tools/css/jquery.datetimepicker.css"/ >
@ -70,7 +75,6 @@ else if (isset($_REQUEST['search'])) {
?> ?>
<div class="row"> <div class="row">
<?php <?php
$groups = new OTS_Groups_List();
if ($id > 0) { if ($id > 0) {
$account = new OTS_Account(); $account = new OTS_Account();
$account->load($id); $account->load($id);

View File

@ -83,7 +83,7 @@ else {
if($db->hasColumn('accounts', 'group_id')) if($db->hasColumn('accounts', 'group_id'))
$account_used->setCustomField('group_id', $groups->getHighestId()); $account_used->setCustomField('group_id', $groups->getHighestId());
if($db->hasColumn('accounts', 'type')) if($db->hasColumn('accounts', 'type'))
$account_used->setCustomField('type', 5); $account_used->setCustomField('type', 6);
if(!$player_db->isLoaded()) if(!$player_db->isLoaded())
$player->setAccountId($account_used->getId()); $player->setAccountId($account_used->getId());