(2010-) * @license GPLv2 http://files.froxlor.org/misc/COPYING.txt * @package Formfields * */ return array( 'accountdata' => array( 'title' => $lng['admin']['accountdata'], 'fields' => array( 'loginname' => array( 'label' => $lng['login']['username'], 'type' => (isset($result['loginname'])) ? 'static' : 'text', 'mandatory' => true, ), 'deactivated' => array( 'label' => $lng['admin']['deactivated_user'], 'type' => 'checkbox', 'value' => '1', 'sublabel' => $lng['panel']['yes'], 'visible' => (isset($result['loginname']) && $result['adminid'] != $userinfo['userid']), ), 'admin_password' => array( 'label' => $lng['login']['password'], 'type' => 'password', 'mandatory' => true, 'autocomplete' => 'off' ), 'admin_password_suggestion' => array( 'label' => $lng['customer']['generated_pwd'], 'type' => 'text', 'visible' => (Settings::Get('panel.password_regex') == ''), 'value' => generatePassword(), 'attributes' => array( 'readonly' => true ) ), 'def_language' => array( 'label' => $lng['login']['language'], 'type' => 'select', 'generate' => 'languages', 'selected' => Settings::Get('panel.standardlanguage') ) ) ), 'contactdata' => array( 'title' => $lng['admin']['contactdata'], 'fields' => array( 'name' => array( 'label' => $lng['customer']['name'], 'type' => 'text', 'mandatory' => true ), 'email' => array( 'label' => $lng['customer']['email'], 'type' => 'email', 'mandatory' => true ), 'custom_notes' => array( 'label' => $lng['usersettings']['custom_notes']['title'], 'desc' => $lng['usersettings']['custom_notes']['description'], 'type' => 'textarea', 'attributes' => array( 'cols' => 60, 'rows' => 12 ) ), 'custom_notes_show' => array( 'label' => $lng['usersettings']['custom_notes']['show'], 'type' => 'checkbox', 'sublabel' => $lng['panel']['yes'], 'value' => '1' ) ) ), 'servicedata' => array( 'title' => $lng['admin']['servicedata'], 'visible' => (isset($result['adminid']) && $result['adminid'] != $userinfo['userid']), 'fields' => array( 'ipaddress' => array( 'label' => $lng['serversettings']['ipaddress']['title'], 'type' => 'select', 'values' => $ipaddress ), 'change_serversettings' => array( 'label' => $lng['admin']['change_serversettings'], 'type' => 'checkbox', 'sublabel' => $lng['panel']['yes'], 'value' => 1 ), 'customers' => array( 'label' => $lng['admin']['customers'], 'type' => 'textul', 'value' => 0, 'mandatory' => true, 'attributes' => array( 'maxlength' => 9 ) ), 'customers_see_all' => array( 'label' => $lng['admin']['customers_see_all'], 'type' => 'checkbox', 'sublabel' => $lng['panel']['yes'], 'value' => '1' ), 'domains' => array( 'label' => $lng['admin']['domains'], 'type' => 'textul', 'value' => 0, 'mandatory' => true, 'attributes' => array( 'maxlength' => 9 ) ), 'domains_see_all' => array( 'label' => $lng['admin']['domains_see_all'], 'type' => 'checkbox', 'sublabel' => $lng['panel']['yes'], 'value' => '1' ), 'caneditphpsettings' => array( 'label' => $lng['admin']['caneditphpsettings'], 'type' => 'checkbox', 'sublabel' => $lng['panel']['yes'], 'value' => '1' ), 'diskspace' => array( 'label' => $lng['customer']['diskspace'], 'type' => 'textul', 'value' => 0, 'mandatory' => true, 'attributes' => array( 'maxlength' => 6 ) ), 'traffic' => array( 'label' => $lng['customer']['traffic'], 'type' => 'textul', 'value' => 0, 'mandatory' => true, 'attributes' => array( 'maxlength' => 4 ) ), 'subdomains' => array( 'label' => $lng['customer']['subdomains'], 'type' => 'textul', 'value' => 0, 'mandatory' => true, 'attributes' => array( 'maxlength' => 9 ) ), 'emails' => array( 'label' => $lng['customer']['emails'], 'type' => 'textul', 'value' => 0, 'mandatory' => true, 'attributes' => array( 'maxlength' => 9 ) ), 'email_accounts' => array( 'label' => $lng['customer']['accounts'], 'type' => 'textul', 'value' => 0, 'mandatory' => true, 'attributes' => array( 'maxlength' => 9 ) ), 'email_forwarders' => array( 'label' => $lng['customer']['forwarders'], 'type' => 'textul', 'value' => 0, 'mandatory' => true, 'attributes' => array( 'maxlength' => 9 ) ), 'email_quota' => array( 'label' => $lng['customer']['email_quota'], 'type' => 'textul', 'value' => 0, 'visible' => (Settings::Get('system.mail_quota_enabled') == '1' ? true : false), 'mandatory' => true, 'attributes' => array( 'maxlength' => 9 ) ), 'ftps' => array( 'label' => $lng['customer']['ftps'], 'type' => 'textul', 'value' => 0, 'attributes' => array( 'maxlength' => 9 ) ), 'tickets' => array( 'label' => $lng['customer']['tickets'], 'type' => 'textul', 'value' => 0, 'visible' => (Settings::Get('ticket.enabled') == '1' ? true : false), 'attributes' => array( 'maxlength' => 9 ) ), 'tickets_see_all' => array( 'label' => $lng['admin']['tickets_see_all'], 'type' => 'checkbox', 'sublabel' => $lng['panel']['yes'], 'value' => '1' ), 'mysqls' => array( 'label' => $lng['customer']['mysqls'], 'type' => 'textul', 'value' => 0, 'mandatory' => true, 'attributes' => array( 'maxlength' => 9 ) ) ) ) );