mirror of
https://github.com/slawkens/myaac.git
synced 2025-05-05 13:49:21 +02:00
Fix #178
This commit is contained in:
parent
7e62bd74a3
commit
eaec00122b
@ -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);
|
||||||
|
@ -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());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user