Revert "refactor global array"

This reverts commit 370ccbdb74.
This commit is contained in:
Michael Kaufmann
2018-12-22 08:15:31 +01:00
parent c800e89414
commit 7e39a7bc60
220 changed files with 2244 additions and 2227 deletions

View File

@@ -16,7 +16,7 @@
*/
return array(
'domain_ssleditor' => array(
'title' => \Froxlor\I18N\Lang::getAll()['panel']['ssleditor'],
'title' => $lng['panel']['ssleditor'],
'image' => 'icons/ssl.png',
'sections' => array(
'section_a' => array(
@@ -25,8 +25,8 @@ return array(
'fields' => array(
'ssl_cert_file' => array(
'style' => 'align-top',
'label' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['ssl_cert_file_content'],
'desc' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['ssl_paste_description'],
'label' => $lng['admin']['ipsandports']['ssl_cert_file_content'],
'desc' => $lng['admin']['ipsandports']['ssl_paste_description'],
'type' => 'textarea',
'cols' => 100,
'rows' => 15,
@@ -34,8 +34,8 @@ return array(
),
'ssl_key_file' => array(
'style' => 'align-top',
'label' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['ssl_key_file_content'],
'desc' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['ssl_paste_description'],
'label' => $lng['admin']['ipsandports']['ssl_key_file_content'],
'desc' => $lng['admin']['ipsandports']['ssl_paste_description'],
'type' => 'textarea',
'cols' => 100,
'rows' => 15,
@@ -43,8 +43,8 @@ return array(
),
'ssl_cert_chainfile' => array(
'style' => 'align-top',
'label' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['ssl_cert_chainfile_content'],
'desc' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['ssl_paste_description'] . \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['ssl_cert_chainfile_content_desc'],
'label' => $lng['admin']['ipsandports']['ssl_cert_chainfile_content'],
'desc' => $lng['admin']['ipsandports']['ssl_paste_description'] . $lng['admin']['ipsandports']['ssl_cert_chainfile_content_desc'],
'type' => 'textarea',
'cols' => 100,
'rows' => 15,
@@ -52,8 +52,8 @@ return array(
),
'ssl_ca_file' => array(
'style' => 'align-top',
'label' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['ssl_ca_file_content'],
'desc' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['ssl_paste_description'] . \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['ssl_ca_file_content_desc'],
'label' => $lng['admin']['ipsandports']['ssl_ca_file_content'],
'desc' => $lng['admin']['ipsandports']['ssl_paste_description'] . $lng['admin']['ipsandports']['ssl_ca_file_content_desc'],
'type' => 'textarea',
'cols' => 100,
'rows' => 15,

View File

@@ -16,15 +16,15 @@
*/
return array(
'domain_add' => array(
'title' => \Froxlor\I18N\Lang::getAll()['domains']['subdomain_add'],
'title' => $lng['domains']['subdomain_add'],
'image' => 'icons/domain_add.png',
'sections' => array(
'section_a' => array(
'title' => \Froxlor\I18N\Lang::getAll()['domains']['subdomain_add'],
'title' => $lng['domains']['subdomain_add'],
'image' => 'icons/domain_add.png',
'fields' => array(
'subdomain' => array(
'label' => \Froxlor\I18N\Lang::getAll()['domains']['domainname'],
'label' => $lng['domains']['domainname'],
'type' => 'textul',
'ul_field' => '',
'has_nextto' => true
@@ -36,60 +36,60 @@ return array(
'select_var' => $domains
),
'alias' => array(
'label' => \Froxlor\I18N\Lang::getAll()['domains']['aliasdomain'],
'label' => $lng['domains']['aliasdomain'],
'type' => 'select',
'select_var' => $aliasdomains
),
'path' => array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['path'],
'desc' => (\Froxlor\Settings::Get('panel.pathedit') != 'Dropdown' ? \Froxlor\I18N\Lang::getAll()['panel']['pathDescriptionSubdomain'] : null) . (isset($pathSelect['note']) ? $pathSelect['note'] . '<br />' . $pathSelect['value'] : ''),
'label' => $lng['panel']['path'],
'desc' => (\Froxlor\Settings::Get('panel.pathedit') != 'Dropdown' ? $lng['panel']['pathDescriptionSubdomain'] : null) . (isset($pathSelect['note']) ? $pathSelect['note'] . '<br />' . $pathSelect['value'] : ''),
'type' => $pathSelect['type'],
'select_var' => $pathSelect['value'],
'value' => $pathSelect['value']
),
'url' => array(
'visible' => (\Froxlor\Settings::Get('panel.pathedit') == 'Dropdown' ? true : false),
'label' => \Froxlor\I18N\Lang::getAll()['panel']['urloverridespath'],
'label' => $lng['panel']['urloverridespath'],
'type' => 'text'
),
'redirectcode' => array(
'visible' => (\Froxlor\Settings::Get('customredirect.enabled') == '1' ? true : false),
'label' => \Froxlor\I18N\Lang::getAll()['domains']['redirectifpathisurl'],
'desc' => \Froxlor\I18N\Lang::getAll()['domains']['redirectifpathisurlinfo'],
'label' => $lng['domains']['redirectifpathisurl'],
'desc' => $lng['domains']['redirectifpathisurlinfo'],
'type' => 'select',
'select_var' => isset($redirectcode) ? $redirectcode : null
),
'selectserveralias' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['selectserveralias'],
'desc' => \Froxlor\I18N\Lang::getAll()['admin']['selectserveralias_desc'],
'label' => $lng['admin']['selectserveralias'],
'desc' => $lng['admin']['selectserveralias_desc'],
'type' => 'label',
'value' => \Froxlor\I18N\Lang::getAll()['customer']['selectserveralias_addinfo']
'value' => $lng['customer']['selectserveralias_addinfo']
),
'openbasedir_path' => array(
'label' => \Froxlor\I18N\Lang::getAll()['domain']['openbasedirpath'],
'label' => $lng['domain']['openbasedirpath'],
'type' => 'select',
'select_var' => $openbasedir
),
'phpsettingid' => array(
'visible' => (((int) \Froxlor\Settings::Get('system.mod_fcgid') == 1 || (int) \Froxlor\Settings::Get('phpfpm.enabled') == 1) && $has_phpconfigs ? true : false),
'label' => \Froxlor\I18N\Lang::getAll()['admin']['phpsettings']['title'],
'label' => $lng['admin']['phpsettings']['title'],
'type' => 'select',
'select_var' => $phpconfigs
)
)
),
'section_bssl' => array(
'title' => \Froxlor\I18N\Lang::getAll()['admin']['webserversettings_ssl'],
'title' => $lng['admin']['webserversettings_ssl'],
'image' => 'icons/domain_add.png',
'visible' => \Froxlor\Settings::Get('system.use_ssl') == '1' ? ($ssl_ipsandports != '' ? true : false) : false,
'fields' => array(
'ssl_redirect' => array(
'label' => \Froxlor\I18N\Lang::getAll()['domains']['ssl_redirect']['title'],
'desc' => \Froxlor\I18N\Lang::getAll()['domains']['ssl_redirect']['description'],
'label' => $lng['domains']['ssl_redirect']['title'],
'desc' => $lng['domains']['ssl_redirect']['description'],
'type' => 'checkbox',
'values' => array(
array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
'label' => $lng['panel']['yes'],
'value' => '1'
)
),
@@ -97,44 +97,44 @@ return array(
),
'letsencrypt' => array(
'visible' => (\Froxlor\Settings::Get('system.leenabled') == '1' ? true : false),
'label' => \Froxlor\I18N\Lang::getAll()['customer']['letsencrypt']['title'],
'desc' => \Froxlor\I18N\Lang::getAll()['customer']['letsencrypt']['description'],
'label' => $lng['customer']['letsencrypt']['title'],
'desc' => $lng['customer']['letsencrypt']['description'],
'type' => 'checkbox',
'values' => array(
array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
'label' => $lng['panel']['yes'],
'value' => '1'
)
),
'value' => array()
),
'hsts_maxage' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['domain_hsts_maxage']['title'],
'desc' => \Froxlor\I18N\Lang::getAll()['admin']['domain_hsts_maxage']['description'],
'label' => $lng['admin']['domain_hsts_maxage']['title'],
'desc' => $lng['admin']['domain_hsts_maxage']['description'],
'type' => 'int',
'int_min' => 0,
'int_max' => 94608000, // 3-years
'value' => 0
),
'hsts_sub' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['domain_hsts_incsub']['title'],
'desc' => \Froxlor\I18N\Lang::getAll()['admin']['domain_hsts_incsub']['description'],
'label' => $lng['admin']['domain_hsts_incsub']['title'],
'desc' => $lng['admin']['domain_hsts_incsub']['description'],
'type' => 'checkbox',
'values' => array(
array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
'label' => $lng['panel']['yes'],
'value' => '1'
)
),
'value' => array()
),
'hsts_preload' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['domain_hsts_preload']['title'],
'desc' => \Froxlor\I18N\Lang::getAll()['admin']['domain_hsts_preload']['description'],
'label' => $lng['admin']['domain_hsts_preload']['title'],
'desc' => $lng['admin']['domain_hsts_preload']['description'],
'type' => 'checkbox',
'values' => array(
array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
'label' => $lng['panel']['yes'],
'value' => '1'
)
),

View File

@@ -16,53 +16,53 @@
*/
return array(
'domain_edit' => array(
'title' => \Froxlor\I18N\Lang::getAll()['domains']['subdomain_edit'],
'title' => $lng['domains']['subdomain_edit'],
'image' => 'icons/domain_edit.png',
'sections' => array(
'section_a' => array(
'title' => \Froxlor\I18N\Lang::getAll()['domains']['subdomain_edit'],
'title' => $lng['domains']['subdomain_edit'],
'image' => 'icons/domain_edit.png',
'fields' => array(
'domain' => array(
'label' => \Froxlor\I18N\Lang::getAll()['domains']['domainname'],
'label' => $lng['domains']['domainname'],
'type' => 'label',
'value' => $result['domain']
),
'dns' => array(
'label' => \Froxlor\I18N\Lang::getAll()['dns']['destinationip'],
'label' => $lng['dns']['destinationip'],
'type' => 'label',
'value' => $domainip
),
'alias' => array(
'visible' => ($alias_check == '0' ? true : false),
'label' => \Froxlor\I18N\Lang::getAll()['domains']['aliasdomain'],
'label' => $lng['domains']['aliasdomain'],
'type' => 'select',
'select_var' => $domains
),
'path' => array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['path'],
'desc' => (\Froxlor\Settings::Get('panel.pathedit') != 'Dropdown' ? \Froxlor\I18N\Lang::getAll()['panel']['pathDescriptionSubdomain'] : null) . (isset($pathSelect['note']) ? '<br />' . $pathSelect['value'] : ''),
'label' => $lng['panel']['path'],
'desc' => (\Froxlor\Settings::Get('panel.pathedit') != 'Dropdown' ? $lng['panel']['pathDescriptionSubdomain'] : null) . (isset($pathSelect['note']) ? '<br />' . $pathSelect['value'] : ''),
'type' => $pathSelect['type'],
'select_var' => $pathSelect['value'],
'value' => $pathSelect['value']
),
'url' => array(
'visible' => (\Froxlor\Settings::Get('panel.pathedit') == 'Dropdown' ? true : false),
'label' => \Froxlor\I18N\Lang::getAll()['panel']['urloverridespath'],
'label' => $lng['panel']['urloverridespath'],
'type' => 'text',
'value' => $urlvalue
),
'redirectcode' => array(
'visible' => (\Froxlor\Settings::Get('customredirect.enabled') == '1' ? true : false),
'label' => \Froxlor\I18N\Lang::getAll()['domains']['redirectifpathisurl'],
'desc' => \Froxlor\I18N\Lang::getAll()['domains']['redirectifpathisurlinfo'],
'label' => $lng['domains']['redirectifpathisurl'],
'desc' => $lng['domains']['redirectifpathisurlinfo'],
'type' => 'select',
'select_var' => $redirectcode
),
'selectserveralias' => array(
'visible' => ((($result['parentdomainid'] == '0' && \Froxlor\User::getAll()['subdomains'] != '0') || $result['parentdomainid'] != '0') ? true : false),
'label' => \Froxlor\I18N\Lang::getAll()['admin']['selectserveralias'],
'desc' => \Froxlor\I18N\Lang::getAll()['admin']['selectserveralias_desc'],
'label' => $lng['admin']['selectserveralias'],
'desc' => $lng['admin']['selectserveralias_desc'],
'type' => 'select',
'select_var' => $serveraliasoptions
),
@@ -72,7 +72,7 @@ return array(
'type' => 'checkbox',
'values' => array(
array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
'label' => $lng['panel']['yes'],
'value' => '1'
)
),
@@ -82,30 +82,30 @@ return array(
),
'openbasedir_path' => array(
'visible' => ($result['openbasedir'] == '1') ? true : false,
'label' => \Froxlor\I18N\Lang::getAll()['domain']['openbasedirpath'],
'label' => $lng['domain']['openbasedirpath'],
'type' => 'select',
'select_var' => $openbasedir
),
'phpsettingid' => array(
'visible' => (((int) \Froxlor\Settings::Get('system.mod_fcgid') == 1 || (int) \Froxlor\Settings::Get('phpfpm.enabled') == 1) && $has_phpconfigs ? true : false),
'label' => \Froxlor\I18N\Lang::getAll()['admin']['phpsettings']['title'],
'label' => $lng['admin']['phpsettings']['title'],
'type' => 'select',
'select_var' => $phpconfigs
)
)
),
'section_bssl' => array(
'title' => \Froxlor\I18N\Lang::getAll()['admin']['webserversettings_ssl'],
'title' => $lng['admin']['webserversettings_ssl'],
'image' => 'icons/domain_edit.png',
'visible' => \Froxlor\Settings::Get('system.use_ssl') == '1' ? ($ssl_ipsandports != '' ? (\Froxlor\Domain\Domain::domainHasSslIpPort($result['id']) ? true : false) : false) : false,
'fields' => array(
'ssl_redirect' => array(
'label' => \Froxlor\I18N\Lang::getAll()['domains']['ssl_redirect']['title'],
'desc' => \Froxlor\I18N\Lang::getAll()['domains']['ssl_redirect']['description'] . ($result['temporary_ssl_redirect'] > 1 ? \Froxlor\I18N\Lang::getAll()['domains']['ssl_redirect_temporarilydisabled'] : ''),
'label' => $lng['domains']['ssl_redirect']['title'],
'desc' => $lng['domains']['ssl_redirect']['description'] . ($result['temporary_ssl_redirect'] > 1 ? $lng['domains']['ssl_redirect_temporarilydisabled'] : ''),
'type' => 'checkbox',
'values' => array(
array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
'label' => $lng['panel']['yes'],
'value' => '1'
)
),
@@ -115,12 +115,12 @@ return array(
),
'letsencrypt' => array(
'visible' => \Froxlor\Settings::Get('system.leenabled') == '1' ? true : false,
'label' => \Froxlor\I18N\Lang::getAll()['customer']['letsencrypt']['title'],
'desc' => \Froxlor\I18N\Lang::getAll()['customer']['letsencrypt']['description'],
'label' => $lng['customer']['letsencrypt']['title'],
'desc' => $lng['customer']['letsencrypt']['description'],
'type' => 'checkbox',
'values' => array(
array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
'label' => $lng['panel']['yes'],
'value' => '1'
)
),
@@ -129,20 +129,20 @@ return array(
)
),
'hsts_maxage' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['domain_hsts_maxage']['title'],
'desc' => \Froxlor\I18N\Lang::getAll()['admin']['domain_hsts_maxage']['description'],
'label' => $lng['admin']['domain_hsts_maxage']['title'],
'desc' => $lng['admin']['domain_hsts_maxage']['description'],
'type' => 'int',
'int_min' => 0,
'int_max' => 94608000, // 3-years
'value' => $result['hsts']
),
'hsts_sub' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['domain_hsts_incsub']['title'],
'desc' => \Froxlor\I18N\Lang::getAll()['admin']['domain_hsts_incsub']['description'],
'label' => $lng['admin']['domain_hsts_incsub']['title'],
'desc' => $lng['admin']['domain_hsts_incsub']['description'],
'type' => 'checkbox',
'values' => array(
array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
'label' => $lng['panel']['yes'],
'value' => '1'
)
),
@@ -151,12 +151,12 @@ return array(
)
),
'hsts_preload' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['domain_hsts_preload']['title'],
'desc' => \Froxlor\I18N\Lang::getAll()['admin']['domain_hsts_preload']['description'],
'label' => $lng['admin']['domain_hsts_preload']['title'],
'desc' => $lng['admin']['domain_hsts_preload']['description'],
'type' => 'checkbox',
'values' => array(
array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
'label' => $lng['panel']['yes'],
'value' => '1'
)
),

View File

@@ -16,25 +16,25 @@
*/
return array(
'emails_accountchangepasswd' => array(
'title' => \Froxlor\I18N\Lang::getAll()['menue']['main']['changepassword'],
'title' => $lng['menue']['main']['changepassword'],
'image' => 'icons/email_edit.png',
'sections' => array(
'section_a' => array(
'title' => \Froxlor\I18N\Lang::getAll()['menue']['main']['changepassword'],
'title' => $lng['menue']['main']['changepassword'],
'image' => 'icons/email_edit.png',
'fields' => array(
'email_full' => array(
'label' => \Froxlor\I18N\Lang::getAll()['emails']['emailaddress'],
'label' => $lng['emails']['emailaddress'],
'type' => 'label',
'value' => $result['email_full']
),
'email_password' => array(
'label' => \Froxlor\I18N\Lang::getAll()['login']['password'],
'label' => $lng['login']['password'],
'type' => 'password',
'autocomplete' => 'off'
),
'email_password_suggestion' => array(
'label' => \Froxlor\I18N\Lang::getAll()['customer']['generated_pwd'],
'label' => $lng['customer']['generated_pwd'],
'type' => 'text',
'visible' => (\Froxlor\Settings::Get('panel.password_regex') == ''),
'value' => \Froxlor\System\Crypt::generatePassword()

View File

@@ -16,20 +16,20 @@
*/
return array(
'emails_accountchangequota' => array(
'title' => \Froxlor\I18N\Lang::getAll()['emails']['quota_edit'],
'title' => $lng['emails']['quota_edit'],
'image' => 'icons/email_edit.png',
'sections' => array(
'section_a' => array(
'title' => \Froxlor\I18N\Lang::getAll()['emails']['quota_edit'],
'title' => $lng['emails']['quota_edit'],
'image' => 'icons/email_edit.png',
'fields' => array(
'email_full' => array(
'label' => \Froxlor\I18N\Lang::getAll()['emails']['emailaddress'],
'label' => $lng['emails']['emailaddress'],
'type' => 'label',
'value' => $result['email_full']
),
'email_quota' => array(
'label' => \Froxlor\I18N\Lang::getAll()['emails']['quota'] . ' (MiB)',
'label' => $lng['emails']['quota'] . ' (MiB)',
'type' => 'text',
'value' => $result['quota']
)

View File

@@ -16,15 +16,15 @@
*/
return array(
'emails_add' => array(
'title' => \Froxlor\I18N\Lang::getAll()['emails']['emails_add'],
'title' => $lng['emails']['emails_add'],
'image' => 'icons/email_add.png',
'sections' => array(
'section_a' => array(
'title' => \Froxlor\I18N\Lang::getAll()['emails']['emails_add'],
'title' => $lng['emails']['emails_add'],
'image' => 'icons/email_add.png',
'fields' => array(
'email_part' => array(
'label' => \Froxlor\I18N\Lang::getAll()['emails']['emailaddress'],
'label' => $lng['emails']['emailaddress'],
'type' => 'textul',
'ul_field' => '',
'has_nextto' => true
@@ -36,11 +36,11 @@ return array(
'select_var' => $domains
),
'iscatchall' => array(
'label' => \Froxlor\I18N\Lang::getAll()['emails']['iscatchall'],
'label' => $lng['emails']['iscatchall'],
'type' => 'checkbox',
'values' => array(
array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
'label' => $lng['panel']['yes'],
'value' => '1'
)
),

View File

@@ -16,39 +16,39 @@
*/
return array(
'emails_addaccount' => array(
'title' => \Froxlor\I18N\Lang::getAll()['emails']['account_add'],
'title' => $lng['emails']['account_add'],
'image' => 'icons/email_add.png',
'sections' => array(
'section_a' => array(
'title' => \Froxlor\I18N\Lang::getAll()['emails']['account_add'],
'title' => $lng['emails']['account_add'],
'image' => 'icons/email_add.png',
'fields' => array(
'email_full' => array(
'label' => \Froxlor\I18N\Lang::getAll()['emails']['emailaddress'],
'label' => $lng['emails']['emailaddress'],
'type' => 'label',
'value' => $result['email_full']
),
'email_password' => array(
'label' => \Froxlor\I18N\Lang::getAll()['login']['password'],
'label' => $lng['login']['password'],
'type' => 'password',
'autocomplete' => 'off'
),
'email_password_suggestion' => array(
'label' => \Froxlor\I18N\Lang::getAll()['customer']['generated_pwd'],
'label' => $lng['customer']['generated_pwd'],
'type' => 'text',
'visible' => (\Froxlor\Settings::Get('panel.password_regex') == ''),
'value' => \Froxlor\System\Crypt::generatePassword()
),
'email_quota' => array(
'visible' => (\Froxlor\Settings::Get('system.mail_quota_enabled') == '1' ? true : false),
'label' => \Froxlor\I18N\Lang::getAll()['emails']['quota'],
'label' => $lng['emails']['quota'],
'desc' => "MiB",
'type' => 'text',
'value' => $quota
),
'alternative_email' => array(
'visible' => (\Froxlor\Settings::Get('panel.sendalternativemail') == '1' ? true : false),
'label' => \Froxlor\I18N\Lang::getAll()['emails']['alternative_emailaddress'],
'label' => $lng['emails']['alternative_emailaddress'],
'type' => 'text'
)
)

View File

@@ -16,20 +16,20 @@
*/
return array(
'emails_addforwarder' => array(
'title' => \Froxlor\I18N\Lang::getAll()['emails']['forwarder_add'],
'title' => $lng['emails']['forwarder_add'],
'image' => 'icons/autoresponder_add.png',
'sections' => array(
'section_a' => array(
'title' => \Froxlor\I18N\Lang::getAll()['emails']['forwarder_add'],
'title' => $lng['emails']['forwarder_add'],
'image' => 'icons/autoresponder_add.png',
'fields' => array(
'email_full' => array(
'label' => \Froxlor\I18N\Lang::getAll()['emails']['from'],
'label' => $lng['emails']['from'],
'type' => 'label',
'value' => $result['email_full']
),
'destination' => array(
'label' => \Froxlor\I18N\Lang::getAll()['emails']['to'],
'label' => $lng['emails']['to'],
'type' => 'text'
)
)

View File

@@ -16,46 +16,46 @@
*/
return array(
'emails_edit' => array(
'title' => \Froxlor\I18N\Lang::getAll()['emails']['emails_edit'],
'title' => $lng['emails']['emails_edit'],
'image' => 'icons/email_edit.png',
'sections' => array(
'section_a' => array(
'title' => \Froxlor\I18N\Lang::getAll()['emails']['emails_edit'],
'title' => $lng['emails']['emails_edit'],
'image' => 'icons/email_edit.png',
'nobuttons' => true,
'fields' => array(
'email_full' => array(
'label' => \Froxlor\I18N\Lang::getAll()['emails']['emailaddress'],
'label' => $lng['emails']['emailaddress'],
'type' => 'label',
'value' => $result['email_full']
),
'account_yes' => array(
'visible' => ($result['popaccountid'] != 0 ? true : false),
'label' => \Froxlor\I18N\Lang::getAll()['emails']['account'],
'label' => $lng['emails']['account'],
'type' => 'label',
'value' => \Froxlor\I18N\Lang::getAll()['panel']['yes'] . '&nbsp;[<a href="' . $filename . '?page=accounts&amp;action=changepw&amp;id=' . $result['id'] . '&amp;s=' . $s . '">' . \Froxlor\I18N\Lang::getAll()['menue']['main']['changepassword'] . '</a>] [<a href="' . $filename . '?page=accounts&amp;action=delete&amp;id=' . $result['id'] . '&amp;s=' . $s . '">' . \Froxlor\I18N\Lang::getAll()['emails']['account_delete'] . '</a>]'
'value' => $lng['panel']['yes'] . '&nbsp;[<a href="' . $filename . '?page=accounts&amp;action=changepw&amp;id=' . $result['id'] . '&amp;s=' . $s . '">' . $lng['menue']['main']['changepassword'] . '</a>] [<a href="' . $filename . '?page=accounts&amp;action=delete&amp;id=' . $result['id'] . '&amp;s=' . $s . '">' . $lng['emails']['account_delete'] . '</a>]'
),
'account_no' => array(
'visible' => ($result['popaccountid'] == 0 ? true : false),
'label' => \Froxlor\I18N\Lang::getAll()['emails']['account'],
'label' => $lng['emails']['account'],
'type' => 'label',
'value' => \Froxlor\I18N\Lang::getAll()['panel']['no'] . '&nbsp;[<a href="' . $filename . '?page=accounts&amp;action=add&amp;id=' . $result['id'] . '&amp;s=' . $s . '">' . \Froxlor\I18N\Lang::getAll()['emails']['account_add'] . '</a>]'
'value' => $lng['panel']['no'] . '&nbsp;[<a href="' . $filename . '?page=accounts&amp;action=add&amp;id=' . $result['id'] . '&amp;s=' . $s . '">' . $lng['emails']['account_add'] . '</a>]'
),
'mail_quota' => array(
'visible' => ($result['popaccountid'] != 0 && \Froxlor\Settings::Get('system.mail_quota_enabled')),
'label' => \Froxlor\I18N\Lang::getAll()['customer']['email_quota'],
'label' => $lng['customer']['email_quota'],
'type' => 'label',
'value' => $result['quota'] . ' MiB [<a href="' . $filename . '?page=accounts&amp;action=changequota&amp;id=' . $result['id'] . '&amp;s=' . $s . '">' . \Froxlor\I18N\Lang::getAll()['emails']['quota_edit'] . '</a>]'
'value' => $result['quota'] . ' MiB [<a href="' . $filename . '?page=accounts&amp;action=changequota&amp;id=' . $result['id'] . '&amp;s=' . $s . '">' . $lng['emails']['quota_edit'] . '</a>]'
),
'mail_catchall' => array(
'label' => \Froxlor\I18N\Lang::getAll()['emails']['catchall'],
'label' => $lng['emails']['catchall'],
'type' => 'label',
'value' => ($result['iscatchall'] == 0 ? \Froxlor\I18N\Lang::getAll()['panel']['no'] : \Froxlor\I18N\Lang::getAll()['panel']['yes']) . ' [<a href="' . $filename . '?page=' . $page . '&amp;action=togglecatchall&amp;id=' . $result['id'] . '&amp;s=' . $s . '">' . \Froxlor\I18N\Lang::getAll()['panel']['toggle'] . '</a>]'
'value' => ($result['iscatchall'] == 0 ? $lng['panel']['no'] : $lng['panel']['yes']) . ' [<a href="' . $filename . '?page=' . $page . '&amp;action=togglecatchall&amp;id=' . $result['id'] . '&amp;s=' . $s . '">' . $lng['panel']['toggle'] . '</a>]'
),
'mail_fwds' => array(
'label' => \Froxlor\I18N\Lang::getAll()['emails']['forwarders'] . ' (' . $forwarders_count . ')',
'label' => $lng['emails']['forwarders'] . ' (' . $forwarders_count . ')',
'type' => 'label',
'value' => $forwarders . ' <a href="' . $filename . '?page=forwarders&amp;action=add&amp;id=' . $result['id'] . '&amp;s=' . $s . '">' . \Froxlor\I18N\Lang::getAll()['emails']['forwarder_add'] . '</a>'
'value' => $forwarders . ' <a href="' . $filename . '?page=forwarders&amp;action=add&amp;id=' . $result['id'] . '&amp;s=' . $s . '">' . $lng['emails']['forwarder_add'] . '</a>'
)
)
)

View File

@@ -16,31 +16,31 @@
*/
return array(
'backup' => array(
'title' => \Froxlor\I18N\Lang::getAll()['extras']['backup'],
'title' => $lng['extras']['backup'],
'image' => 'icons/backup_big.png',
'sections' => array(
'section_a' => array(
'title' => \Froxlor\I18N\Lang::getAll()['extras']['backup'],
'title' => $lng['extras']['backup'],
'image' => 'icons/backup_big.png',
'fields' => array(
'path' => array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['backuppath']['title'],
'desc' => \Froxlor\I18N\Lang::getAll()['panel']['backuppath']['description'] . '<br>' . (\Froxlor\Settings::Get('panel.pathedit') != 'Dropdown' ? \Froxlor\I18N\Lang::getAll()['panel']['pathDescription'] : null) . (isset($pathSelect['note']) ? '<br />' . $pathSelect['value'] : ''),
'label' => $lng['panel']['backuppath']['title'],
'desc' => $lng['panel']['backuppath']['description'] . '<br>' . (\Froxlor\Settings::Get('panel.pathedit') != 'Dropdown' ? $lng['panel']['pathDescription'] : null) . (isset($pathSelect['note']) ? '<br />' . $pathSelect['value'] : ''),
'type' => $pathSelect['type'],
'select_var' => $pathSelect['value'],
'value' => $pathSelect['value']
),
'path_protection_info' => array(
'label' => \Froxlor\I18N\Lang::getAll()['extras']['path_protection_label'],
'label' => $lng['extras']['path_protection_label'],
'type' => 'label',
'value' => \Froxlor\I18N\Lang::getAll()['extras']['path_protection_info']
'value' => $lng['extras']['path_protection_info']
),
'backup_web' => array(
'label' => \Froxlor\I18N\Lang::getAll()['extras']['backup_web'],
'label' => $lng['extras']['backup_web'],
'type' => 'checkbox',
'values' => array(
array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
'label' => $lng['panel']['yes'],
'value' => '1'
)
),
@@ -49,11 +49,11 @@ return array(
)
),
'backup_mail' => array(
'label' => \Froxlor\I18N\Lang::getAll()['extras']['backup_mail'],
'label' => $lng['extras']['backup_mail'],
'type' => 'checkbox',
'values' => array(
array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
'label' => $lng['panel']['yes'],
'value' => '1'
)
),
@@ -62,11 +62,11 @@ return array(
)
),
'backup_dbs' => array(
'label' => \Froxlor\I18N\Lang::getAll()['extras']['backup_dbs'],
'label' => $lng['extras']['backup_dbs'],
'type' => 'checkbox',
'values' => array(
array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
'label' => $lng['panel']['yes'],
'value' => '1'
)
),

View File

@@ -16,55 +16,55 @@
*/
return array(
'htaccess_add' => array(
'title' => \Froxlor\I18N\Lang::getAll()['extras']['pathoptions_add'],
'title' => $lng['extras']['pathoptions_add'],
'image' => 'icons/htpasswd_add.png',
'sections' => array(
'section_a' => array(
'title' => \Froxlor\I18N\Lang::getAll()['extras']['pathoptions_add'],
'title' => $lng['extras']['pathoptions_add'],
'image' => 'icons/htpasswd_add.png',
'fields' => array(
'path' => array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['path'],
'desc' => (\Froxlor\Settings::Get('panel.pathedit') != 'Dropdown' ? \Froxlor\I18N\Lang::getAll()['panel']['pathDescription'] : null) . (isset($pathSelect['note']) ? '<br />' . $pathSelect['value'] : ''),
'label' => $lng['panel']['path'],
'desc' => (\Froxlor\Settings::Get('panel.pathedit') != 'Dropdown' ? $lng['panel']['pathDescription'] : null) . (isset($pathSelect['note']) ? '<br />' . $pathSelect['value'] : ''),
'type' => $pathSelect['type'],
'select_var' => $pathSelect['value'],
'value' => $pathSelect['value']
),
'options_indexes' => array(
'label' => \Froxlor\I18N\Lang::getAll()['extras']['directory_browsing'],
'label' => $lng['extras']['directory_browsing'],
'type' => 'checkbox',
'values' => array(
array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
'label' => $lng['panel']['yes'],
'value' => '1'
)
),
'value' => array()
),
'error404path' => array(
'label' => \Froxlor\I18N\Lang::getAll()['extras']['errordocument404path'],
'desc' => \Froxlor\I18N\Lang::getAll()['panel']['descriptionerrordocument'],
'label' => $lng['extras']['errordocument404path'],
'desc' => $lng['panel']['descriptionerrordocument'],
'type' => 'text'
),
'error403path' => array(
'visible' => (\Froxlor\Settings::Get('system.webserver') == 'apache2'),
'label' => \Froxlor\I18N\Lang::getAll()['extras']['errordocument403path'],
'desc' => \Froxlor\I18N\Lang::getAll()['panel']['descriptionerrordocument'],
'label' => $lng['extras']['errordocument403path'],
'desc' => $lng['panel']['descriptionerrordocument'],
'type' => 'text'
),
'error500path' => array(
'visible' => (\Froxlor\Settings::Get('system.webserver') == 'apache2'),
'label' => \Froxlor\I18N\Lang::getAll()['extras']['errordocument500path'],
'desc' => \Froxlor\I18N\Lang::getAll()['panel']['descriptionerrordocument'],
'label' => $lng['extras']['errordocument500path'],
'desc' => $lng['panel']['descriptionerrordocument'],
'type' => 'text'
),
'options_cgi' => array(
'visible' => ($cperlenabled == 1),
'label' => \Froxlor\I18N\Lang::getAll()['extras']['execute_perl'],
'label' => $lng['extras']['execute_perl'],
'type' => 'checkbox',
'values' => array(
array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
'label' => $lng['panel']['yes'],
'value' => '1'
)
),

View File

@@ -16,24 +16,24 @@
*/
return array(
'htaccess_edit' => array(
'title' => \Froxlor\I18N\Lang::getAll()['extras']['pathoptions_edit'],
'title' => $lng['extras']['pathoptions_edit'],
'image' => 'icons/htpasswd_edit.png',
'sections' => array(
'section_a' => array(
'title' => \Froxlor\I18N\Lang::getAll()['extras']['pathoptions_edit'],
'title' => $lng['extras']['pathoptions_edit'],
'image' => 'icons/htpasswd_edit.png',
'fields' => array(
'path' => array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['path'],
'label' => $lng['panel']['path'],
'type' => 'label',
'value' => $result['path']
),
'options_indexes' => array(
'label' => \Froxlor\I18N\Lang::getAll()['extras']['directory_browsing'],
'label' => $lng['extras']['directory_browsing'],
'type' => 'checkbox',
'values' => array(
array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
'label' => $lng['panel']['yes'],
'value' => '1'
)
),
@@ -42,32 +42,32 @@ return array(
)
),
'error404path' => array(
'label' => \Froxlor\I18N\Lang::getAll()['extras']['errordocument404path'],
'desc' => \Froxlor\I18N\Lang::getAll()['panel']['descriptionerrordocument'],
'label' => $lng['extras']['errordocument404path'],
'desc' => $lng['panel']['descriptionerrordocument'],
'type' => 'text',
'value' => $result['error404path']
),
'error403path' => array(
'visible' => (\Froxlor\Settings::Get('system.webserver') == 'apache2'),
'label' => \Froxlor\I18N\Lang::getAll()['extras']['errordocument403path'],
'desc' => \Froxlor\I18N\Lang::getAll()['panel']['descriptionerrordocument'],
'label' => $lng['extras']['errordocument403path'],
'desc' => $lng['panel']['descriptionerrordocument'],
'type' => 'text',
'value' => $result['error403path']
),
'error500path' => array(
'visible' => (\Froxlor\Settings::Get('system.webserver') == 'apache2'),
'label' => \Froxlor\I18N\Lang::getAll()['extras']['errordocument500path'],
'desc' => \Froxlor\I18N\Lang::getAll()['panel']['descriptionerrordocument'],
'label' => $lng['extras']['errordocument500path'],
'desc' => $lng['panel']['descriptionerrordocument'],
'type' => 'text',
'value' => $result['error500path']
),
'options_cgi' => array(
'visible' => ($cperlenabled == 1),
'label' => \Froxlor\I18N\Lang::getAll()['extras']['execute_perl'],
'label' => $lng['extras']['execute_perl'],
'type' => 'checkbox',
'values' => array(
array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
'label' => $lng['panel']['yes'],
'value' => '1'
)
),

View File

@@ -16,37 +16,37 @@
*/
return array(
'htpasswd_add' => array(
'title' => \Froxlor\I18N\Lang::getAll()['extras']['directoryprotection_add'],
'title' => $lng['extras']['directoryprotection_add'],
'image' => 'icons/htpasswd_add.png',
'sections' => array(
'section_a' => array(
'title' => \Froxlor\I18N\Lang::getAll()['extras']['directoryprotection_add'],
'title' => $lng['extras']['directoryprotection_add'],
'image' => 'icons/htpasswd_add.png',
'fields' => array(
'path' => array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['path'],
'desc' => (\Froxlor\Settings::Get('panel.pathedit') != 'Dropdown' ? \Froxlor\I18N\Lang::getAll()['panel']['pathDescription'] : null) . (isset($pathSelect['note']) ? '<br />' . $pathSelect['value'] : ''),
'label' => $lng['panel']['path'],
'desc' => (\Froxlor\Settings::Get('panel.pathedit') != 'Dropdown' ? $lng['panel']['pathDescription'] : null) . (isset($pathSelect['note']) ? '<br />' . $pathSelect['value'] : ''),
'type' => $pathSelect['type'],
'select_var' => $pathSelect['value'],
'value' => $pathSelect['value']
),
'username' => array(
'label' => \Froxlor\I18N\Lang::getAll()['login']['username'],
'label' => $lng['login']['username'],
'type' => 'text'
),
'directory_password' => array(
'label' => \Froxlor\I18N\Lang::getAll()['login']['password'],
'label' => $lng['login']['password'],
'type' => 'password',
'autocomplete' => 'off'
),
'directory_password_suggestion' => array(
'label' => \Froxlor\I18N\Lang::getAll()['customer']['generated_pwd'],
'label' => $lng['customer']['generated_pwd'],
'type' => 'text',
'visible' => (\Froxlor\Settings::Get('panel.password_regex') == ''),
'value' => \Froxlor\System\Crypt::generatePassword()
),
'directory_authname' => array(
'label' => \Froxlor\I18N\Lang::getAll()['extras']['htpasswdauthname'],
'label' => $lng['extras']['htpasswdauthname'],
'type' => 'text'
)
)

View File

@@ -16,36 +16,36 @@
*/
return array(
'htpasswd_edit' => array(
'title' => \Froxlor\I18N\Lang::getAll()['extras']['directoryprotection_edit'],
'title' => $lng['extras']['directoryprotection_edit'],
'image' => 'icons/htpasswd_edit.png',
'sections' => array(
'section_a' => array(
'title' => \Froxlor\I18N\Lang::getAll()['extras']['directoryprotection_edit'],
'title' => $lng['extras']['directoryprotection_edit'],
'image' => 'icons/htpasswd_edit.png',
'fields' => array(
'path' => array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['path'],
'label' => $lng['panel']['path'],
'type' => 'label',
'value' => $result['path']
),
'username' => array(
'label' => \Froxlor\I18N\Lang::getAll()['login']['username'],
'label' => $lng['login']['username'],
'type' => 'label',
'value' => $result['username']
),
'directory_password' => array(
'label' => \Froxlor\I18N\Lang::getAll()['login']['password'],
'label' => $lng['login']['password'],
'type' => 'password',
'autocomplete' => 'off'
),
'directory_password_suggestion' => array(
'label' => \Froxlor\I18N\Lang::getAll()['customer']['generated_pwd'],
'label' => $lng['customer']['generated_pwd'],
'type' => 'text',
'visible' => (\Froxlor\Settings::Get('panel.password_regex') == ''),
'value' => \Froxlor\System\Crypt::generatePassword()
),
'directory_authname' => array(
'label' => \Froxlor\I18N\Lang::getAll()['extras']['htpasswdauthname'],
'label' => $lng['extras']['htpasswdauthname'],
'type' => 'text',
'value' => $result['authname']
)

View File

@@ -15,52 +15,52 @@
*/
return array(
'ftp_add' => array(
'title' => \Froxlor\I18N\Lang::getAll()['ftp']['account_add'],
'title' => $lng['ftp']['account_add'],
'image' => 'icons/user_add.png',
'sections' => array(
'section_a' => array(
'title' => \Froxlor\I18N\Lang::getAll()['ftp']['account_add'],
'title' => $lng['ftp']['account_add'],
'image' => 'icons/user_add.png',
'fields' => array(
'ftp_username' => array(
'visible' => (\Froxlor\Settings::Get('customer.ftpatdomain') == '1' ? true : false),
'label' => \Froxlor\I18N\Lang::getAll()['login']['username'],
'label' => $lng['login']['username'],
'type' => 'text'
),
'ftp_domain' => array(
'visible' => (\Froxlor\Settings::Get('customer.ftpatdomain') == '1' ? true : false),
'label' => \Froxlor\I18N\Lang::getAll()['domains']['domainname'],
'label' => $lng['domains']['domainname'],
'type' => 'select',
'select_var' => (isset($domains) ? $domains : "")
),
'ftp_description' => array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['ftpdesc'] = 'FTP description',
'label' => $lng['panel']['ftpdesc'] = 'FTP description',
'type' => 'text'
),
'path' => array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['path'],
'desc' => (\Froxlor\Settings::Get('panel.pathedit') != 'Dropdown' ? \Froxlor\I18N\Lang::getAll()['panel']['pathDescription'] : null) . (isset($pathSelect['note']) ? '<br />' . $pathSelect['value'] : ''),
'label' => $lng['panel']['path'],
'desc' => (\Froxlor\Settings::Get('panel.pathedit') != 'Dropdown' ? $lng['panel']['pathDescription'] : null) . (isset($pathSelect['note']) ? '<br />' . $pathSelect['value'] : ''),
'type' => $pathSelect['type'],
'select_var' => $pathSelect['value'],
'value' => $pathSelect['value']
),
'ftp_password' => array(
'label' => \Froxlor\I18N\Lang::getAll()['login']['password'],
'label' => $lng['login']['password'],
'type' => 'password',
'autocomplete' => 'off'
),
'ftp_password_suggestion' => array(
'label' => \Froxlor\I18N\Lang::getAll()['customer']['generated_pwd'],
'label' => $lng['customer']['generated_pwd'],
'type' => 'text',
'visible' => (\Froxlor\Settings::Get('panel.password_regex') == ''),
'value' => \Froxlor\System\Crypt::generatePassword()
),
'sendinfomail' => array(
'label' => \Froxlor\I18N\Lang::getAll()['customer']['sendinfomail'],
'label' => $lng['customer']['sendinfomail'],
'type' => 'checkbox',
'values' => array(
array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
'label' => $lng['panel']['yes'],
'value' => '1'
)
),
@@ -68,7 +68,7 @@ return array(
),
'shell' => array(
'visible' => (\Froxlor\Settings::Get('system.allow_customer_shell') == '1' ? true : false),
'label' => \Froxlor\I18N\Lang::getAll()['panel']['shell'],
'label' => $lng['panel']['shell'],
'type' => 'select',
'select_var' => (isset($shells) ? $shells : "")
)

View File

@@ -15,45 +15,45 @@
*/
return array(
'ftp_edit' => array(
'title' => \Froxlor\I18N\Lang::getAll()['ftp']['account_edit'],
'title' => $lng['ftp']['account_edit'],
'image' => 'icons/user_edit.png',
'sections' => array(
'section_a' => array(
'title' => \Froxlor\I18N\Lang::getAll()['ftp']['account_edit'],
'title' => $lng['ftp']['account_edit'],
'image' => 'icons/user_edit.png',
'fields' => array(
'username' => array(
'label' => \Froxlor\I18N\Lang::getAll()['login']['username'],
'label' => $lng['login']['username'],
'type' => 'label',
'value' => $result['username']
),
'ftp_description' => array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['ftpdesc'] = 'FTP description',
'label' => $lng['panel']['ftpdesc'] = 'FTP description',
'type' => 'text',
'value' => $result['description']
),
'path' => array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['path'],
'desc' => (\Froxlor\Settings::Get('panel.pathedit') != 'Dropdown' ? \Froxlor\I18N\Lang::getAll()['panel']['pathDescription'] : null) . (isset($pathSelect['note']) ? '<br />' . $pathSelect['value'] : ''),
'label' => $lng['panel']['path'],
'desc' => (\Froxlor\Settings::Get('panel.pathedit') != 'Dropdown' ? $lng['panel']['pathDescription'] : null) . (isset($pathSelect['note']) ? '<br />' . $pathSelect['value'] : ''),
'type' => $pathSelect['type'],
'select_var' => $pathSelect['value'],
'value' => $pathSelect['value']
),
'ftp_password' => array(
'label' => \Froxlor\I18N\Lang::getAll()['login']['password'],
'desc' => \Froxlor\I18N\Lang::getAll()['ftp']['editpassdescription'],
'label' => $lng['login']['password'],
'desc' => $lng['ftp']['editpassdescription'],
'type' => 'password',
'autocomplete' => 'off'
),
'ftp_password_suggestion' => array(
'label' => \Froxlor\I18N\Lang::getAll()['customer']['generated_pwd'],
'label' => $lng['customer']['generated_pwd'],
'type' => 'text',
'visible' => (\Froxlor\Settings::Get('panel.password_regex') == ''),
'value' => \Froxlor\System\Crypt::generatePassword()
),
'shell' => array(
'visible' => (\Froxlor\Settings::Get('system.allow_customer_shell') == '1' ? true : false),
'label' => \Froxlor\I18N\Lang::getAll()['panel']['shell'],
'label' => $lng['panel']['shell'],
'type' => 'select',
'select_var' => (isset($shells) ? $shells : "")
)

View File

@@ -15,40 +15,40 @@
*/
return array(
'mysql_add' => array(
'title' => \Froxlor\I18N\Lang::getAll()['mysql']['database_create'],
'title' => $lng['mysql']['database_create'],
'image' => 'icons/mysql_add.png',
'sections' => array(
'section_a' => array(
'title' => \Froxlor\I18N\Lang::getAll()['mysql']['database_create'],
'title' => $lng['mysql']['database_create'],
'image' => 'icons/mysql_add.png',
'fields' => array(
'description' => array(
'label' => \Froxlor\I18N\Lang::getAll()['mysql']['databasedescription'],
'label' => $lng['mysql']['databasedescription'],
'type' => 'text'
),
'mysql_server' => array(
'visible' => (1 < $count_mysqlservers ? true : false),
'label' => \Froxlor\I18N\Lang::getAll()['mysql']['mysql_server'],
'label' => $lng['mysql']['mysql_server'],
'type' => 'select',
'select_var' => $mysql_servers
),
'mysql_password' => array(
'label' => \Froxlor\I18N\Lang::getAll()['login']['password'],
'label' => $lng['login']['password'],
'type' => 'password',
'autocomplete' => 'off'
),
'mysql_password_suggestion' => array(
'label' => \Froxlor\I18N\Lang::getAll()['customer']['generated_pwd'],
'label' => $lng['customer']['generated_pwd'],
'type' => 'text',
'visible' => (\Froxlor\Settings::Get('panel.password_regex') == ''),
'value' => \Froxlor\System\Crypt::generatePassword()
),
'sendinfomail' => array(
'label' => \Froxlor\I18N\Lang::getAll()['customer']['sendinfomail'],
'label' => $lng['customer']['sendinfomail'],
'type' => 'checkbox',
'values' => array(
array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
'label' => $lng['panel']['yes'],
'value' => '1'
)
),

View File

@@ -15,36 +15,36 @@
*/
return array(
'mysql_edit' => array(
'title' => \Froxlor\I18N\Lang::getAll()['mysql']['database_edit'],
'title' => $lng['mysql']['database_edit'],
'image' => 'icons/mysql_edit.png',
'sections' => array(
'section_a' => array(
'title' => \Froxlor\I18N\Lang::getAll()['mysql']['database_edit'],
'title' => $lng['mysql']['database_edit'],
'image' => 'icons/mysql_edit.png',
'fields' => array(
'databasename' => array(
'label' => \Froxlor\I18N\Lang::getAll()['mysql']['databasename'],
'label' => $lng['mysql']['databasename'],
'type' => 'label',
'value' => $result['databasename']
),
'description' => array(
'label' => \Froxlor\I18N\Lang::getAll()['mysql']['databasedescription'],
'label' => $lng['mysql']['databasedescription'],
'type' => 'text',
'value' => $result['description']
),
'mysql_server' => array(
'visible' => (1 < $count_mysqlservers ? true : false),
'label' => \Froxlor\I18N\Lang::getAll()['mysql']['mysql_server'],
'label' => $lng['mysql']['mysql_server'],
'type' => 'label',
'value' => $sql_root['caption']
),
'mysql_password' => array(
'label' => \Froxlor\I18N\Lang::getAll()['changepassword']['new_password_ifnotempty'],
'label' => $lng['changepassword']['new_password_ifnotempty'],
'type' => 'password',
'autocomplete' => 'off'
),
'mysql_password_suggestion' => array(
'label' => \Froxlor\I18N\Lang::getAll()['customer']['generated_pwd'],
'label' => $lng['customer']['generated_pwd'],
'type' => 'text',
'visible' => (\Froxlor\Settings::Get('panel.password_regex') == ''),
'value' => \Froxlor\System\Crypt::generatePassword()