refactor global array
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
*/
|
||||
return array(
|
||||
'domain_ssleditor' => array(
|
||||
'title' => $lng['panel']['ssleditor'],
|
||||
'title' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['ipsandports']['ssl_cert_file_content'],
|
||||
'desc' => $lng['admin']['ipsandports']['ssl_paste_description'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['ssl_cert_file_content'],
|
||||
'desc' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['ipsandports']['ssl_key_file_content'],
|
||||
'desc' => $lng['admin']['ipsandports']['ssl_paste_description'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['ssl_key_file_content'],
|
||||
'desc' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['ipsandports']['ssl_cert_chainfile_content'],
|
||||
'desc' => $lng['admin']['ipsandports']['ssl_paste_description'] . $lng['admin']['ipsandports']['ssl_cert_chainfile_content_desc'],
|
||||
'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'],
|
||||
'type' => 'textarea',
|
||||
'cols' => 100,
|
||||
'rows' => 15,
|
||||
@@ -52,8 +52,8 @@ return array(
|
||||
),
|
||||
'ssl_ca_file' => array(
|
||||
'style' => 'align-top',
|
||||
'label' => $lng['admin']['ipsandports']['ssl_ca_file_content'],
|
||||
'desc' => $lng['admin']['ipsandports']['ssl_paste_description'] . $lng['admin']['ipsandports']['ssl_ca_file_content_desc'],
|
||||
'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'],
|
||||
'type' => 'textarea',
|
||||
'cols' => 100,
|
||||
'rows' => 15,
|
||||
|
||||
@@ -16,15 +16,15 @@
|
||||
*/
|
||||
return array(
|
||||
'domain_add' => array(
|
||||
'title' => $lng['domains']['subdomain_add'],
|
||||
'title' => \Froxlor\I18N\Lang::getAll()['domains']['subdomain_add'],
|
||||
'image' => 'icons/domain_add.png',
|
||||
'sections' => array(
|
||||
'section_a' => array(
|
||||
'title' => $lng['domains']['subdomain_add'],
|
||||
'title' => \Froxlor\I18N\Lang::getAll()['domains']['subdomain_add'],
|
||||
'image' => 'icons/domain_add.png',
|
||||
'fields' => array(
|
||||
'subdomain' => array(
|
||||
'label' => $lng['domains']['domainname'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['domains']['domainname'],
|
||||
'type' => 'textul',
|
||||
'ul_field' => '',
|
||||
'has_nextto' => true
|
||||
@@ -36,60 +36,60 @@ return array(
|
||||
'select_var' => $domains
|
||||
),
|
||||
'alias' => array(
|
||||
'label' => $lng['domains']['aliasdomain'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['domains']['aliasdomain'],
|
||||
'type' => 'select',
|
||||
'select_var' => $aliasdomains
|
||||
),
|
||||
'path' => array(
|
||||
'label' => $lng['panel']['path'],
|
||||
'desc' => (\Froxlor\Settings::Get('panel.pathedit') != 'Dropdown' ? $lng['panel']['pathDescriptionSubdomain'] : null) . (isset($pathSelect['note']) ? $pathSelect['note'] . '<br />' . $pathSelect['value'] : ''),
|
||||
'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'] : ''),
|
||||
'type' => $pathSelect['type'],
|
||||
'select_var' => $pathSelect['value'],
|
||||
'value' => $pathSelect['value']
|
||||
),
|
||||
'url' => array(
|
||||
'visible' => (\Froxlor\Settings::Get('panel.pathedit') == 'Dropdown' ? true : false),
|
||||
'label' => $lng['panel']['urloverridespath'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['panel']['urloverridespath'],
|
||||
'type' => 'text'
|
||||
),
|
||||
'redirectcode' => array(
|
||||
'visible' => (\Froxlor\Settings::Get('customredirect.enabled') == '1' ? true : false),
|
||||
'label' => $lng['domains']['redirectifpathisurl'],
|
||||
'desc' => $lng['domains']['redirectifpathisurlinfo'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['domains']['redirectifpathisurl'],
|
||||
'desc' => \Froxlor\I18N\Lang::getAll()['domains']['redirectifpathisurlinfo'],
|
||||
'type' => 'select',
|
||||
'select_var' => isset($redirectcode) ? $redirectcode : null
|
||||
),
|
||||
'selectserveralias' => array(
|
||||
'label' => $lng['admin']['selectserveralias'],
|
||||
'desc' => $lng['admin']['selectserveralias_desc'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['admin']['selectserveralias'],
|
||||
'desc' => \Froxlor\I18N\Lang::getAll()['admin']['selectserveralias_desc'],
|
||||
'type' => 'label',
|
||||
'value' => $lng['customer']['selectserveralias_addinfo']
|
||||
'value' => \Froxlor\I18N\Lang::getAll()['customer']['selectserveralias_addinfo']
|
||||
),
|
||||
'openbasedir_path' => array(
|
||||
'label' => $lng['domain']['openbasedirpath'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['phpsettings']['title'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['admin']['phpsettings']['title'],
|
||||
'type' => 'select',
|
||||
'select_var' => $phpconfigs
|
||||
)
|
||||
)
|
||||
),
|
||||
'section_bssl' => array(
|
||||
'title' => $lng['admin']['webserversettings_ssl'],
|
||||
'title' => \Froxlor\I18N\Lang::getAll()['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' => $lng['domains']['ssl_redirect']['title'],
|
||||
'desc' => $lng['domains']['ssl_redirect']['description'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['domains']['ssl_redirect']['title'],
|
||||
'desc' => \Froxlor\I18N\Lang::getAll()['domains']['ssl_redirect']['description'],
|
||||
'type' => 'checkbox',
|
||||
'values' => array(
|
||||
array(
|
||||
'label' => $lng['panel']['yes'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
|
||||
'value' => '1'
|
||||
)
|
||||
),
|
||||
@@ -97,44 +97,44 @@ return array(
|
||||
),
|
||||
'letsencrypt' => array(
|
||||
'visible' => (\Froxlor\Settings::Get('system.leenabled') == '1' ? true : false),
|
||||
'label' => $lng['customer']['letsencrypt']['title'],
|
||||
'desc' => $lng['customer']['letsencrypt']['description'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['customer']['letsencrypt']['title'],
|
||||
'desc' => \Froxlor\I18N\Lang::getAll()['customer']['letsencrypt']['description'],
|
||||
'type' => 'checkbox',
|
||||
'values' => array(
|
||||
array(
|
||||
'label' => $lng['panel']['yes'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
|
||||
'value' => '1'
|
||||
)
|
||||
),
|
||||
'value' => array()
|
||||
),
|
||||
'hsts_maxage' => array(
|
||||
'label' => $lng['admin']['domain_hsts_maxage']['title'],
|
||||
'desc' => $lng['admin']['domain_hsts_maxage']['description'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['admin']['domain_hsts_maxage']['title'],
|
||||
'desc' => \Froxlor\I18N\Lang::getAll()['admin']['domain_hsts_maxage']['description'],
|
||||
'type' => 'int',
|
||||
'int_min' => 0,
|
||||
'int_max' => 94608000, // 3-years
|
||||
'value' => 0
|
||||
),
|
||||
'hsts_sub' => array(
|
||||
'label' => $lng['admin']['domain_hsts_incsub']['title'],
|
||||
'desc' => $lng['admin']['domain_hsts_incsub']['description'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['admin']['domain_hsts_incsub']['title'],
|
||||
'desc' => \Froxlor\I18N\Lang::getAll()['admin']['domain_hsts_incsub']['description'],
|
||||
'type' => 'checkbox',
|
||||
'values' => array(
|
||||
array(
|
||||
'label' => $lng['panel']['yes'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
|
||||
'value' => '1'
|
||||
)
|
||||
),
|
||||
'value' => array()
|
||||
),
|
||||
'hsts_preload' => array(
|
||||
'label' => $lng['admin']['domain_hsts_preload']['title'],
|
||||
'desc' => $lng['admin']['domain_hsts_preload']['description'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['admin']['domain_hsts_preload']['title'],
|
||||
'desc' => \Froxlor\I18N\Lang::getAll()['admin']['domain_hsts_preload']['description'],
|
||||
'type' => 'checkbox',
|
||||
'values' => array(
|
||||
array(
|
||||
'label' => $lng['panel']['yes'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
|
||||
'value' => '1'
|
||||
)
|
||||
),
|
||||
|
||||
@@ -16,53 +16,53 @@
|
||||
*/
|
||||
return array(
|
||||
'domain_edit' => array(
|
||||
'title' => $lng['domains']['subdomain_edit'],
|
||||
'title' => \Froxlor\I18N\Lang::getAll()['domains']['subdomain_edit'],
|
||||
'image' => 'icons/domain_edit.png',
|
||||
'sections' => array(
|
||||
'section_a' => array(
|
||||
'title' => $lng['domains']['subdomain_edit'],
|
||||
'title' => \Froxlor\I18N\Lang::getAll()['domains']['subdomain_edit'],
|
||||
'image' => 'icons/domain_edit.png',
|
||||
'fields' => array(
|
||||
'domain' => array(
|
||||
'label' => $lng['domains']['domainname'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['domains']['domainname'],
|
||||
'type' => 'label',
|
||||
'value' => $result['domain']
|
||||
),
|
||||
'dns' => array(
|
||||
'label' => $lng['dns']['destinationip'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['dns']['destinationip'],
|
||||
'type' => 'label',
|
||||
'value' => $domainip
|
||||
),
|
||||
'alias' => array(
|
||||
'visible' => ($alias_check == '0' ? true : false),
|
||||
'label' => $lng['domains']['aliasdomain'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['domains']['aliasdomain'],
|
||||
'type' => 'select',
|
||||
'select_var' => $domains
|
||||
),
|
||||
'path' => array(
|
||||
'label' => $lng['panel']['path'],
|
||||
'desc' => (\Froxlor\Settings::Get('panel.pathedit') != 'Dropdown' ? $lng['panel']['pathDescriptionSubdomain'] : null) . (isset($pathSelect['note']) ? '<br />' . $pathSelect['value'] : ''),
|
||||
'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'] : ''),
|
||||
'type' => $pathSelect['type'],
|
||||
'select_var' => $pathSelect['value'],
|
||||
'value' => $pathSelect['value']
|
||||
),
|
||||
'url' => array(
|
||||
'visible' => (\Froxlor\Settings::Get('panel.pathedit') == 'Dropdown' ? true : false),
|
||||
'label' => $lng['panel']['urloverridespath'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['panel']['urloverridespath'],
|
||||
'type' => 'text',
|
||||
'value' => $urlvalue
|
||||
),
|
||||
'redirectcode' => array(
|
||||
'visible' => (\Froxlor\Settings::Get('customredirect.enabled') == '1' ? true : false),
|
||||
'label' => $lng['domains']['redirectifpathisurl'],
|
||||
'desc' => $lng['domains']['redirectifpathisurlinfo'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['domains']['redirectifpathisurl'],
|
||||
'desc' => \Froxlor\I18N\Lang::getAll()['domains']['redirectifpathisurlinfo'],
|
||||
'type' => 'select',
|
||||
'select_var' => $redirectcode
|
||||
),
|
||||
'selectserveralias' => array(
|
||||
'visible' => ((($result['parentdomainid'] == '0' && \Froxlor\User::getAll()['subdomains'] != '0') || $result['parentdomainid'] != '0') ? true : false),
|
||||
'label' => $lng['admin']['selectserveralias'],
|
||||
'desc' => $lng['admin']['selectserveralias_desc'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['admin']['selectserveralias'],
|
||||
'desc' => \Froxlor\I18N\Lang::getAll()['admin']['selectserveralias_desc'],
|
||||
'type' => 'select',
|
||||
'select_var' => $serveraliasoptions
|
||||
),
|
||||
@@ -72,7 +72,7 @@ return array(
|
||||
'type' => 'checkbox',
|
||||
'values' => array(
|
||||
array(
|
||||
'label' => $lng['panel']['yes'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
|
||||
'value' => '1'
|
||||
)
|
||||
),
|
||||
@@ -82,30 +82,30 @@ return array(
|
||||
),
|
||||
'openbasedir_path' => array(
|
||||
'visible' => ($result['openbasedir'] == '1') ? true : false,
|
||||
'label' => $lng['domain']['openbasedirpath'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['phpsettings']['title'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['admin']['phpsettings']['title'],
|
||||
'type' => 'select',
|
||||
'select_var' => $phpconfigs
|
||||
)
|
||||
)
|
||||
),
|
||||
'section_bssl' => array(
|
||||
'title' => $lng['admin']['webserversettings_ssl'],
|
||||
'title' => \Froxlor\I18N\Lang::getAll()['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' => $lng['domains']['ssl_redirect']['title'],
|
||||
'desc' => $lng['domains']['ssl_redirect']['description'] . ($result['temporary_ssl_redirect'] > 1 ? $lng['domains']['ssl_redirect_temporarilydisabled'] : ''),
|
||||
'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'] : ''),
|
||||
'type' => 'checkbox',
|
||||
'values' => array(
|
||||
array(
|
||||
'label' => $lng['panel']['yes'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
|
||||
'value' => '1'
|
||||
)
|
||||
),
|
||||
@@ -115,12 +115,12 @@ return array(
|
||||
),
|
||||
'letsencrypt' => array(
|
||||
'visible' => \Froxlor\Settings::Get('system.leenabled') == '1' ? true : false,
|
||||
'label' => $lng['customer']['letsencrypt']['title'],
|
||||
'desc' => $lng['customer']['letsencrypt']['description'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['customer']['letsencrypt']['title'],
|
||||
'desc' => \Froxlor\I18N\Lang::getAll()['customer']['letsencrypt']['description'],
|
||||
'type' => 'checkbox',
|
||||
'values' => array(
|
||||
array(
|
||||
'label' => $lng['panel']['yes'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
|
||||
'value' => '1'
|
||||
)
|
||||
),
|
||||
@@ -129,20 +129,20 @@ return array(
|
||||
)
|
||||
),
|
||||
'hsts_maxage' => array(
|
||||
'label' => $lng['admin']['domain_hsts_maxage']['title'],
|
||||
'desc' => $lng['admin']['domain_hsts_maxage']['description'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['admin']['domain_hsts_maxage']['title'],
|
||||
'desc' => \Froxlor\I18N\Lang::getAll()['admin']['domain_hsts_maxage']['description'],
|
||||
'type' => 'int',
|
||||
'int_min' => 0,
|
||||
'int_max' => 94608000, // 3-years
|
||||
'value' => $result['hsts']
|
||||
),
|
||||
'hsts_sub' => array(
|
||||
'label' => $lng['admin']['domain_hsts_incsub']['title'],
|
||||
'desc' => $lng['admin']['domain_hsts_incsub']['description'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['admin']['domain_hsts_incsub']['title'],
|
||||
'desc' => \Froxlor\I18N\Lang::getAll()['admin']['domain_hsts_incsub']['description'],
|
||||
'type' => 'checkbox',
|
||||
'values' => array(
|
||||
array(
|
||||
'label' => $lng['panel']['yes'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
|
||||
'value' => '1'
|
||||
)
|
||||
),
|
||||
@@ -151,12 +151,12 @@ return array(
|
||||
)
|
||||
),
|
||||
'hsts_preload' => array(
|
||||
'label' => $lng['admin']['domain_hsts_preload']['title'],
|
||||
'desc' => $lng['admin']['domain_hsts_preload']['description'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['admin']['domain_hsts_preload']['title'],
|
||||
'desc' => \Froxlor\I18N\Lang::getAll()['admin']['domain_hsts_preload']['description'],
|
||||
'type' => 'checkbox',
|
||||
'values' => array(
|
||||
array(
|
||||
'label' => $lng['panel']['yes'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
|
||||
'value' => '1'
|
||||
)
|
||||
),
|
||||
|
||||
@@ -16,25 +16,25 @@
|
||||
*/
|
||||
return array(
|
||||
'emails_accountchangepasswd' => array(
|
||||
'title' => $lng['menue']['main']['changepassword'],
|
||||
'title' => \Froxlor\I18N\Lang::getAll()['menue']['main']['changepassword'],
|
||||
'image' => 'icons/email_edit.png',
|
||||
'sections' => array(
|
||||
'section_a' => array(
|
||||
'title' => $lng['menue']['main']['changepassword'],
|
||||
'title' => \Froxlor\I18N\Lang::getAll()['menue']['main']['changepassword'],
|
||||
'image' => 'icons/email_edit.png',
|
||||
'fields' => array(
|
||||
'email_full' => array(
|
||||
'label' => $lng['emails']['emailaddress'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['emails']['emailaddress'],
|
||||
'type' => 'label',
|
||||
'value' => $result['email_full']
|
||||
),
|
||||
'email_password' => array(
|
||||
'label' => $lng['login']['password'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['login']['password'],
|
||||
'type' => 'password',
|
||||
'autocomplete' => 'off'
|
||||
),
|
||||
'email_password_suggestion' => array(
|
||||
'label' => $lng['customer']['generated_pwd'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['customer']['generated_pwd'],
|
||||
'type' => 'text',
|
||||
'visible' => (\Froxlor\Settings::Get('panel.password_regex') == ''),
|
||||
'value' => \Froxlor\System\Crypt::generatePassword()
|
||||
|
||||
@@ -16,20 +16,20 @@
|
||||
*/
|
||||
return array(
|
||||
'emails_accountchangequota' => array(
|
||||
'title' => $lng['emails']['quota_edit'],
|
||||
'title' => \Froxlor\I18N\Lang::getAll()['emails']['quota_edit'],
|
||||
'image' => 'icons/email_edit.png',
|
||||
'sections' => array(
|
||||
'section_a' => array(
|
||||
'title' => $lng['emails']['quota_edit'],
|
||||
'title' => \Froxlor\I18N\Lang::getAll()['emails']['quota_edit'],
|
||||
'image' => 'icons/email_edit.png',
|
||||
'fields' => array(
|
||||
'email_full' => array(
|
||||
'label' => $lng['emails']['emailaddress'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['emails']['emailaddress'],
|
||||
'type' => 'label',
|
||||
'value' => $result['email_full']
|
||||
),
|
||||
'email_quota' => array(
|
||||
'label' => $lng['emails']['quota'] . ' (MiB)',
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['emails']['quota'] . ' (MiB)',
|
||||
'type' => 'text',
|
||||
'value' => $result['quota']
|
||||
)
|
||||
|
||||
@@ -16,15 +16,15 @@
|
||||
*/
|
||||
return array(
|
||||
'emails_add' => array(
|
||||
'title' => $lng['emails']['emails_add'],
|
||||
'title' => \Froxlor\I18N\Lang::getAll()['emails']['emails_add'],
|
||||
'image' => 'icons/email_add.png',
|
||||
'sections' => array(
|
||||
'section_a' => array(
|
||||
'title' => $lng['emails']['emails_add'],
|
||||
'title' => \Froxlor\I18N\Lang::getAll()['emails']['emails_add'],
|
||||
'image' => 'icons/email_add.png',
|
||||
'fields' => array(
|
||||
'email_part' => array(
|
||||
'label' => $lng['emails']['emailaddress'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['emails']['emailaddress'],
|
||||
'type' => 'textul',
|
||||
'ul_field' => '',
|
||||
'has_nextto' => true
|
||||
@@ -36,11 +36,11 @@ return array(
|
||||
'select_var' => $domains
|
||||
),
|
||||
'iscatchall' => array(
|
||||
'label' => $lng['emails']['iscatchall'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['emails']['iscatchall'],
|
||||
'type' => 'checkbox',
|
||||
'values' => array(
|
||||
array(
|
||||
'label' => $lng['panel']['yes'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
|
||||
'value' => '1'
|
||||
)
|
||||
),
|
||||
|
||||
@@ -16,39 +16,39 @@
|
||||
*/
|
||||
return array(
|
||||
'emails_addaccount' => array(
|
||||
'title' => $lng['emails']['account_add'],
|
||||
'title' => \Froxlor\I18N\Lang::getAll()['emails']['account_add'],
|
||||
'image' => 'icons/email_add.png',
|
||||
'sections' => array(
|
||||
'section_a' => array(
|
||||
'title' => $lng['emails']['account_add'],
|
||||
'title' => \Froxlor\I18N\Lang::getAll()['emails']['account_add'],
|
||||
'image' => 'icons/email_add.png',
|
||||
'fields' => array(
|
||||
'email_full' => array(
|
||||
'label' => $lng['emails']['emailaddress'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['emails']['emailaddress'],
|
||||
'type' => 'label',
|
||||
'value' => $result['email_full']
|
||||
),
|
||||
'email_password' => array(
|
||||
'label' => $lng['login']['password'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['login']['password'],
|
||||
'type' => 'password',
|
||||
'autocomplete' => 'off'
|
||||
),
|
||||
'email_password_suggestion' => array(
|
||||
'label' => $lng['customer']['generated_pwd'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['emails']['quota'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['emails']['quota'],
|
||||
'desc' => "MiB",
|
||||
'type' => 'text',
|
||||
'value' => $quota
|
||||
),
|
||||
'alternative_email' => array(
|
||||
'visible' => (\Froxlor\Settings::Get('panel.sendalternativemail') == '1' ? true : false),
|
||||
'label' => $lng['emails']['alternative_emailaddress'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['emails']['alternative_emailaddress'],
|
||||
'type' => 'text'
|
||||
)
|
||||
)
|
||||
|
||||
@@ -16,20 +16,20 @@
|
||||
*/
|
||||
return array(
|
||||
'emails_addforwarder' => array(
|
||||
'title' => $lng['emails']['forwarder_add'],
|
||||
'title' => \Froxlor\I18N\Lang::getAll()['emails']['forwarder_add'],
|
||||
'image' => 'icons/autoresponder_add.png',
|
||||
'sections' => array(
|
||||
'section_a' => array(
|
||||
'title' => $lng['emails']['forwarder_add'],
|
||||
'title' => \Froxlor\I18N\Lang::getAll()['emails']['forwarder_add'],
|
||||
'image' => 'icons/autoresponder_add.png',
|
||||
'fields' => array(
|
||||
'email_full' => array(
|
||||
'label' => $lng['emails']['from'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['emails']['from'],
|
||||
'type' => 'label',
|
||||
'value' => $result['email_full']
|
||||
),
|
||||
'destination' => array(
|
||||
'label' => $lng['emails']['to'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['emails']['to'],
|
||||
'type' => 'text'
|
||||
)
|
||||
)
|
||||
|
||||
@@ -16,46 +16,46 @@
|
||||
*/
|
||||
return array(
|
||||
'emails_edit' => array(
|
||||
'title' => $lng['emails']['emails_edit'],
|
||||
'title' => \Froxlor\I18N\Lang::getAll()['emails']['emails_edit'],
|
||||
'image' => 'icons/email_edit.png',
|
||||
'sections' => array(
|
||||
'section_a' => array(
|
||||
'title' => $lng['emails']['emails_edit'],
|
||||
'title' => \Froxlor\I18N\Lang::getAll()['emails']['emails_edit'],
|
||||
'image' => 'icons/email_edit.png',
|
||||
'nobuttons' => true,
|
||||
'fields' => array(
|
||||
'email_full' => array(
|
||||
'label' => $lng['emails']['emailaddress'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['emails']['emailaddress'],
|
||||
'type' => 'label',
|
||||
'value' => $result['email_full']
|
||||
),
|
||||
'account_yes' => array(
|
||||
'visible' => ($result['popaccountid'] != 0 ? true : false),
|
||||
'label' => $lng['emails']['account'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['emails']['account'],
|
||||
'type' => 'label',
|
||||
'value' => $lng['panel']['yes'] . ' [<a href="' . $filename . '?page=accounts&action=changepw&id=' . $result['id'] . '&s=' . $s . '">' . $lng['menue']['main']['changepassword'] . '</a>] [<a href="' . $filename . '?page=accounts&action=delete&id=' . $result['id'] . '&s=' . $s . '">' . $lng['emails']['account_delete'] . '</a>]'
|
||||
'value' => \Froxlor\I18N\Lang::getAll()['panel']['yes'] . ' [<a href="' . $filename . '?page=accounts&action=changepw&id=' . $result['id'] . '&s=' . $s . '">' . \Froxlor\I18N\Lang::getAll()['menue']['main']['changepassword'] . '</a>] [<a href="' . $filename . '?page=accounts&action=delete&id=' . $result['id'] . '&s=' . $s . '">' . \Froxlor\I18N\Lang::getAll()['emails']['account_delete'] . '</a>]'
|
||||
),
|
||||
'account_no' => array(
|
||||
'visible' => ($result['popaccountid'] == 0 ? true : false),
|
||||
'label' => $lng['emails']['account'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['emails']['account'],
|
||||
'type' => 'label',
|
||||
'value' => $lng['panel']['no'] . ' [<a href="' . $filename . '?page=accounts&action=add&id=' . $result['id'] . '&s=' . $s . '">' . $lng['emails']['account_add'] . '</a>]'
|
||||
'value' => \Froxlor\I18N\Lang::getAll()['panel']['no'] . ' [<a href="' . $filename . '?page=accounts&action=add&id=' . $result['id'] . '&s=' . $s . '">' . \Froxlor\I18N\Lang::getAll()['emails']['account_add'] . '</a>]'
|
||||
),
|
||||
'mail_quota' => array(
|
||||
'visible' => ($result['popaccountid'] != 0 && \Froxlor\Settings::Get('system.mail_quota_enabled')),
|
||||
'label' => $lng['customer']['email_quota'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['customer']['email_quota'],
|
||||
'type' => 'label',
|
||||
'value' => $result['quota'] . ' MiB [<a href="' . $filename . '?page=accounts&action=changequota&id=' . $result['id'] . '&s=' . $s . '">' . $lng['emails']['quota_edit'] . '</a>]'
|
||||
'value' => $result['quota'] . ' MiB [<a href="' . $filename . '?page=accounts&action=changequota&id=' . $result['id'] . '&s=' . $s . '">' . \Froxlor\I18N\Lang::getAll()['emails']['quota_edit'] . '</a>]'
|
||||
),
|
||||
'mail_catchall' => array(
|
||||
'label' => $lng['emails']['catchall'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['emails']['catchall'],
|
||||
'type' => 'label',
|
||||
'value' => ($result['iscatchall'] == 0 ? $lng['panel']['no'] : $lng['panel']['yes']) . ' [<a href="' . $filename . '?page=' . $page . '&action=togglecatchall&id=' . $result['id'] . '&s=' . $s . '">' . $lng['panel']['toggle'] . '</a>]'
|
||||
'value' => ($result['iscatchall'] == 0 ? \Froxlor\I18N\Lang::getAll()['panel']['no'] : \Froxlor\I18N\Lang::getAll()['panel']['yes']) . ' [<a href="' . $filename . '?page=' . $page . '&action=togglecatchall&id=' . $result['id'] . '&s=' . $s . '">' . \Froxlor\I18N\Lang::getAll()['panel']['toggle'] . '</a>]'
|
||||
),
|
||||
'mail_fwds' => array(
|
||||
'label' => $lng['emails']['forwarders'] . ' (' . $forwarders_count . ')',
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['emails']['forwarders'] . ' (' . $forwarders_count . ')',
|
||||
'type' => 'label',
|
||||
'value' => $forwarders . ' <a href="' . $filename . '?page=forwarders&action=add&id=' . $result['id'] . '&s=' . $s . '">' . $lng['emails']['forwarder_add'] . '</a>'
|
||||
'value' => $forwarders . ' <a href="' . $filename . '?page=forwarders&action=add&id=' . $result['id'] . '&s=' . $s . '">' . \Froxlor\I18N\Lang::getAll()['emails']['forwarder_add'] . '</a>'
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
@@ -16,31 +16,31 @@
|
||||
*/
|
||||
return array(
|
||||
'backup' => array(
|
||||
'title' => $lng['extras']['backup'],
|
||||
'title' => \Froxlor\I18N\Lang::getAll()['extras']['backup'],
|
||||
'image' => 'icons/backup_big.png',
|
||||
'sections' => array(
|
||||
'section_a' => array(
|
||||
'title' => $lng['extras']['backup'],
|
||||
'title' => \Froxlor\I18N\Lang::getAll()['extras']['backup'],
|
||||
'image' => 'icons/backup_big.png',
|
||||
'fields' => array(
|
||||
'path' => array(
|
||||
'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'] : ''),
|
||||
'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'] : ''),
|
||||
'type' => $pathSelect['type'],
|
||||
'select_var' => $pathSelect['value'],
|
||||
'value' => $pathSelect['value']
|
||||
),
|
||||
'path_protection_info' => array(
|
||||
'label' => $lng['extras']['path_protection_label'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['extras']['path_protection_label'],
|
||||
'type' => 'label',
|
||||
'value' => $lng['extras']['path_protection_info']
|
||||
'value' => \Froxlor\I18N\Lang::getAll()['extras']['path_protection_info']
|
||||
),
|
||||
'backup_web' => array(
|
||||
'label' => $lng['extras']['backup_web'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['extras']['backup_web'],
|
||||
'type' => 'checkbox',
|
||||
'values' => array(
|
||||
array(
|
||||
'label' => $lng['panel']['yes'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
|
||||
'value' => '1'
|
||||
)
|
||||
),
|
||||
@@ -49,11 +49,11 @@ return array(
|
||||
)
|
||||
),
|
||||
'backup_mail' => array(
|
||||
'label' => $lng['extras']['backup_mail'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['extras']['backup_mail'],
|
||||
'type' => 'checkbox',
|
||||
'values' => array(
|
||||
array(
|
||||
'label' => $lng['panel']['yes'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
|
||||
'value' => '1'
|
||||
)
|
||||
),
|
||||
@@ -62,11 +62,11 @@ return array(
|
||||
)
|
||||
),
|
||||
'backup_dbs' => array(
|
||||
'label' => $lng['extras']['backup_dbs'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['extras']['backup_dbs'],
|
||||
'type' => 'checkbox',
|
||||
'values' => array(
|
||||
array(
|
||||
'label' => $lng['panel']['yes'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
|
||||
'value' => '1'
|
||||
)
|
||||
),
|
||||
|
||||
@@ -16,55 +16,55 @@
|
||||
*/
|
||||
return array(
|
||||
'htaccess_add' => array(
|
||||
'title' => $lng['extras']['pathoptions_add'],
|
||||
'title' => \Froxlor\I18N\Lang::getAll()['extras']['pathoptions_add'],
|
||||
'image' => 'icons/htpasswd_add.png',
|
||||
'sections' => array(
|
||||
'section_a' => array(
|
||||
'title' => $lng['extras']['pathoptions_add'],
|
||||
'title' => \Froxlor\I18N\Lang::getAll()['extras']['pathoptions_add'],
|
||||
'image' => 'icons/htpasswd_add.png',
|
||||
'fields' => array(
|
||||
'path' => array(
|
||||
'label' => $lng['panel']['path'],
|
||||
'desc' => (\Froxlor\Settings::Get('panel.pathedit') != 'Dropdown' ? $lng['panel']['pathDescription'] : null) . (isset($pathSelect['note']) ? '<br />' . $pathSelect['value'] : ''),
|
||||
'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'] : ''),
|
||||
'type' => $pathSelect['type'],
|
||||
'select_var' => $pathSelect['value'],
|
||||
'value' => $pathSelect['value']
|
||||
),
|
||||
'options_indexes' => array(
|
||||
'label' => $lng['extras']['directory_browsing'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['extras']['directory_browsing'],
|
||||
'type' => 'checkbox',
|
||||
'values' => array(
|
||||
array(
|
||||
'label' => $lng['panel']['yes'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
|
||||
'value' => '1'
|
||||
)
|
||||
),
|
||||
'value' => array()
|
||||
),
|
||||
'error404path' => array(
|
||||
'label' => $lng['extras']['errordocument404path'],
|
||||
'desc' => $lng['panel']['descriptionerrordocument'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['extras']['errordocument404path'],
|
||||
'desc' => \Froxlor\I18N\Lang::getAll()['panel']['descriptionerrordocument'],
|
||||
'type' => 'text'
|
||||
),
|
||||
'error403path' => array(
|
||||
'visible' => (\Froxlor\Settings::Get('system.webserver') == 'apache2'),
|
||||
'label' => $lng['extras']['errordocument403path'],
|
||||
'desc' => $lng['panel']['descriptionerrordocument'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['extras']['errordocument403path'],
|
||||
'desc' => \Froxlor\I18N\Lang::getAll()['panel']['descriptionerrordocument'],
|
||||
'type' => 'text'
|
||||
),
|
||||
'error500path' => array(
|
||||
'visible' => (\Froxlor\Settings::Get('system.webserver') == 'apache2'),
|
||||
'label' => $lng['extras']['errordocument500path'],
|
||||
'desc' => $lng['panel']['descriptionerrordocument'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['extras']['errordocument500path'],
|
||||
'desc' => \Froxlor\I18N\Lang::getAll()['panel']['descriptionerrordocument'],
|
||||
'type' => 'text'
|
||||
),
|
||||
'options_cgi' => array(
|
||||
'visible' => ($cperlenabled == 1),
|
||||
'label' => $lng['extras']['execute_perl'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['extras']['execute_perl'],
|
||||
'type' => 'checkbox',
|
||||
'values' => array(
|
||||
array(
|
||||
'label' => $lng['panel']['yes'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
|
||||
'value' => '1'
|
||||
)
|
||||
),
|
||||
|
||||
@@ -16,24 +16,24 @@
|
||||
*/
|
||||
return array(
|
||||
'htaccess_edit' => array(
|
||||
'title' => $lng['extras']['pathoptions_edit'],
|
||||
'title' => \Froxlor\I18N\Lang::getAll()['extras']['pathoptions_edit'],
|
||||
'image' => 'icons/htpasswd_edit.png',
|
||||
'sections' => array(
|
||||
'section_a' => array(
|
||||
'title' => $lng['extras']['pathoptions_edit'],
|
||||
'title' => \Froxlor\I18N\Lang::getAll()['extras']['pathoptions_edit'],
|
||||
'image' => 'icons/htpasswd_edit.png',
|
||||
'fields' => array(
|
||||
'path' => array(
|
||||
'label' => $lng['panel']['path'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['panel']['path'],
|
||||
'type' => 'label',
|
||||
'value' => $result['path']
|
||||
),
|
||||
'options_indexes' => array(
|
||||
'label' => $lng['extras']['directory_browsing'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['extras']['directory_browsing'],
|
||||
'type' => 'checkbox',
|
||||
'values' => array(
|
||||
array(
|
||||
'label' => $lng['panel']['yes'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
|
||||
'value' => '1'
|
||||
)
|
||||
),
|
||||
@@ -42,32 +42,32 @@ return array(
|
||||
)
|
||||
),
|
||||
'error404path' => array(
|
||||
'label' => $lng['extras']['errordocument404path'],
|
||||
'desc' => $lng['panel']['descriptionerrordocument'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['extras']['errordocument404path'],
|
||||
'desc' => \Froxlor\I18N\Lang::getAll()['panel']['descriptionerrordocument'],
|
||||
'type' => 'text',
|
||||
'value' => $result['error404path']
|
||||
),
|
||||
'error403path' => array(
|
||||
'visible' => (\Froxlor\Settings::Get('system.webserver') == 'apache2'),
|
||||
'label' => $lng['extras']['errordocument403path'],
|
||||
'desc' => $lng['panel']['descriptionerrordocument'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['extras']['errordocument403path'],
|
||||
'desc' => \Froxlor\I18N\Lang::getAll()['panel']['descriptionerrordocument'],
|
||||
'type' => 'text',
|
||||
'value' => $result['error403path']
|
||||
),
|
||||
'error500path' => array(
|
||||
'visible' => (\Froxlor\Settings::Get('system.webserver') == 'apache2'),
|
||||
'label' => $lng['extras']['errordocument500path'],
|
||||
'desc' => $lng['panel']['descriptionerrordocument'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['extras']['errordocument500path'],
|
||||
'desc' => \Froxlor\I18N\Lang::getAll()['panel']['descriptionerrordocument'],
|
||||
'type' => 'text',
|
||||
'value' => $result['error500path']
|
||||
),
|
||||
'options_cgi' => array(
|
||||
'visible' => ($cperlenabled == 1),
|
||||
'label' => $lng['extras']['execute_perl'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['extras']['execute_perl'],
|
||||
'type' => 'checkbox',
|
||||
'values' => array(
|
||||
array(
|
||||
'label' => $lng['panel']['yes'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
|
||||
'value' => '1'
|
||||
)
|
||||
),
|
||||
|
||||
@@ -16,37 +16,37 @@
|
||||
*/
|
||||
return array(
|
||||
'htpasswd_add' => array(
|
||||
'title' => $lng['extras']['directoryprotection_add'],
|
||||
'title' => \Froxlor\I18N\Lang::getAll()['extras']['directoryprotection_add'],
|
||||
'image' => 'icons/htpasswd_add.png',
|
||||
'sections' => array(
|
||||
'section_a' => array(
|
||||
'title' => $lng['extras']['directoryprotection_add'],
|
||||
'title' => \Froxlor\I18N\Lang::getAll()['extras']['directoryprotection_add'],
|
||||
'image' => 'icons/htpasswd_add.png',
|
||||
'fields' => array(
|
||||
'path' => array(
|
||||
'label' => $lng['panel']['path'],
|
||||
'desc' => (\Froxlor\Settings::Get('panel.pathedit') != 'Dropdown' ? $lng['panel']['pathDescription'] : null) . (isset($pathSelect['note']) ? '<br />' . $pathSelect['value'] : ''),
|
||||
'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'] : ''),
|
||||
'type' => $pathSelect['type'],
|
||||
'select_var' => $pathSelect['value'],
|
||||
'value' => $pathSelect['value']
|
||||
),
|
||||
'username' => array(
|
||||
'label' => $lng['login']['username'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['login']['username'],
|
||||
'type' => 'text'
|
||||
),
|
||||
'directory_password' => array(
|
||||
'label' => $lng['login']['password'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['login']['password'],
|
||||
'type' => 'password',
|
||||
'autocomplete' => 'off'
|
||||
),
|
||||
'directory_password_suggestion' => array(
|
||||
'label' => $lng['customer']['generated_pwd'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['customer']['generated_pwd'],
|
||||
'type' => 'text',
|
||||
'visible' => (\Froxlor\Settings::Get('panel.password_regex') == ''),
|
||||
'value' => \Froxlor\System\Crypt::generatePassword()
|
||||
),
|
||||
'directory_authname' => array(
|
||||
'label' => $lng['extras']['htpasswdauthname'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['extras']['htpasswdauthname'],
|
||||
'type' => 'text'
|
||||
)
|
||||
)
|
||||
|
||||
@@ -16,36 +16,36 @@
|
||||
*/
|
||||
return array(
|
||||
'htpasswd_edit' => array(
|
||||
'title' => $lng['extras']['directoryprotection_edit'],
|
||||
'title' => \Froxlor\I18N\Lang::getAll()['extras']['directoryprotection_edit'],
|
||||
'image' => 'icons/htpasswd_edit.png',
|
||||
'sections' => array(
|
||||
'section_a' => array(
|
||||
'title' => $lng['extras']['directoryprotection_edit'],
|
||||
'title' => \Froxlor\I18N\Lang::getAll()['extras']['directoryprotection_edit'],
|
||||
'image' => 'icons/htpasswd_edit.png',
|
||||
'fields' => array(
|
||||
'path' => array(
|
||||
'label' => $lng['panel']['path'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['panel']['path'],
|
||||
'type' => 'label',
|
||||
'value' => $result['path']
|
||||
),
|
||||
'username' => array(
|
||||
'label' => $lng['login']['username'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['login']['username'],
|
||||
'type' => 'label',
|
||||
'value' => $result['username']
|
||||
),
|
||||
'directory_password' => array(
|
||||
'label' => $lng['login']['password'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['login']['password'],
|
||||
'type' => 'password',
|
||||
'autocomplete' => 'off'
|
||||
),
|
||||
'directory_password_suggestion' => array(
|
||||
'label' => $lng['customer']['generated_pwd'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['customer']['generated_pwd'],
|
||||
'type' => 'text',
|
||||
'visible' => (\Froxlor\Settings::Get('panel.password_regex') == ''),
|
||||
'value' => \Froxlor\System\Crypt::generatePassword()
|
||||
),
|
||||
'directory_authname' => array(
|
||||
'label' => $lng['extras']['htpasswdauthname'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['extras']['htpasswdauthname'],
|
||||
'type' => 'text',
|
||||
'value' => $result['authname']
|
||||
)
|
||||
|
||||
@@ -15,52 +15,52 @@
|
||||
*/
|
||||
return array(
|
||||
'ftp_add' => array(
|
||||
'title' => $lng['ftp']['account_add'],
|
||||
'title' => \Froxlor\I18N\Lang::getAll()['ftp']['account_add'],
|
||||
'image' => 'icons/user_add.png',
|
||||
'sections' => array(
|
||||
'section_a' => array(
|
||||
'title' => $lng['ftp']['account_add'],
|
||||
'title' => \Froxlor\I18N\Lang::getAll()['ftp']['account_add'],
|
||||
'image' => 'icons/user_add.png',
|
||||
'fields' => array(
|
||||
'ftp_username' => array(
|
||||
'visible' => (\Froxlor\Settings::Get('customer.ftpatdomain') == '1' ? true : false),
|
||||
'label' => $lng['login']['username'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['login']['username'],
|
||||
'type' => 'text'
|
||||
),
|
||||
'ftp_domain' => array(
|
||||
'visible' => (\Froxlor\Settings::Get('customer.ftpatdomain') == '1' ? true : false),
|
||||
'label' => $lng['domains']['domainname'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['domains']['domainname'],
|
||||
'type' => 'select',
|
||||
'select_var' => (isset($domains) ? $domains : "")
|
||||
),
|
||||
'ftp_description' => array(
|
||||
'label' => $lng['panel']['ftpdesc'] = 'FTP description',
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['panel']['ftpdesc'] = 'FTP description',
|
||||
'type' => 'text'
|
||||
),
|
||||
'path' => array(
|
||||
'label' => $lng['panel']['path'],
|
||||
'desc' => (\Froxlor\Settings::Get('panel.pathedit') != 'Dropdown' ? $lng['panel']['pathDescription'] : null) . (isset($pathSelect['note']) ? '<br />' . $pathSelect['value'] : ''),
|
||||
'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'] : ''),
|
||||
'type' => $pathSelect['type'],
|
||||
'select_var' => $pathSelect['value'],
|
||||
'value' => $pathSelect['value']
|
||||
),
|
||||
'ftp_password' => array(
|
||||
'label' => $lng['login']['password'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['login']['password'],
|
||||
'type' => 'password',
|
||||
'autocomplete' => 'off'
|
||||
),
|
||||
'ftp_password_suggestion' => array(
|
||||
'label' => $lng['customer']['generated_pwd'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['customer']['generated_pwd'],
|
||||
'type' => 'text',
|
||||
'visible' => (\Froxlor\Settings::Get('panel.password_regex') == ''),
|
||||
'value' => \Froxlor\System\Crypt::generatePassword()
|
||||
),
|
||||
'sendinfomail' => array(
|
||||
'label' => $lng['customer']['sendinfomail'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['customer']['sendinfomail'],
|
||||
'type' => 'checkbox',
|
||||
'values' => array(
|
||||
array(
|
||||
'label' => $lng['panel']['yes'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
|
||||
'value' => '1'
|
||||
)
|
||||
),
|
||||
@@ -68,7 +68,7 @@ return array(
|
||||
),
|
||||
'shell' => array(
|
||||
'visible' => (\Froxlor\Settings::Get('system.allow_customer_shell') == '1' ? true : false),
|
||||
'label' => $lng['panel']['shell'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['panel']['shell'],
|
||||
'type' => 'select',
|
||||
'select_var' => (isset($shells) ? $shells : "")
|
||||
)
|
||||
|
||||
@@ -15,45 +15,45 @@
|
||||
*/
|
||||
return array(
|
||||
'ftp_edit' => array(
|
||||
'title' => $lng['ftp']['account_edit'],
|
||||
'title' => \Froxlor\I18N\Lang::getAll()['ftp']['account_edit'],
|
||||
'image' => 'icons/user_edit.png',
|
||||
'sections' => array(
|
||||
'section_a' => array(
|
||||
'title' => $lng['ftp']['account_edit'],
|
||||
'title' => \Froxlor\I18N\Lang::getAll()['ftp']['account_edit'],
|
||||
'image' => 'icons/user_edit.png',
|
||||
'fields' => array(
|
||||
'username' => array(
|
||||
'label' => $lng['login']['username'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['login']['username'],
|
||||
'type' => 'label',
|
||||
'value' => $result['username']
|
||||
),
|
||||
'ftp_description' => array(
|
||||
'label' => $lng['panel']['ftpdesc'] = 'FTP description',
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['panel']['ftpdesc'] = 'FTP description',
|
||||
'type' => 'text',
|
||||
'value' => $result['description']
|
||||
),
|
||||
'path' => array(
|
||||
'label' => $lng['panel']['path'],
|
||||
'desc' => (\Froxlor\Settings::Get('panel.pathedit') != 'Dropdown' ? $lng['panel']['pathDescription'] : null) . (isset($pathSelect['note']) ? '<br />' . $pathSelect['value'] : ''),
|
||||
'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'] : ''),
|
||||
'type' => $pathSelect['type'],
|
||||
'select_var' => $pathSelect['value'],
|
||||
'value' => $pathSelect['value']
|
||||
),
|
||||
'ftp_password' => array(
|
||||
'label' => $lng['login']['password'],
|
||||
'desc' => $lng['ftp']['editpassdescription'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['login']['password'],
|
||||
'desc' => \Froxlor\I18N\Lang::getAll()['ftp']['editpassdescription'],
|
||||
'type' => 'password',
|
||||
'autocomplete' => 'off'
|
||||
),
|
||||
'ftp_password_suggestion' => array(
|
||||
'label' => $lng['customer']['generated_pwd'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['panel']['shell'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['panel']['shell'],
|
||||
'type' => 'select',
|
||||
'select_var' => (isset($shells) ? $shells : "")
|
||||
)
|
||||
|
||||
@@ -15,40 +15,40 @@
|
||||
*/
|
||||
return array(
|
||||
'mysql_add' => array(
|
||||
'title' => $lng['mysql']['database_create'],
|
||||
'title' => \Froxlor\I18N\Lang::getAll()['mysql']['database_create'],
|
||||
'image' => 'icons/mysql_add.png',
|
||||
'sections' => array(
|
||||
'section_a' => array(
|
||||
'title' => $lng['mysql']['database_create'],
|
||||
'title' => \Froxlor\I18N\Lang::getAll()['mysql']['database_create'],
|
||||
'image' => 'icons/mysql_add.png',
|
||||
'fields' => array(
|
||||
'description' => array(
|
||||
'label' => $lng['mysql']['databasedescription'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['mysql']['databasedescription'],
|
||||
'type' => 'text'
|
||||
),
|
||||
'mysql_server' => array(
|
||||
'visible' => (1 < $count_mysqlservers ? true : false),
|
||||
'label' => $lng['mysql']['mysql_server'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['mysql']['mysql_server'],
|
||||
'type' => 'select',
|
||||
'select_var' => $mysql_servers
|
||||
),
|
||||
'mysql_password' => array(
|
||||
'label' => $lng['login']['password'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['login']['password'],
|
||||
'type' => 'password',
|
||||
'autocomplete' => 'off'
|
||||
),
|
||||
'mysql_password_suggestion' => array(
|
||||
'label' => $lng['customer']['generated_pwd'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['customer']['generated_pwd'],
|
||||
'type' => 'text',
|
||||
'visible' => (\Froxlor\Settings::Get('panel.password_regex') == ''),
|
||||
'value' => \Froxlor\System\Crypt::generatePassword()
|
||||
),
|
||||
'sendinfomail' => array(
|
||||
'label' => $lng['customer']['sendinfomail'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['customer']['sendinfomail'],
|
||||
'type' => 'checkbox',
|
||||
'values' => array(
|
||||
array(
|
||||
'label' => $lng['panel']['yes'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
|
||||
'value' => '1'
|
||||
)
|
||||
),
|
||||
|
||||
@@ -15,36 +15,36 @@
|
||||
*/
|
||||
return array(
|
||||
'mysql_edit' => array(
|
||||
'title' => $lng['mysql']['database_edit'],
|
||||
'title' => \Froxlor\I18N\Lang::getAll()['mysql']['database_edit'],
|
||||
'image' => 'icons/mysql_edit.png',
|
||||
'sections' => array(
|
||||
'section_a' => array(
|
||||
'title' => $lng['mysql']['database_edit'],
|
||||
'title' => \Froxlor\I18N\Lang::getAll()['mysql']['database_edit'],
|
||||
'image' => 'icons/mysql_edit.png',
|
||||
'fields' => array(
|
||||
'databasename' => array(
|
||||
'label' => $lng['mysql']['databasename'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['mysql']['databasename'],
|
||||
'type' => 'label',
|
||||
'value' => $result['databasename']
|
||||
),
|
||||
'description' => array(
|
||||
'label' => $lng['mysql']['databasedescription'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['mysql']['databasedescription'],
|
||||
'type' => 'text',
|
||||
'value' => $result['description']
|
||||
),
|
||||
'mysql_server' => array(
|
||||
'visible' => (1 < $count_mysqlservers ? true : false),
|
||||
'label' => $lng['mysql']['mysql_server'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['mysql']['mysql_server'],
|
||||
'type' => 'label',
|
||||
'value' => $sql_root['caption']
|
||||
),
|
||||
'mysql_password' => array(
|
||||
'label' => $lng['changepassword']['new_password_ifnotempty'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['changepassword']['new_password_ifnotempty'],
|
||||
'type' => 'password',
|
||||
'autocomplete' => 'off'
|
||||
),
|
||||
'mysql_password_suggestion' => array(
|
||||
'label' => $lng['customer']['generated_pwd'],
|
||||
'label' => \Froxlor\I18N\Lang::getAll()['customer']['generated_pwd'],
|
||||
'type' => 'text',
|
||||
'visible' => (\Froxlor\Settings::Get('panel.password_regex') == ''),
|
||||
'value' => \Froxlor\System\Crypt::generatePassword()
|
||||
|
||||
Reference in New Issue
Block a user