(2010-) * @license GPLv2 http://files.froxlor.org/misc/COPYING.txt * @package Formfields * */ return array( 'customer_add' => array( 'title' => $lng['admin']['customer_add'], 'image' => 'fa-solid fa-user-plus', 'sections' => array( 'section_a' => array( 'title' => $lng['admin']['accountdata'], 'image' => 'icons/user_add.png', 'fields' => array( 'new_loginname' => array( 'label' => $lng['login']['username'], 'type' => 'text', 'placeholder' => 'Leave empty for autogenerated value' ), 'createstdsubdomain' => array( 'label' => $lng['admin']['stdsubdomain_add'] . '?', 'type' => 'checkbox', 'value' => '1', 'checked' => \Froxlor\Settings::Get('system.createstdsubdom_default') ), 'store_defaultindex' => array( 'label' => $lng['admin']['store_defaultindex'] . '?', 'type' => 'checkbox', 'value' => '1', 'checked' => true ), 'new_customer_password' => array( 'label' => $lng['login']['password'], 'type' => 'password', 'autocomplete' => 'off', 'next_to' => [ 'new_customer_password_suggestion' => array( 'next_to_prefix' => $lng['customer']['generated_pwd'].':', 'type' => 'text', 'visible' => (\Froxlor\Settings::Get('panel.password_regex') == ''), 'value' => \Froxlor\System\Crypt::generatePassword(), 'readonly' => true ) ] ), 'sendpassword' => array( 'label' => $lng['admin']['sendpassword'], 'type' => 'checkbox', 'value' => '1', 'checked' => true ), 'def_language' => array( 'label' => $lng['login']['language'], 'type' => 'select', 'select_var' => $languages, 'selected' => \Froxlor\Settings::Get('panel.standardlanguage') ), 'api_allowed' => array( 'label' => $lng['usersettings']['api_allowed']['title'], 'desc' => $lng['usersettings']['api_allowed']['description'], 'type' => 'checkbox', 'value' => '1', 'checked' => (\Froxlor\Settings::Get('api.enabled') == '1' ? true : false), 'visible' => (\Froxlor\Settings::Get('api.enabled') == '1' ? true : false) ) ) ), 'section_b' => array( 'title' => $lng['admin']['contactdata'], 'image' => 'icons/user_add.png', 'fields' => array( 'name' => array( 'label' => $lng['customer']['name'], 'type' => 'text', 'mandatory_ex' => true ), 'firstname' => array( 'label' => $lng['customer']['firstname'], 'type' => 'text', 'mandatory_ex' => true ), 'gender' => array( 'label' => $lng['gender']['title'], 'type' => 'select', 'select_var' => [ 0 => $lng['gender']['undef'], 1 => $lng['gender']['male'], 2 => $lng['gender']['female'] ] ), 'company' => array( 'label' => $lng['customer']['company'], 'type' => 'text', 'mandatory_ex' => true ), 'street' => array( 'label' => $lng['customer']['street'], 'type' => 'text' ), 'zipcode' => array( 'label' => $lng['customer']['zipcode'] . ' / ' . $lng['customer']['city'], 'type' => 'text', 'next_to' => [ 'city' => array( 'next_to_prefix' => ' / ', 'type' => 'text' ) ] ), 'phone' => array( 'label' => $lng['customer']['phone'], 'type' => 'text' ), 'fax' => array( 'label' => $lng['customer']['fax'], 'type' => 'text' ), 'email' => array( 'label' => $lng['customer']['email'], 'type' => 'text', 'mandatory' => true ), 'customernumber' => array( 'label' => $lng['customer']['customernumber'], 'type' => 'text' ), 'custom_notes' => array( 'label' => $lng['usersettings']['custom_notes']['title'], 'desc' => $lng['usersettings']['custom_notes']['description'], 'type' => 'textarea', 'cols' => 60, 'rows' => 12 ), 'custom_notes_show' => array( 'label' => $lng['usersettings']['custom_notes']['show'], 'type' => 'checkbox', 'value' => '1', 'checked' => false ) ) ), 'section_cpre' => array( 'visible' => !empty($hosting_plans), 'title' => $lng['admin']['plans']['use_plan'], 'image' => 'icons/user_add.png', 'fields' => array( 'use_plan' => array( 'label' => $lng['admin']['plans']['use_plan'], 'type' => 'select', 'select_var' => $hosting_plans ) ) ), 'section_c' => array( 'title' => $lng['admin']['servicedata'], 'image' => 'icons/user_add.png', 'fields' => array( 'diskspace' => array( 'label' => $lng['customer']['diskspace'] . ' (' . $lng['customer']['mib'] . ')', 'type' => 'textul', 'value' => 0, 'maxlength' => 16, 'mandatory' => true ), 'traffic' => array( 'label' => $lng['customer']['traffic'] . ' (' . $lng['customer']['gib'] . ')', 'type' => 'textul', 'value' => 0, 'maxlength' => 14, 'mandatory' => true ), 'subdomains' => array( 'label' => $lng['customer']['subdomains'], 'type' => 'textul', 'value' => 0, 'maxlength' => 9, 'mandatory' => true ), 'emails' => array( 'label' => $lng['customer']['emails'], 'type' => 'textul', 'value' => 0, 'maxlength' => 9, 'mandatory' => true ), 'email_accounts' => array( 'label' => $lng['customer']['accounts'], 'type' => 'textul', 'value' => 0, 'maxlength' => 9, 'mandatory' => true ), 'email_forwarders' => array( 'label' => $lng['customer']['forwarders'], 'type' => 'textul', 'value' => 0, 'maxlength' => 9, 'mandatory' => true ), 'email_quota' => array( 'label' => $lng['customer']['email_quota'] . ' (' . $lng['customer']['mib'] . ')', 'type' => 'textul', 'value' => 0, 'maxlength' => 9, 'visible' => (\Froxlor\Settings::Get('system.mail_quota_enabled') == '1' ? true : false), 'mandatory' => true ), 'email_imap' => array( 'label' => $lng['customer']['email_imap'], 'type' => 'checkbox', 'value' => '1', 'checked' => true, 'mandatory' => true ), 'email_pop3' => array( 'label' => $lng['customer']['email_pop3'], 'type' => 'checkbox', 'value' => '1', 'checked' => true, 'mandatory' => true ), 'ftps' => array( 'label' => $lng['customer']['ftps'], 'type' => 'textul', 'value' => 0, 'maxlength' => 9 ), 'mysqls' => array( 'label' => $lng['customer']['mysqls'], 'type' => 'textul', 'value' => 0, 'maxlength' => 9, 'mandatory' => true ), 'phpenabled' => array( 'label' => $lng['admin']['phpenabled'] . '?', 'type' => 'checkbox', 'value' => '1', 'checked' => true ), 'allowed_phpconfigs' => array( 'visible' => (((int) \Froxlor\Settings::Get('system.mod_fcgid') == 1 || (int) \Froxlor\Settings::Get('phpfpm.enabled') == 1) ? true : false), 'label' => $lng['admin']['phpsettings']['title'], 'type' => 'checkbox', 'values' => $phpconfigs, 'value' => ((int) \Froxlor\Settings::Get('system.mod_fcgid') == 1 ? [\Froxlor\Settings::Get('system.mod_fcgid_defaultini')] : ((int) \Froxlor\Settings::Get('phpfpm.enabled') == 1 ? [\Froxlor\Settings::Get('phpfpm.defaultini')] : null)), 'is_array' => 1 ), 'perlenabled' => array( 'label' => $lng['admin']['perlenabled'] . '?', 'type' => 'checkbox', 'value' => '1', 'checked' => false ), 'dnsenabled' => array( 'label' => $lng['admin']['dnsenabled'] . '?', 'type' => 'checkbox', 'value' => '1', 'checked' => (\Froxlor\Settings::Get('system.dnsenabled') == '1' ? true : false), 'visible' => (\Froxlor\Settings::Get('system.dnsenabled') == '1' ? true : false) ), 'logviewenabled' => array( 'label' => $lng['admin']['logviewenabled'] . '?', 'type' => 'checkbox', 'value' => '1', 'checked' => true ) ) ) ) ) );