* $data = array(
- * 'label' => $lng['customer']['email_imap'],
+ * 'label' => \Froxlor\I18N\Lang::getAll()['customer']['email_imap'],
* 'type' => 'checkbox',
* 'values' => array(
* array( 'label' => 'active',
diff --git a/lib/Froxlor/UI/Paging.php b/lib/Froxlor/UI/Paging.php
index 9d7c2589..31fca29d 100644
--- a/lib/Froxlor/UI/Paging.php
+++ b/lib/Froxlor/UI/Paging.php
@@ -405,8 +405,8 @@ class Paging
$breakorws = ($break ? '
' : ' ');
foreach (array(
- 'asc' => $lng['panel']['ascending'],
- 'desc' => $lng['panel']['descending']
+ 'asc' => \Froxlor\I18N\Lang::getAll()['panel']['ascending'],
+ 'desc' => \Froxlor\I18N\Lang::getAll()['panel']['descending']
) as $sortordertype => $sortorderdescription) {
$orderoptions .= HTML::makeoption($sortorderdescription, $sortordertype, $this->sortorder, true, true);
}
diff --git a/lib/Froxlor/UI/Response.php b/lib/Froxlor/UI/Response.php
index de13b19c..808522e9 100644
--- a/lib/Froxlor/UI/Response.php
+++ b/lib/Froxlor/UI/Response.php
@@ -94,13 +94,13 @@ class Response
$link = '';
if (isset($_SERVER['HTTP_REFERER']) && strpos($_SERVER['HTTP_REFERER'], $_SERVER['HTTP_HOST']) !== false) {
- $link = '' . $lng['panel']['back'] . '';
+ $link = '' . \Froxlor\I18N\Lang::getAll()['panel']['back'] . '';
}
$error = '';
foreach ($errors as $single_error) {
- if (isset($lng['error'][$single_error])) {
- $single_error = $lng['error'][$single_error];
+ if (isset(\Froxlor\I18N\Lang::getAll()['error'][$single_error])) {
+ $single_error = \Froxlor\I18N\Lang::getAll()['error'][$single_error];
$single_error = strtr($single_error, array(
'%s' => $replacer
));
@@ -129,7 +129,7 @@ class Response
$_SESSION['requestData'] = $_POST;
$link = '';
if (isset($_SERVER['HTTP_REFERER']) && strpos($_SERVER['HTTP_REFERER'], $_SERVER['HTTP_HOST']) !== false) {
- $link = '' . $lng['panel']['back'] . '';
+ $link = '' . \Froxlor\I18N\Lang::getAll()['panel']['back'] . '';
}
$error = $message;
eval("echo \"" . Template::getTemplate('misc/error', '1') . "\";");
@@ -152,8 +152,8 @@ class Response
{
global $s, $header, $footer, $theme;
- if (isset($lng['success'][$success_message])) {
- $success_message = strtr($lng['success'][$success_message], array(
+ if (isset(\Froxlor\I18N\Lang::getAll()['success'][$success_message])) {
+ $success_message = strtr(\Froxlor\I18N\Lang::getAll()['success'][$success_message], array(
'%s' => htmlentities($replacer)
));
}
diff --git a/lib/formfields/admin/admin/formfield.admin_add.php b/lib/formfields/admin/admin/formfield.admin_add.php
index d2ac4b67..51a7c30a 100644
--- a/lib/formfields/admin/admin/formfield.admin_add.php
+++ b/lib/formfields/admin/admin/formfield.admin_add.php
@@ -16,65 +16,65 @@
*/
return array(
'admin_add' => array(
- 'title' => $lng['admin']['admin_add'],
+ 'title' => \Froxlor\I18N\Lang::getAll()['admin']['admin_add'],
'image' => 'icons/user_add.png',
'sections' => array(
'section_a' => array(
- 'title' => $lng['admin']['accountdata'],
+ 'title' => \Froxlor\I18N\Lang::getAll()['admin']['accountdata'],
'image' => 'icons/user_add.png',
'fields' => array(
'new_loginname' => array(
- 'label' => $lng['login']['username'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['login']['username'],
'type' => 'text',
'mandatory' => true
),
'admin_password' => array(
- 'label' => $lng['login']['password'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['login']['password'],
'type' => 'password',
'mandatory' => true,
'autocomplete' => 'off'
),
'admin_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()
),
'def_language' => array(
- 'label' => $lng['login']['language'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['login']['language'],
'type' => 'select',
'select_var' => $language_options
)
)
),
'section_b' => array(
- 'title' => $lng['admin']['contactdata'],
+ 'title' => \Froxlor\I18N\Lang::getAll()['admin']['contactdata'],
'image' => 'icons/user_add.png',
'fields' => array(
'name' => array(
- 'label' => $lng['customer']['name'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['customer']['name'],
'type' => 'text',
'mandatory' => true
),
'email' => array(
- 'label' => $lng['customer']['email'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['customer']['email'],
'type' => 'text',
'mandatory' => true
),
'custom_notes' => array(
'style' => 'align-top',
- 'label' => $lng['usersettings']['custom_notes']['title'],
- 'desc' => $lng['usersettings']['custom_notes']['description'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['usersettings']['custom_notes']['title'],
+ 'desc' => \Froxlor\I18N\Lang::getAll()['usersettings']['custom_notes']['description'],
'type' => 'textarea',
'cols' => 60,
'rows' => 12
),
'custom_notes_show' => array(
- 'label' => $lng['usersettings']['custom_notes']['show'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['usersettings']['custom_notes']['show'],
'type' => 'checkbox',
'values' => array(
array(
- 'label' => $lng['panel']['yes'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
'value' => '1'
)
),
@@ -83,27 +83,27 @@ return array(
)
),
'section_c' => array(
- 'title' => $lng['admin']['servicedata'],
+ 'title' => \Froxlor\I18N\Lang::getAll()['admin']['servicedata'],
'image' => 'icons/user_add.png',
'fields' => array(
'ipaddress' => array(
- 'label' => $lng['serversettings']['ipaddress']['title'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['ipaddress']['title'],
'type' => 'select',
'select_var' => $ipaddress
),
'change_serversettings' => array(
- 'label' => $lng['admin']['change_serversettings'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['change_serversettings'],
'type' => 'checkbox',
'values' => array(
array(
- 'label' => $lng['panel']['yes'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
'value' => '1'
)
),
'value' => array()
),
'customers' => array(
- 'label' => $lng['admin']['customers'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['customers'],
'type' => 'textul',
'value' => 0,
'maxlength' => 9,
@@ -111,18 +111,18 @@ return array(
'ul_field' => $customers_ul
),
'customers_see_all' => array(
- 'label' => $lng['admin']['customers_see_all'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['customers_see_all'],
'type' => 'checkbox',
'values' => array(
array(
- 'label' => $lng['panel']['yes'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
'value' => '1'
)
),
'value' => array()
),
'domains' => array(
- 'label' => $lng['admin']['domains'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['domains'],
'type' => 'textul',
'value' => 0,
'maxlength' => 9,
@@ -130,29 +130,29 @@ return array(
'ul_field' => $domains_ul
),
'domains_see_all' => array(
- 'label' => $lng['admin']['domains_see_all'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['domains_see_all'],
'type' => 'checkbox',
'values' => array(
array(
- 'label' => $lng['panel']['yes'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
'value' => '1'
)
),
'value' => array()
),
'caneditphpsettings' => array(
- 'label' => $lng['admin']['caneditphpsettings'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['caneditphpsettings'],
'type' => 'checkbox',
'values' => array(
array(
- 'label' => $lng['panel']['yes'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
'value' => '1'
)
),
'value' => array()
),
'diskspace' => array(
- 'label' => $lng['customer']['diskspace'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['customer']['diskspace'],
'type' => 'textul',
'value' => 0,
'maxlength' => 6,
@@ -160,7 +160,7 @@ return array(
'ul_field' => $diskspace_ul
),
'traffic' => array(
- 'label' => $lng['customer']['traffic'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['customer']['traffic'],
'type' => 'textul',
'value' => 0,
'maxlength' => 4,
@@ -168,7 +168,7 @@ return array(
'ul_field' => $traffic_ul
),
'subdomains' => array(
- 'label' => $lng['customer']['subdomains'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['customer']['subdomains'],
'type' => 'textul',
'value' => 0,
'maxlength' => 9,
@@ -176,7 +176,7 @@ return array(
'ul_field' => $subdomains_ul
),
'emails' => array(
- 'label' => $lng['customer']['emails'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['customer']['emails'],
'type' => 'textul',
'value' => 0,
'maxlength' => 9,
@@ -184,7 +184,7 @@ return array(
'ul_field' => $emails_ul
),
'email_accounts' => array(
- 'label' => $lng['customer']['accounts'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['customer']['accounts'],
'type' => 'textul',
'value' => 0,
'maxlength' => 9,
@@ -192,7 +192,7 @@ return array(
'ul_field' => $email_accounts_ul
),
'email_forwarders' => array(
- 'label' => $lng['customer']['forwarders'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['customer']['forwarders'],
'type' => 'textul',
'value' => 0,
'maxlength' => 9,
@@ -200,7 +200,7 @@ return array(
'ul_field' => $email_forwarders_ul
),
'email_quota' => array(
- 'label' => $lng['customer']['email_quota'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['customer']['email_quota'],
'type' => 'textul',
'value' => 0,
'maxlength' => 9,
@@ -209,14 +209,14 @@ return array(
'ul_field' => $email_quota_ul
),
'ftps' => array(
- 'label' => $lng['customer']['ftps'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['customer']['ftps'],
'type' => 'textul',
'value' => 0,
'maxlength' => 9,
'ul_field' => $ftps_ul
),
'mysqls' => array(
- 'label' => $lng['customer']['mysqls'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['customer']['mysqls'],
'type' => 'textul',
'value' => 0,
'maxlength' => 9,
diff --git a/lib/formfields/admin/admin/formfield.admin_edit.php b/lib/formfields/admin/admin/formfield.admin_edit.php
index e5301d3f..2e2f1ade 100644
--- a/lib/formfields/admin/admin/formfield.admin_edit.php
+++ b/lib/formfields/admin/admin/formfield.admin_edit.php
@@ -16,24 +16,24 @@
*/
return array(
'admin_edit' => array(
- 'title' => $lng['admin']['admin_edit'],
+ 'title' => \Froxlor\I18N\Lang::getAll()['admin']['admin_edit'],
'image' => 'icons/user_edit.png',
'sections' => array(
'section_a' => array(
- 'title' => $lng['admin']['accountdata'],
+ 'title' => \Froxlor\I18N\Lang::getAll()['admin']['accountdata'],
'image' => 'icons/user_edit.png',
'fields' => array(
'loginname' => array(
- 'label' => $lng['login']['username'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['login']['username'],
'type' => 'label',
'value' => $result['loginname']
),
'deactivated' => array(
- 'label' => $lng['admin']['deactivated_user'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['deactivated_user'],
'type' => 'checkbox',
'values' => array(
array(
- 'label' => $lng['panel']['yes'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
'value' => '1'
)
),
@@ -43,20 +43,20 @@ return array(
'visible' => ($result['adminid'] == \Froxlor\User::getAll()['userid'] ? false : true)
),
'admin_password' => array(
- 'label' => $lng['login']['password'] . ' (' . $lng['panel']['emptyfornochanges'] . ')',
+ 'label' => \Froxlor\I18N\Lang::getAll()['login']['password'] . ' (' . \Froxlor\I18N\Lang::getAll()['panel']['emptyfornochanges'] . ')',
'type' => 'password',
'autocomplete' => 'off',
'visible' => ($result['adminid'] == \Froxlor\User::getAll()['userid'] ? false : true)
),
'admin_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(),
'visible' => ($result['adminid'] == \Froxlor\User::getAll()['userid'] ? false : true)
),
'def_language' => array(
- 'label' => $lng['login']['language'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['login']['language'],
'type' => 'select',
'select_var' => $language_options,
'visible' => ($result['adminid'] == \Froxlor\User::getAll()['userid'] ? false : true)
@@ -64,36 +64,36 @@ return array(
)
),
'section_b' => array(
- 'title' => $lng['admin']['contactdata'],
+ 'title' => \Froxlor\I18N\Lang::getAll()['admin']['contactdata'],
'image' => 'icons/user_edit.png',
'fields' => array(
'name' => array(
- 'label' => $lng['customer']['name'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['customer']['name'],
'type' => 'text',
'mandatory' => true,
'value' => $result['name']
),
'email' => array(
- 'label' => $lng['customer']['email'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['customer']['email'],
'type' => 'text',
'mandatory' => true,
'value' => $result['email']
),
'custom_notes' => array(
'style' => 'align-top',
- 'label' => $lng['usersettings']['custom_notes']['title'],
- 'desc' => $lng['usersettings']['custom_notes']['description'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['usersettings']['custom_notes']['title'],
+ 'desc' => \Froxlor\I18N\Lang::getAll()['usersettings']['custom_notes']['description'],
'type' => 'textarea',
'cols' => 60,
'rows' => 12,
'value' => $result['custom_notes']
),
'custom_notes_show' => array(
- 'label' => $lng['usersettings']['custom_notes']['show'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['usersettings']['custom_notes']['show'],
'type' => 'checkbox',
'values' => array(
array(
- 'label' => $lng['panel']['yes'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
'value' => '1'
)
),
@@ -104,21 +104,21 @@ return array(
)
),
'section_c' => array(
- 'title' => $lng['admin']['servicedata'],
+ 'title' => \Froxlor\I18N\Lang::getAll()['admin']['servicedata'],
'image' => 'icons/user_add.png',
'visible' => ($result['adminid'] != \Froxlor\User::getAll()['userid'] ? true : false),
'fields' => array(
'ipaddress' => array(
- 'label' => $lng['serversettings']['ipaddress']['title'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['ipaddress']['title'],
'type' => 'select',
'select_var' => $ipaddress
),
'change_serversettings' => array(
- 'label' => $lng['admin']['change_serversettings'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['change_serversettings'],
'type' => 'checkbox',
'values' => array(
array(
- 'label' => $lng['panel']['yes'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
'value' => '1'
)
),
@@ -127,7 +127,7 @@ return array(
)
),
'customers' => array(
- 'label' => $lng['admin']['customers'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['customers'],
'type' => 'textul',
'value' => $result['customers'],
'maxlength' => 9,
@@ -135,11 +135,11 @@ return array(
'ul_field' => $customers_ul
),
'customers_see_all' => array(
- 'label' => $lng['admin']['customers_see_all'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['customers_see_all'],
'type' => 'checkbox',
'values' => array(
array(
- 'label' => $lng['panel']['yes'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
'value' => '1'
)
),
@@ -148,7 +148,7 @@ return array(
)
),
'domains' => array(
- 'label' => $lng['admin']['domains'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['domains'],
'type' => 'textul',
'value' => $result['domains'],
'maxlength' => 9,
@@ -156,11 +156,11 @@ return array(
'ul_field' => $domains_ul
),
'domains_see_all' => array(
- 'label' => $lng['admin']['domains_see_all'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['domains_see_all'],
'type' => 'checkbox',
'values' => array(
array(
- 'label' => $lng['panel']['yes'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
'value' => '1'
)
),
@@ -169,11 +169,11 @@ return array(
)
),
'caneditphpsettings' => array(
- 'label' => $lng['admin']['caneditphpsettings'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['caneditphpsettings'],
'type' => 'checkbox',
'values' => array(
array(
- 'label' => $lng['panel']['yes'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
'value' => '1'
)
),
@@ -182,7 +182,7 @@ return array(
)
),
'diskspace' => array(
- 'label' => $lng['customer']['diskspace'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['customer']['diskspace'],
'type' => 'textul',
'value' => $result['diskspace'],
'maxlength' => 6,
@@ -190,7 +190,7 @@ return array(
'ul_field' => $diskspace_ul
),
'traffic' => array(
- 'label' => $lng['customer']['traffic'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['customer']['traffic'],
'type' => 'textul',
'value' => $result['traffic'],
'maxlength' => 4,
@@ -198,7 +198,7 @@ return array(
'ul_field' => $traffic_ul
),
'subdomains' => array(
- 'label' => $lng['customer']['subdomains'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['customer']['subdomains'],
'type' => 'textul',
'value' => $result['subdomains'],
'maxlength' => 9,
@@ -206,7 +206,7 @@ return array(
'ul_field' => $subdomains_ul
),
'emails' => array(
- 'label' => $lng['customer']['emails'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['customer']['emails'],
'type' => 'textul',
'value' => $result['emails'],
'maxlength' => 9,
@@ -214,7 +214,7 @@ return array(
'ul_field' => $emails_ul
),
'email_accounts' => array(
- 'label' => $lng['customer']['accounts'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['customer']['accounts'],
'type' => 'textul',
'value' => $result['email_accounts'],
'maxlength' => 9,
@@ -222,7 +222,7 @@ return array(
'ul_field' => $email_accounts_ul
),
'email_forwarders' => array(
- 'label' => $lng['customer']['forwarders'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['customer']['forwarders'],
'type' => 'textul',
'value' => $result['email_forwarders'],
'maxlength' => 9,
@@ -230,7 +230,7 @@ return array(
'ul_field' => $email_forwarders_ul
),
'email_quota' => array(
- 'label' => $lng['customer']['email_quota'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['customer']['email_quota'],
'type' => 'textul',
'value' => $result['email_quota'],
'maxlength' => 9,
@@ -239,14 +239,14 @@ return array(
'ul_field' => $email_quota_ul
),
'ftps' => array(
- 'label' => $lng['customer']['ftps'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['customer']['ftps'],
'type' => 'textul',
'value' => $result['ftps'],
'maxlength' => 9,
'ul_field' => $ftps_ul
),
'mysqls' => array(
- 'label' => $lng['customer']['mysqls'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['customer']['mysqls'],
'type' => 'textul',
'value' => $result['mysqls'],
'maxlength' => 9,
diff --git a/lib/formfields/admin/cronjobs/formfield.cronjobs_edit.php b/lib/formfields/admin/cronjobs/formfield.cronjobs_edit.php
index 75607699..c3af7abd 100644
--- a/lib/formfields/admin/cronjobs/formfield.cronjobs_edit.php
+++ b/lib/formfields/admin/cronjobs/formfield.cronjobs_edit.php
@@ -16,11 +16,11 @@
*/
return array(
'cronjobs_edit' => array(
- 'title' => $lng['admin']['cronjob_edit'],
+ 'title' => \Froxlor\I18N\Lang::getAll()['admin']['cronjob_edit'],
'image' => 'icons/clock_edit.png',
'sections' => array(
'section_a' => array(
- 'title' => $lng['cronjob']['cronjobsettings'],
+ 'title' => \Froxlor\I18N\Lang::getAll()['cronjob']['cronjobsettings'],
'image' => 'icons/clock_edit.png',
'fields' => array(
'cronfile' => array(
@@ -29,11 +29,11 @@ return array(
'value' => $result['cronfile']
),
'isactive' => array(
- 'label' => $lng['admin']['activated'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['activated'],
'type' => 'checkbox',
'values' => array(
array(
- 'label' => $lng['panel']['yes'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
'value' => '1'
)
),
@@ -42,12 +42,12 @@ return array(
)
),
'interval_value' => array(
- 'label' => $lng['cronjob']['cronjobintervalv'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['cronjob']['cronjobintervalv'],
'type' => 'text',
'value' => $interval_value
),
'interval_interval' => array(
- 'label' => $lng['cronjob']['cronjobinterval'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['cronjob']['cronjobinterval'],
'type' => 'select',
'select_var' => $interval_interval
)
diff --git a/lib/formfields/admin/customer/formfield.customer_add.php b/lib/formfields/admin/customer/formfield.customer_add.php
index 2afb1b2b..1ed689d8 100644
--- a/lib/formfields/admin/customer/formfield.customer_add.php
+++ b/lib/formfields/admin/customer/formfield.customer_add.php
@@ -16,23 +16,23 @@
*/
return array(
'customer_add' => array(
- 'title' => $lng['admin']['customer_add'],
+ 'title' => \Froxlor\I18N\Lang::getAll()['admin']['customer_add'],
'image' => 'icons/user_add.png',
'sections' => array(
'section_a' => array(
- 'title' => $lng['admin']['accountdata'],
+ 'title' => \Froxlor\I18N\Lang::getAll()['admin']['accountdata'],
'image' => 'icons/user_add.png',
'fields' => array(
'new_loginname' => array(
- 'label' => $lng['login']['username'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['login']['username'],
'type' => 'text'
),
'createstdsubdomain' => array(
- 'label' => $lng['admin']['stdsubdomain_add'] . '?',
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['stdsubdomain_add'] . '?',
'type' => 'checkbox',
'values' => array(
array(
- 'label' => $lng['panel']['yes'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
'value' => '1'
)
),
@@ -41,11 +41,11 @@ return array(
)
),
'store_defaultindex' => array(
- 'label' => $lng['admin']['store_defaultindex'] . '?',
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['store_defaultindex'] . '?',
'type' => 'checkbox',
'values' => array(
array(
- 'label' => $lng['panel']['yes'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
'value' => '1'
)
),
@@ -54,22 +54,22 @@ return array(
)
),
'new_customer_password' => array(
- 'label' => $lng['login']['password'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['login']['password'],
'type' => 'password',
'autocomplete' => 'off'
),
'new_customer_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()
),
'sendpassword' => array(
- 'label' => $lng['admin']['sendpassword'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['sendpassword'],
'type' => 'checkbox',
'values' => array(
array(
- 'label' => $lng['panel']['yes'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
'value' => '1'
)
),
@@ -78,79 +78,79 @@ return array(
)
),
'def_language' => array(
- 'label' => $lng['login']['language'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['login']['language'],
'type' => 'select',
'select_var' => $language_options
)
)
),
'section_b' => array(
- 'title' => $lng['admin']['contactdata'],
+ 'title' => \Froxlor\I18N\Lang::getAll()['admin']['contactdata'],
'image' => 'icons/user_add.png',
'fields' => array(
'name' => array(
- 'label' => $lng['customer']['name'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['customer']['name'],
'type' => 'text',
'mandatory_ex' => true
),
'firstname' => array(
- 'label' => $lng['customer']['firstname'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['customer']['firstname'],
'type' => 'text',
'mandatory_ex' => true
),
'gender' => array(
- 'label' => $lng['gender']['title'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['gender']['title'],
'type' => 'select',
'select_var' => $gender_options
),
'company' => array(
- 'label' => $lng['customer']['company'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['customer']['company'],
'type' => 'text',
'mandatory_ex' => true
),
'street' => array(
- 'label' => $lng['customer']['street'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['customer']['street'],
'type' => 'text'
),
'zipcode' => array(
- 'label' => $lng['customer']['zipcode'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['customer']['zipcode'],
'type' => 'text'
),
'city' => array(
- 'label' => $lng['customer']['city'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['customer']['city'],
'type' => 'text'
),
'phone' => array(
- 'label' => $lng['customer']['phone'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['customer']['phone'],
'type' => 'text'
),
'fax' => array(
- 'label' => $lng['customer']['fax'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['customer']['fax'],
'type' => 'text'
),
'email' => array(
- 'label' => $lng['customer']['email'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['customer']['email'],
'type' => 'text',
'mandatory' => true
),
'customernumber' => array(
- 'label' => $lng['customer']['customernumber'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['customer']['customernumber'],
'type' => 'text'
),
'custom_notes' => array(
'style' => 'align-top',
- 'label' => $lng['usersettings']['custom_notes']['title'],
- 'desc' => $lng['usersettings']['custom_notes']['description'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['usersettings']['custom_notes']['title'],
+ 'desc' => \Froxlor\I18N\Lang::getAll()['usersettings']['custom_notes']['description'],
'type' => 'textarea',
'cols' => 60,
'rows' => 12
),
'custom_notes_show' => array(
- 'label' => $lng['usersettings']['custom_notes']['show'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['usersettings']['custom_notes']['show'],
'type' => 'checkbox',
'values' => array(
array(
- 'label' => $lng['panel']['yes'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
'value' => '1'
)
),
@@ -160,22 +160,22 @@ return array(
),
'section_cpre' => array(
'visible' => ! empty($hosting_plans),
- 'title' => $lng['admin']['plans']['use_plan'],
+ 'title' => \Froxlor\I18N\Lang::getAll()['admin']['plans']['use_plan'],
'image' => 'icons/user_add.png',
'fields' => array(
'use_plan' => array(
- 'label' => $lng['admin']['plans']['use_plan'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['plans']['use_plan'],
'type' => 'select',
'select_var' => $hosting_plans
)
)
),
'section_c' => array(
- 'title' => $lng['admin']['servicedata'],
+ 'title' => \Froxlor\I18N\Lang::getAll()['admin']['servicedata'],
'image' => 'icons/user_add.png',
'fields' => array(
'diskspace' => array(
- 'label' => $lng['customer']['diskspace'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['customer']['diskspace'],
'type' => 'textul',
'value' => 0,
'maxlength' => 16,
@@ -183,7 +183,7 @@ return array(
'ul_field' => $diskspace_ul
),
'traffic' => array(
- 'label' => $lng['customer']['traffic'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['customer']['traffic'],
'type' => 'textul',
'value' => 0,
'maxlength' => 14,
@@ -191,7 +191,7 @@ return array(
'ul_field' => $traffic_ul
),
'subdomains' => array(
- 'label' => $lng['customer']['subdomains'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['customer']['subdomains'],
'type' => 'textul',
'value' => 0,
'maxlength' => 9,
@@ -199,7 +199,7 @@ return array(
'ul_field' => $subdomains_ul
),
'emails' => array(
- 'label' => $lng['customer']['emails'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['customer']['emails'],
'type' => 'textul',
'value' => 0,
'maxlength' => 9,
@@ -207,7 +207,7 @@ return array(
'ul_field' => $emails_ul
),
'email_accounts' => array(
- 'label' => $lng['customer']['accounts'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['customer']['accounts'],
'type' => 'textul',
'value' => 0,
'maxlength' => 9,
@@ -215,7 +215,7 @@ return array(
'ul_field' => $email_accounts_ul
),
'email_forwarders' => array(
- 'label' => $lng['customer']['forwarders'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['customer']['forwarders'],
'type' => 'textul',
'value' => 0,
'maxlength' => 9,
@@ -223,7 +223,7 @@ return array(
'ul_field' => $email_forwarders_ul
),
'email_quota' => array(
- 'label' => $lng['customer']['email_quota'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['customer']['email_quota'],
'type' => 'textul',
'value' => 0,
'maxlength' => 9,
@@ -232,11 +232,11 @@ return array(
'ul_field' => $email_quota_ul
),
'email_imap' => array(
- 'label' => $lng['customer']['email_imap'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['customer']['email_imap'],
'type' => 'checkbox',
'values' => array(
array(
- 'label' => $lng['panel']['yes'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
'value' => '1'
)
),
@@ -246,11 +246,11 @@ return array(
'mandatory' => true
),
'email_pop3' => array(
- 'label' => $lng['customer']['email_pop3'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['customer']['email_pop3'],
'type' => 'checkbox',
'values' => array(
array(
- 'label' => $lng['panel']['yes'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
'value' => '1'
)
),
@@ -260,14 +260,14 @@ return array(
'mandatory' => true
),
'ftps' => array(
- 'label' => $lng['customer']['ftps'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['customer']['ftps'],
'type' => 'textul',
'value' => 0,
'maxlength' => 9,
'ul_field' => $ftps_ul
),
'mysqls' => array(
- 'label' => $lng['customer']['mysqls'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['customer']['mysqls'],
'type' => 'textul',
'value' => 0,
'maxlength' => 9,
@@ -275,11 +275,11 @@ return array(
'ul_field' => $mysqls_ul
),
'phpenabled' => array(
- 'label' => $lng['admin']['phpenabled'] . '?',
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['phpenabled'] . '?',
'type' => 'checkbox',
'values' => array(
array(
- 'label' => $lng['panel']['yes'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
'value' => '1'
)
),
@@ -289,7 +289,7 @@ return array(
),
'allowed_phpconfigs' => array(
'visible' => (((int) \Froxlor\Settings::Get('system.mod_fcgid') == 1 || (int) \Froxlor\Settings::Get('phpfpm.enabled') == 1) ? true : false),
- 'label' => $lng['admin']['phpsettings']['title'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['phpsettings']['title'],
'type' => 'checkbox',
'values' => $phpconfigs,
'value' => ((int) \Froxlor\Settings::Get('system.mod_fcgid') == 1 ? array(
@@ -300,32 +300,32 @@ return array(
'is_array' => 1
),
'perlenabled' => array(
- 'label' => $lng['admin']['perlenabled'] . '?',
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['perlenabled'] . '?',
'type' => 'checkbox',
'values' => array(
array(
- 'label' => $lng['panel']['yes'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
'value' => '1'
)
)
),
'dnsenabled' => array(
- 'label' => $lng['admin']['dnsenabled'] . '?',
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['dnsenabled'] . '?',
'type' => 'checkbox',
'values' => array(
array(
- 'label' => $lng['panel']['yes'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
'value' => '1'
)
),
'visible' => (\Froxlor\Settings::Get('system.dnsenabled') == '1' ? true : false)
),
'logviewenabled' => array(
- 'label' => $lng['admin']['logviewenabled'] . '?',
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['logviewenabled'] . '?',
'type' => 'checkbox',
'values' => array(
array(
- 'label' => $lng['panel']['yes'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
'value' => '1'
)
)
diff --git a/lib/formfields/admin/customer/formfield.customer_edit.php b/lib/formfields/admin/customer/formfield.customer_edit.php
index 9f5879da..1a184a43 100644
--- a/lib/formfields/admin/customer/formfield.customer_edit.php
+++ b/lib/formfields/admin/customer/formfield.customer_edit.php
@@ -16,29 +16,29 @@
*/
return array(
'customer_edit' => array(
- 'title' => $lng['admin']['customer_edit'],
+ 'title' => \Froxlor\I18N\Lang::getAll()['admin']['customer_edit'],
'image' => 'icons/user_edit.png',
'sections' => array(
'section_a' => array(
- 'title' => $lng['admin']['accountdata'],
+ 'title' => \Froxlor\I18N\Lang::getAll()['admin']['accountdata'],
'image' => 'icons/user_edit.png',
'fields' => array(
'loginname' => array(
- 'label' => $lng['login']['username'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['login']['username'],
'type' => 'label',
'value' => $result['loginname']
),
'documentroot' => array(
- 'label' => $lng['customer']['documentroot'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['customer']['documentroot'],
'type' => 'label',
'value' => $result['documentroot']
),
'createstdsubdomain' => array(
- 'label' => $lng['admin']['stdsubdomain_add'] . '?',
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['stdsubdomain_add'] . '?',
'type' => 'checkbox',
'values' => array(
array(
- 'label' => $lng['panel']['yes'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
'value' => '1'
)
),
@@ -47,11 +47,11 @@ return array(
)
),
'deactivated' => array(
- 'label' => $lng['admin']['deactivated_user'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['deactivated_user'],
'type' => 'checkbox',
'values' => array(
array(
- 'label' => $lng['panel']['yes'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
'value' => '1'
)
),
@@ -60,101 +60,101 @@ return array(
)
),
'new_customer_password' => array(
- 'label' => $lng['login']['password'] . ' (' . $lng['panel']['emptyfornochanges'] . ')',
+ 'label' => \Froxlor\I18N\Lang::getAll()['login']['password'] . ' (' . \Froxlor\I18N\Lang::getAll()['panel']['emptyfornochanges'] . ')',
'type' => 'password',
'autocomplete' => 'off'
),
'new_customer_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()
),
'def_language' => array(
- 'label' => $lng['login']['language'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['login']['language'],
'type' => 'select',
'select_var' => $language_options
)
)
),
'section_b' => array(
- 'title' => $lng['admin']['contactdata'],
+ 'title' => \Froxlor\I18N\Lang::getAll()['admin']['contactdata'],
'image' => 'icons/user_edit.png',
'fields' => array(
'name' => array(
- 'label' => $lng['customer']['name'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['customer']['name'],
'type' => 'text',
'mandatory_ex' => true,
'value' => $result['name']
),
'firstname' => array(
- 'label' => $lng['customer']['firstname'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['customer']['firstname'],
'type' => 'text',
'mandatory_ex' => true,
'value' => $result['firstname']
),
'gender' => array(
- 'label' => $lng['gender']['title'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['gender']['title'],
'type' => 'select',
'select_var' => $gender_options
),
'company' => array(
- 'label' => $lng['customer']['company'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['customer']['company'],
'type' => 'text',
'mandatory_ex' => true,
'value' => $result['company']
),
'street' => array(
- 'label' => $lng['customer']['street'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['customer']['street'],
'type' => 'text',
'value' => $result['street']
),
'zipcode' => array(
- 'label' => $lng['customer']['zipcode'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['customer']['zipcode'],
'type' => 'text',
'value' => $result['zipcode']
),
'city' => array(
- 'label' => $lng['customer']['city'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['customer']['city'],
'type' => 'text',
'value' => $result['city']
),
'phone' => array(
- 'label' => $lng['customer']['phone'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['customer']['phone'],
'type' => 'text',
'value' => $result['phone']
),
'fax' => array(
- 'label' => $lng['customer']['fax'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['customer']['fax'],
'type' => 'text',
'value' => $result['fax']
),
'email' => array(
- 'label' => $lng['customer']['email'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['customer']['email'],
'type' => 'text',
'mandatory' => true,
'value' => $result['email']
),
'customernumber' => array(
- 'label' => $lng['customer']['customernumber'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['customer']['customernumber'],
'type' => 'text',
'value' => $result['customernumber']
),
'custom_notes' => array(
'style' => 'align-top',
- 'label' => $lng['usersettings']['custom_notes']['title'],
- 'desc' => $lng['usersettings']['custom_notes']['description'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['usersettings']['custom_notes']['title'],
+ 'desc' => \Froxlor\I18N\Lang::getAll()['usersettings']['custom_notes']['description'],
'type' => 'textarea',
'cols' => 60,
'rows' => 12,
'value' => $result['custom_notes']
),
'custom_notes_show' => array(
- 'label' => $lng['usersettings']['custom_notes']['show'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['usersettings']['custom_notes']['show'],
'type' => 'checkbox',
'values' => array(
array(
- 'label' => $lng['panel']['yes'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
'value' => '1'
)
),
@@ -166,22 +166,22 @@ return array(
),
'section_cpre' => array(
'visible' => ! empty($hosting_plans),
- 'title' => $lng['admin']['plans']['use_plan'],
+ 'title' => \Froxlor\I18N\Lang::getAll()['admin']['plans']['use_plan'],
'image' => 'icons/user_add.png',
'fields' => array(
'use_plan' => array(
- 'label' => $lng['admin']['plans']['use_plan'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['plans']['use_plan'],
'type' => 'select',
'select_var' => $hosting_plans
)
)
),
'section_c' => array(
- 'title' => $lng['admin']['servicedata'],
+ 'title' => \Froxlor\I18N\Lang::getAll()['admin']['servicedata'],
'image' => 'icons/user_edit.png',
'fields' => array(
'diskspace' => array(
- 'label' => $lng['customer']['diskspace'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['customer']['diskspace'],
'type' => 'textul',
'value' => $result['diskspace'],
'maxlength' => 16,
@@ -189,7 +189,7 @@ return array(
'ul_field' => $diskspace_ul
),
'traffic' => array(
- 'label' => $lng['customer']['traffic'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['customer']['traffic'],
'type' => 'textul',
'value' => $result['traffic'],
'maxlength' => 14,
@@ -197,7 +197,7 @@ return array(
'ul_field' => $traffic_ul
),
'subdomains' => array(
- 'label' => $lng['customer']['subdomains'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['customer']['subdomains'],
'type' => 'textul',
'value' => $result['subdomains'],
'maxlength' => 9,
@@ -205,7 +205,7 @@ return array(
'ul_field' => $subdomains_ul
),
'emails' => array(
- 'label' => $lng['customer']['emails'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['customer']['emails'],
'type' => 'textul',
'value' => $result['emails'],
'maxlength' => 9,
@@ -213,7 +213,7 @@ return array(
'ul_field' => $emails_ul
),
'email_accounts' => array(
- 'label' => $lng['customer']['accounts'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['customer']['accounts'],
'type' => 'textul',
'value' => $result['email_accounts'],
'maxlength' => 9,
@@ -221,7 +221,7 @@ return array(
'ul_field' => $email_accounts_ul
),
'email_forwarders' => array(
- 'label' => $lng['customer']['forwarders'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['customer']['forwarders'],
'type' => 'textul',
'value' => $result['email_forwarders'],
'maxlength' => 9,
@@ -229,7 +229,7 @@ return array(
'ul_field' => $email_forwarders_ul
),
'email_quota' => array(
- 'label' => $lng['customer']['email_quota'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['customer']['email_quota'],
'type' => 'textul',
'value' => $result['email_quota'],
'maxlength' => 9,
@@ -238,11 +238,11 @@ return array(
'ul_field' => $email_quota_ul
),
'email_imap' => array(
- 'label' => $lng['customer']['email_imap'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['customer']['email_imap'],
'type' => 'checkbox',
'values' => array(
array(
- 'label' => $lng['panel']['yes'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
'value' => '1'
)
),
@@ -252,11 +252,11 @@ return array(
'mandatory' => true
),
'email_pop3' => array(
- 'label' => $lng['customer']['email_pop3'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['customer']['email_pop3'],
'type' => 'checkbox',
'values' => array(
array(
- 'label' => $lng['panel']['yes'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
'value' => '1'
)
),
@@ -266,14 +266,14 @@ return array(
'mandatory' => true
),
'ftps' => array(
- 'label' => $lng['customer']['ftps'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['customer']['ftps'],
'type' => 'textul',
'value' => $result['ftps'],
'maxlength' => 9,
'ul_field' => $ftps_ul
),
'mysqls' => array(
- 'label' => $lng['customer']['mysqls'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['customer']['mysqls'],
'type' => 'textul',
'value' => $result['mysqls'],
'maxlength' => 9,
@@ -281,11 +281,11 @@ return array(
'ul_field' => $mysqls_ul
),
'phpenabled' => array(
- 'label' => $lng['admin']['phpenabled'] . '?',
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['phpenabled'] . '?',
'type' => 'checkbox',
'values' => array(
array(
- 'label' => $lng['panel']['yes'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
'value' => '1'
)
),
@@ -295,18 +295,18 @@ return array(
),
'allowed_phpconfigs' => array(
'visible' => (((int) \Froxlor\Settings::Get('system.mod_fcgid') == 1 || (int) \Froxlor\Settings::Get('phpfpm.enabled') == 1) ? true : false),
- 'label' => $lng['admin']['phpsettings']['title'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['phpsettings']['title'],
'type' => 'checkbox',
'values' => $phpconfigs,
'value' => isset($result['allowed_phpconfigs']) && ! empty($result['allowed_phpconfigs']) ? json_decode($result['allowed_phpconfigs'], JSON_OBJECT_AS_ARRAY) : array(),
'is_array' => 1
),
'perlenabled' => array(
- 'label' => $lng['admin']['perlenabled'] . '?',
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['perlenabled'] . '?',
'type' => 'checkbox',
'values' => array(
array(
- 'label' => $lng['panel']['yes'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
'value' => '1'
)
),
@@ -315,11 +315,11 @@ return array(
)
),
'dnsenabled' => array(
- 'label' => $lng['admin']['dnsenabled'] . '?',
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['dnsenabled'] . '?',
'type' => 'checkbox',
'values' => array(
array(
- 'label' => $lng['panel']['yes'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
'value' => '1'
)
),
@@ -329,11 +329,11 @@ return array(
'visible' => (\Froxlor\Settings::Get('system.dnsenabled') == '1' ? true : false)
),
'logviewenabled' => array(
- 'label' => $lng['admin']['logviewenabled'] . '?',
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['logviewenabled'] . '?',
'type' => 'checkbox',
'values' => array(
array(
- 'label' => $lng['panel']['yes'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
'value' => '1'
)
),
@@ -344,12 +344,12 @@ return array(
)
),
'section_d' => array(
- 'title' => $lng['admin']['movetoadmin'],
+ 'title' => \Froxlor\I18N\Lang::getAll()['admin']['movetoadmin'],
'image' => 'icons/user_edit.png',
'visible' => ($admin_select_cnt > 1),
'fields' => array(
'move_to_admin' => array(
- 'label' => $lng['admin']['movecustomertoadmin'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['movecustomertoadmin'],
'type' => 'select',
'select_var' => $admin_select
)
diff --git a/lib/formfields/admin/domains/formfield.domains_add.php b/lib/formfields/admin/domains/formfield.domains_add.php
index 7ffc3f95..82ed6cdf 100644
--- a/lib/formfields/admin/domains/formfield.domains_add.php
+++ b/lib/formfields/admin/domains/formfield.domains_add.php
@@ -16,11 +16,11 @@
*/
return array(
'domain_add' => array(
- 'title' => $lng['admin']['domain_add'],
+ 'title' => \Froxlor\I18N\Lang::getAll()['admin']['domain_add'],
'image' => 'icons/domain_add.png',
'sections' => array(
'section_a' => array(
- 'title' => $lng['domains']['domainsettings'],
+ 'title' => \Froxlor\I18N\Lang::getAll()['domains']['domainsettings'],
'image' => 'icons/domain_add.png',
'fields' => array(
'domain' => array(
@@ -29,36 +29,36 @@ return array(
'mandatory' => true
),
'customerid' => array(
- 'label' => $lng['admin']['customer'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['customer'],
'type' => 'select',
'select_var' => $customers,
'mandatory' => true
),
'adminid' => array(
'visible' => (\Froxlor\User::getAll()['customers_see_all'] == '1' ? true : false),
- 'label' => $lng['admin']['admin'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['admin'],
'type' => 'select',
'select_var' => $admins,
'mandatory' => true
),
'alias' => array(
- 'label' => $lng['domains']['aliasdomain'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['domains']['aliasdomain'],
'type' => 'select',
'select_var' => $domains
),
'issubof' => array(
- 'label' => $lng['domains']['issubof'],
- 'desc' => $lng['domains']['issubofinfo'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['domains']['issubof'],
+ 'desc' => \Froxlor\I18N\Lang::getAll()['domains']['issubofinfo'],
'type' => 'select',
'select_var' => $subtodomains
),
'caneditdomain' => array(
- 'label' => $lng['admin']['domain_editable']['title'],
- 'desc' => $lng['admin']['domain_editable']['desc'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['domain_editable']['title'],
+ 'desc' => \Froxlor\I18N\Lang::getAll()['admin']['domain_editable']['desc'],
'type' => 'checkbox',
'values' => array(
array(
- 'label' => $lng['panel']['yes'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
'value' => '1'
)
),
@@ -67,38 +67,38 @@ return array(
)
),
'add_date' => array(
- 'label' => $lng['domains']['add_date'],
- 'desc' => $lng['panel']['dateformat'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['domains']['add_date'],
+ 'desc' => \Froxlor\I18N\Lang::getAll()['panel']['dateformat'],
'type' => 'label',
'value' => $add_date
),
'registration_date' => array(
- 'label' => $lng['domains']['registration_date'],
- 'desc' => $lng['panel']['dateformat'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['domains']['registration_date'],
+ 'desc' => \Froxlor\I18N\Lang::getAll()['panel']['dateformat'],
'type' => 'text',
'size' => 10
),
'termination_date' => array(
- 'label' => $lng['domains']['termination_date'],
- 'desc' => $lng['panel']['dateformat'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['domains']['termination_date'],
+ 'desc' => \Froxlor\I18N\Lang::getAll()['panel']['dateformat'],
'type' => 'text',
'size' => 10
)
)
),
'section_b' => array(
- 'title' => $lng['admin']['webserversettings'],
+ 'title' => \Froxlor\I18N\Lang::getAll()['admin']['webserversettings'],
'image' => 'icons/domain_add.png',
'fields' => array(
'documentroot' => array(
'visible' => (\Froxlor\User::getAll()['change_serversettings'] == '1' ? true : false),
'label' => 'DocumentRoot',
- 'desc' => $lng['panel']['emptyfordefault'],
+ 'desc' => \Froxlor\I18N\Lang::getAll()['panel']['emptyfordefault'],
'type' => 'text'
),
'ipandport' => array(
- 'label' => $lng['domains']['ipandport_multi']['title'],
- 'desc' => $lng['domains']['ipandport_multi']['description'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['domains']['ipandport_multi']['title'],
+ 'desc' => \Froxlor\I18N\Lang::getAll()['domains']['ipandport_multi']['description'],
'type' => 'checkbox',
'values' => $ipsandports,
'value' => explode(',', \Froxlor\Settings::Get('system.defaultip')),
@@ -106,18 +106,18 @@ return array(
'mandatory' => true
),
'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' => 'select',
'select_var' => $serveraliasoptions
),
'speciallogfile' => array(
- 'label' => $lng['admin']['speciallogfile']['title'],
- 'desc' => $lng['admin']['speciallogfile']['description'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['speciallogfile']['title'],
+ 'desc' => \Froxlor\I18N\Lang::getAll()['admin']['speciallogfile']['description'],
'type' => 'checkbox',
'values' => array(
array(
- 'label' => $lng['panel']['yes'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
'value' => '1'
)
),
@@ -126,32 +126,32 @@ return array(
'specialsettings' => array(
'visible' => (\Froxlor\User::getAll()['change_serversettings'] == '1' ? true : false),
'style' => 'align-top',
- 'label' => $lng['admin']['ownvhostsettings'],
- 'desc' => $lng['serversettings']['default_vhostconf']['description'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['ownvhostsettings'],
+ 'desc' => \Froxlor\I18N\Lang::getAll()['serversettings']['default_vhostconf']['description'],
'type' => 'textarea',
'cols' => 60,
'rows' => 12
),
'notryfiles' => array(
'visible' => (\Froxlor\Settings::Get('system.webserver') == 'nginx' && \Froxlor\User::getAll()['change_serversettings'] == '1'),
- 'label' => $lng['admin']['notryfiles']['title'],
- 'desc' => $lng['admin']['notryfiles']['description'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['notryfiles']['title'],
+ 'desc' => \Froxlor\I18N\Lang::getAll()['admin']['notryfiles']['description'],
'type' => 'checkbox',
'values' => array(
array(
- 'label' => $lng['panel']['yes'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
'value' => '1'
)
),
'value' => array()
),
'writeaccesslog' => array(
- 'label' => $lng['admin']['writeaccesslog']['title'],
- 'desc' => $lng['admin']['writeaccesslog']['description'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['writeaccesslog']['title'],
+ 'desc' => \Froxlor\I18N\Lang::getAll()['admin']['writeaccesslog']['description'],
'type' => 'checkbox',
'values' => array(
array(
- 'label' => $lng['panel']['yes'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
'value' => '1'
)
),
@@ -160,12 +160,12 @@ return array(
)
),
'writeerrorlog' => array(
- 'label' => $lng['admin']['writeerrorlog']['title'],
- 'desc' => $lng['admin']['writeerrorlog']['description'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['writeerrorlog']['title'],
+ 'desc' => \Froxlor\I18N\Lang::getAll()['admin']['writeerrorlog']['description'],
'type' => 'checkbox',
'values' => array(
array(
- 'label' => $lng['panel']['yes'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
'value' => '1'
)
),
@@ -176,13 +176,13 @@ return array(
)
),
'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' ? true : false,
'fields' => array(
'ssl_ipandport' => array(
- 'label' => $lng['domains']['ipandport_ssl_multi']['title'],
- 'desc' => $lng['domains']['ipandport_ssl_multi']['description'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['domains']['ipandport_ssl_multi']['title'],
+ 'desc' => \Froxlor\I18N\Lang::getAll()['domains']['ipandport_ssl_multi']['description'],
'type' => 'checkbox',
'values' => $ssl_ipsandports,
'value' => '',
@@ -190,12 +190,12 @@ return array(
),
'ssl_redirect' => array(
'visible' => ($ssl_ipsandports != '' ? true : false),
- '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'
)
),
@@ -203,12 +203,12 @@ return array(
),
'letsencrypt' => array(
'visible' => (\Froxlor\Settings::Get('system.leenabled') == '1' ? ($ssl_ipsandports != '' ? true : false) : false),
- 'label' => $lng['admin']['letsencrypt']['title'],
- 'desc' => $lng['admin']['letsencrypt']['description'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['letsencrypt']['title'],
+ 'desc' => \Froxlor\I18N\Lang::getAll()['admin']['letsencrypt']['description'],
'type' => 'checkbox',
'values' => array(
array(
- 'label' => $lng['panel']['yes'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
'value' => '1'
)
),
@@ -216,12 +216,12 @@ return array(
),
'http2' => array(
'visible' => ($ssl_ipsandports != '' ? true : false) && \Froxlor\Settings::Get('system.webserver') != 'lighttpd' && \Froxlor\Settings::Get('system.http2_support') == '1',
- 'label' => $lng['admin']['domain_http2']['title'],
- 'desc' => $lng['admin']['domain_http2']['description'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['domain_http2']['title'],
+ 'desc' => \Froxlor\I18N\Lang::getAll()['admin']['domain_http2']['description'],
'type' => 'checkbox',
'values' => array(
array(
- 'label' => $lng['panel']['yes'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
'value' => '1'
)
),
@@ -231,12 +231,12 @@ return array(
'visible' => ($ssl_ipsandports == '' ? true : false),
'label' => 'SSL',
'type' => 'label',
- 'value' => $lng['panel']['nosslipsavailable']
+ 'value' => \Froxlor\I18N\Lang::getAll()['panel']['nosslipsavailable']
),
'hsts_maxage' => array(
'visible' => ($ssl_ipsandports != '' ? true : false),
- '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
@@ -244,12 +244,12 @@ return array(
),
'hsts_sub' => array(
'visible' => ($ssl_ipsandports != '' ? true : false),
- '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'
)
),
@@ -257,12 +257,12 @@ return array(
),
'hsts_preload' => array(
'visible' => ($ssl_ipsandports != '' ? true : false),
- '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'
)
),
@@ -270,12 +270,12 @@ return array(
),
'ocsp_stapling' => array(
'visible' => ($ssl_ipsandports != '' ? true : false) && \Froxlor\Settings::Get('system.webserver') != 'lighttpd',
- 'label' => $lng['admin']['domain_ocsp_stapling']['title'],
- 'desc' => $lng['admin']['domain_ocsp_stapling']['description'] . (\Froxlor\Settings::Get('system.webserver') == 'nginx' ? $lng['admin']['domain_ocsp_stapling']['nginx_version_warning'] : ""),
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['domain_ocsp_stapling']['title'],
+ 'desc' => \Froxlor\I18N\Lang::getAll()['admin']['domain_ocsp_stapling']['description'] . (\Froxlor\Settings::Get('system.webserver') == 'nginx' ? \Froxlor\I18N\Lang::getAll()['admin']['domain_ocsp_stapling']['nginx_version_warning'] : ""),
'type' => 'checkbox',
'values' => array(
array(
- 'label' => $lng['panel']['yes'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
'value' => '1'
)
),
@@ -284,7 +284,7 @@ return array(
)
),
'section_c' => array(
- 'title' => $lng['admin']['phpserversettings'],
+ 'title' => \Froxlor\I18N\Lang::getAll()['admin']['phpserversettings'],
'image' => 'icons/domain_add.png',
'visible' => ((\Froxlor\User::getAll()['change_serversettings'] == '1' || \Froxlor\User::getAll()['caneditphpsettings'] == '1') ? true : false),
'fields' => array(
@@ -293,7 +293,7 @@ return array(
'type' => 'checkbox',
'values' => array(
array(
- 'label' => $lng['panel']['yes'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
'value' => '1'
)
),
@@ -302,11 +302,11 @@ return array(
)
),
'phpenabled' => array(
- 'label' => $lng['admin']['phpenabled'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['phpenabled'],
'type' => 'checkbox',
'values' => array(
array(
- 'label' => $lng['panel']['yes'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
'value' => '1'
)
),
@@ -316,24 +316,24 @@ return array(
),
'phpsettingid' => array(
'visible' => (((int) \Froxlor\Settings::Get('system.mod_fcgid') == 1 || (int) \Froxlor\Settings::Get('phpfpm.enabled') == 1) ? true : false),
- 'label' => $lng['admin']['phpsettings']['title'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['phpsettings']['title'],
'type' => 'select',
'select_var' => $phpconfigs
),
'mod_fcgid_starter' => array(
'visible' => ((int) \Froxlor\Settings::Get('system.mod_fcgid') == 1 ? true : false),
- 'label' => $lng['admin']['mod_fcgid_starter']['title'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['mod_fcgid_starter']['title'],
'type' => 'text'
),
'mod_fcgid_maxrequests' => array(
'visible' => ((int) \Froxlor\Settings::Get('system.mod_fcgid') == 1 ? true : false),
- 'label' => $lng['admin']['mod_fcgid_maxrequests']['title'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['mod_fcgid_maxrequests']['title'],
'type' => 'text'
)
)
),
'section_d' => array(
- 'title' => $lng['admin']['nameserversettings'],
+ 'title' => \Froxlor\I18N\Lang::getAll()['admin']['nameserversettings'],
'image' => 'icons/domain_add.png',
'visible' => (\Froxlor\Settings::Get('system.bind_enable') == '1' && \Froxlor\User::getAll()['change_serversettings'] == '1' ? true : false),
'fields' => array(
@@ -342,7 +342,7 @@ return array(
'type' => 'checkbox',
'values' => array(
array(
- 'label' => $lng['panel']['yes'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
'value' => '1'
)
),
@@ -352,21 +352,21 @@ return array(
),
'zonefile' => array(
'label' => 'Zonefile',
- 'desc' => $lng['admin']['bindzonewarning'],
+ 'desc' => \Froxlor\I18N\Lang::getAll()['admin']['bindzonewarning'],
'type' => 'text'
)
)
),
'section_e' => array(
- 'title' => $lng['admin']['mailserversettings'],
+ 'title' => \Froxlor\I18N\Lang::getAll()['admin']['mailserversettings'],
'image' => 'icons/domain_add.png',
'fields' => array(
'isemaildomain' => array(
- 'label' => $lng['admin']['emaildomain'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['emaildomain'],
'type' => 'checkbox',
'values' => array(
array(
- 'label' => $lng['panel']['yes'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
'value' => '1'
)
),
@@ -375,18 +375,18 @@ return array(
)
),
'email_only' => array(
- 'label' => $lng['admin']['email_only'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['email_only'],
'type' => 'checkbox',
'values' => array(
array(
- 'label' => $lng['panel']['yes'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
'value' => '1'
)
),
'value' => array()
),
'subcanemaildomain' => array(
- 'label' => $lng['admin']['subdomainforemail'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['subdomainforemail'],
'type' => 'select',
'select_var' => $subcanemaildomain
),
@@ -396,7 +396,7 @@ return array(
'type' => 'checkbox',
'values' => array(
array(
- 'label' => $lng['panel']['yes'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
'value' => '1'
)
),
diff --git a/lib/formfields/admin/domains/formfield.domains_edit.php b/lib/formfields/admin/domains/formfield.domains_edit.php
index c33db1b7..4224057a 100644
--- a/lib/formfields/admin/domains/formfield.domains_edit.php
+++ b/lib/formfields/admin/domains/formfield.domains_edit.php
@@ -16,11 +16,11 @@
*/
return array(
'domain_edit' => array(
- 'title' => $lng['admin']['domain_edit'],
+ 'title' => \Froxlor\I18N\Lang::getAll()['admin']['domain_edit'],
'image' => 'icons/domain_edit.png',
'sections' => array(
'section_a' => array(
- 'title' => $lng['domains']['domainsettings'],
+ 'title' => \Froxlor\I18N\Lang::getAll()['domains']['domainsettings'],
'image' => 'icons/domain_edit.png',
'fields' => array(
'domain' => array(
@@ -30,7 +30,7 @@ return array(
'mandatory' => true
),
'customerid' => array(
- 'label' => $lng['admin']['customer'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['customer'],
'type' => (\Froxlor\Settings::Get('panel.allow_domain_change_customer') == '1' ? 'select' : 'label'),
'select_var' => (isset($customers) ? $customers : null),
'value' => (isset($result['customername']) ? $result['customername'] : null),
@@ -38,7 +38,7 @@ return array(
),
'adminid' => array(
'visible' => (\Froxlor\User::getAll()['customers_see_all'] == '1' ? true : false),
- 'label' => $lng['admin']['admin'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['admin'],
'type' => (\Froxlor\Settings::Get('panel.allow_domain_change_admin') == '1' ? 'select' : 'label'),
'select_var' => (isset($admins) ? $admins : null),
'value' => (isset($result['adminname']) ? $result['adminname'] : null),
@@ -46,28 +46,28 @@ return array(
),
'alias' => array(
'visible' => ($alias_check == '0' ? true : false),
- 'label' => $lng['domains']['aliasdomain'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['domains']['aliasdomain'],
'type' => 'select',
'select_var' => $domains
),
'issubof' => array(
- 'label' => $lng['domains']['issubof'],
- 'desc' => $lng['domains']['issubofinfo'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['domains']['issubof'],
+ 'desc' => \Froxlor\I18N\Lang::getAll()['domains']['issubofinfo'],
'type' => 'select',
'select_var' => $subtodomains
),
'associated_info' => array(
- 'label' => $lng['domains']['associated_with_domain'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['domains']['associated_with_domain'],
'type' => 'label',
- 'value' => $subdomains . ' ' . $lng['customer']['subdomains'] . ', ' . $alias_check . ' ' . $lng['domains']['aliasdomains'] . ', ' . $emails . ' ' . $lng['customer']['emails'] . ', ' . $email_accounts . ' ' . $lng['customer']['accounts'] . ', ' . $email_forwarders . ' ' . $lng['customer']['forwarders']
+ 'value' => $subdomains . ' ' . \Froxlor\I18N\Lang::getAll()['customer']['subdomains'] . ', ' . $alias_check . ' ' . \Froxlor\I18N\Lang::getAll()['domains']['aliasdomains'] . ', ' . $emails . ' ' . \Froxlor\I18N\Lang::getAll()['customer']['emails'] . ', ' . $email_accounts . ' ' . \Froxlor\I18N\Lang::getAll()['customer']['accounts'] . ', ' . $email_forwarders . ' ' . \Froxlor\I18N\Lang::getAll()['customer']['forwarders']
),
'caneditdomain' => array(
- 'label' => $lng['admin']['domain_editable']['title'],
- 'desc' => $lng['admin']['domain_editable']['desc'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['domain_editable']['title'],
+ 'desc' => \Froxlor\I18N\Lang::getAll()['admin']['domain_editable']['desc'],
'type' => 'checkbox',
'values' => array(
array(
- 'label' => $lng['panel']['yes'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
'value' => '1'
)
),
@@ -76,21 +76,21 @@ return array(
)
),
'add_date' => array(
- 'label' => $lng['domains']['add_date'],
- 'desc' => $lng['panel']['dateformat'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['domains']['add_date'],
+ 'desc' => \Froxlor\I18N\Lang::getAll()['panel']['dateformat'],
'type' => 'label',
'value' => $result['add_date']
),
'registration_date' => array(
- 'label' => $lng['domains']['registration_date'],
- 'desc' => $lng['panel']['dateformat'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['domains']['registration_date'],
+ 'desc' => \Froxlor\I18N\Lang::getAll()['panel']['dateformat'],
'type' => 'text',
'value' => $result['registration_date'],
'size' => 10
),
'termination_date' => array(
- 'label' => $lng['domains']['termination_date'],
- 'desc' => $lng['panel']['dateformat'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['domains']['termination_date'],
+ 'desc' => \Froxlor\I18N\Lang::getAll()['panel']['dateformat'],
'type' => 'text',
'value' => $result['termination_date'],
'size' => 10
@@ -98,19 +98,19 @@ return array(
)
),
'section_b' => array(
- 'title' => $lng['admin']['webserversettings'],
+ 'title' => \Froxlor\I18N\Lang::getAll()['admin']['webserversettings'],
'image' => 'icons/domain_edit.png',
'fields' => array(
'documentroot' => array(
'visible' => (\Froxlor\User::getAll()['change_serversettings'] == '1' ? true : false),
'label' => 'DocumentRoot',
- 'desc' => $lng['panel']['emptyfordefault'],
+ 'desc' => \Froxlor\I18N\Lang::getAll()['panel']['emptyfordefault'],
'type' => 'text',
'value' => $result['documentroot']
),
'ipandport' => array(
- 'label' => $lng['domains']['ipandport_multi']['title'],
- 'desc' => $lng['domains']['ipandport_multi']['description'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['domains']['ipandport_multi']['title'],
+ 'desc' => \Froxlor\I18N\Lang::getAll()['domains']['ipandport_multi']['description'],
'type' => 'checkbox',
'values' => $ipsandports,
'value' => $usedips,
@@ -118,18 +118,18 @@ return array(
'mandatory' => true
),
'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' => 'select',
'select_var' => $serveraliasoptions
),
'speciallogfile' => array(
- 'label' => $lng['admin']['speciallogfile']['title'],
- 'desc' => $lng['admin']['speciallogfile']['description'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['speciallogfile']['title'],
+ 'desc' => \Froxlor\I18N\Lang::getAll()['admin']['speciallogfile']['description'],
'type' => 'checkbox',
'values' => array(
array(
- 'label' => $lng['panel']['yes'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
'value' => '1'
)
),
@@ -140,8 +140,8 @@ return array(
'specialsettings' => array(
'visible' => (\Froxlor\User::getAll()['change_serversettings'] == '1' ? true : false),
'style' => 'align-top',
- 'label' => $lng['admin']['ownvhostsettings'],
- 'desc' => $lng['serversettings']['default_vhostconf']['description'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['ownvhostsettings'],
+ 'desc' => \Froxlor\I18N\Lang::getAll()['serversettings']['default_vhostconf']['description'],
'type' => 'textarea',
'value' => $result['specialsettings'],
'cols' => 60,
@@ -149,12 +149,12 @@ return array(
),
'specialsettingsforsubdomains' => array(
'visible' => (\Froxlor\User::getAll()['change_serversettings'] == '1' ? true : false),
- 'label' => $lng['admin']['specialsettingsforsubdomains'],
- 'desc' => $lng['serversettings']['specialsettingsforsubdomains']['description'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['specialsettingsforsubdomains'],
+ 'desc' => \Froxlor\I18N\Lang::getAll()['serversettings']['specialsettingsforsubdomains']['description'],
'type' => 'checkbox',
'values' => array(
array(
- 'label' => $lng['panel']['yes'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
'value' => '1'
)
),
@@ -164,12 +164,12 @@ return array(
),
'notryfiles' => array(
'visible' => (\Froxlor\Settings::Get('system.webserver') == 'nginx' && \Froxlor\User::getAll()['change_serversettings'] == '1'),
- 'label' => $lng['admin']['notryfiles']['title'],
- 'desc' => $lng['admin']['notryfiles']['description'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['notryfiles']['title'],
+ 'desc' => \Froxlor\I18N\Lang::getAll()['admin']['notryfiles']['description'],
'type' => 'checkbox',
'values' => array(
array(
- 'label' => $lng['panel']['yes'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
'value' => '1'
)
),
@@ -178,12 +178,12 @@ return array(
)
),
'writeaccesslog' => array(
- 'label' => $lng['admin']['writeaccesslog']['title'],
- 'desc' => $lng['admin']['writeaccesslog']['description'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['writeaccesslog']['title'],
+ 'desc' => \Froxlor\I18N\Lang::getAll()['admin']['writeaccesslog']['description'],
'type' => 'checkbox',
'values' => array(
array(
- 'label' => $lng['panel']['yes'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
'value' => '1'
)
),
@@ -192,12 +192,12 @@ return array(
)
),
'writeerrorlog' => array(
- 'label' => $lng['admin']['writeerrorlog']['title'],
- 'desc' => $lng['admin']['writeerrorlog']['description'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['writeerrorlog']['title'],
+ 'desc' => \Froxlor\I18N\Lang::getAll()['admin']['writeerrorlog']['description'],
'type' => 'checkbox',
'values' => array(
array(
- 'label' => $lng['panel']['yes'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
'value' => '1'
)
),
@@ -208,13 +208,13 @@ return array(
)
),
'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' ? true : false,
'fields' => array(
'ssl_ipandport' => array(
- 'label' => $lng['domains']['ipandport_ssl_multi']['title'],
- 'desc' => $lng['domains']['ipandport_ssl_multi']['description'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['domains']['ipandport_ssl_multi']['title'],
+ 'desc' => \Froxlor\I18N\Lang::getAll()['domains']['ipandport_ssl_multi']['description'],
'type' => 'checkbox',
'values' => $ssl_ipsandports,
'value' => $usedips,
@@ -222,12 +222,12 @@ return array(
),
'ssl_redirect' => array(
'visible' => ($ssl_ipsandports != '' ? true : false),
- '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'
)
),
@@ -237,12 +237,12 @@ return array(
),
'letsencrypt' => array(
'visible' => (\Froxlor\Settings::Get('system.leenabled') == '1' ? ($ssl_ipsandports != '' ? true : false) : false),
- 'label' => $lng['admin']['letsencrypt']['title'],
- 'desc' => $lng['admin']['letsencrypt']['description'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['letsencrypt']['title'],
+ 'desc' => \Froxlor\I18N\Lang::getAll()['admin']['letsencrypt']['description'],
'type' => 'checkbox',
'values' => array(
array(
- 'label' => $lng['panel']['yes'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
'value' => '1'
)
),
@@ -252,12 +252,12 @@ return array(
),
'http2' => array(
'visible' => ($ssl_ipsandports != '' ? true : false) && \Froxlor\Settings::Get('system.webserver') != 'lighttpd' && \Froxlor\Settings::Get('system.http2_support') == '1',
- 'label' => $lng['admin']['domain_http2']['title'],
- 'desc' => $lng['admin']['domain_http2']['description'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['domain_http2']['title'],
+ 'desc' => \Froxlor\I18N\Lang::getAll()['admin']['domain_http2']['description'],
'type' => 'checkbox',
'values' => array(
array(
- 'label' => $lng['panel']['yes'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
'value' => '1'
)
),
@@ -269,12 +269,12 @@ return array(
'visible' => ($ssl_ipsandports == '' ? true : false),
'label' => 'SSL',
'type' => 'label',
- 'value' => $lng['panel']['nosslipsavailable']
+ 'value' => \Froxlor\I18N\Lang::getAll()['panel']['nosslipsavailable']
),
'hsts_maxage' => array(
'visible' => ($ssl_ipsandports != '' ? true : false),
- '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
@@ -282,12 +282,12 @@ return array(
),
'hsts_sub' => array(
'visible' => ($ssl_ipsandports != '' ? true : false),
- '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'
)
),
@@ -297,12 +297,12 @@ return array(
),
'hsts_preload' => array(
'visible' => ($ssl_ipsandports != '' ? true : false),
- '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'
)
),
@@ -312,12 +312,12 @@ return array(
),
'ocsp_stapling' => array(
'visible' => ($ssl_ipsandports != '' ? true : false) && \Froxlor\Settings::Get('system.webserver') != 'lighttpd',
- 'label' => $lng['admin']['domain_ocsp_stapling']['title'],
- 'desc' => $lng['admin']['domain_ocsp_stapling']['description'] . (\Froxlor\Settings::Get('system.webserver') == 'nginx' ? $lng['admin']['domain_ocsp_stapling']['nginx_version_warning'] : ""),
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['domain_ocsp_stapling']['title'],
+ 'desc' => \Froxlor\I18N\Lang::getAll()['admin']['domain_ocsp_stapling']['description'] . (\Froxlor\Settings::Get('system.webserver') == 'nginx' ? \Froxlor\I18N\Lang::getAll()['admin']['domain_ocsp_stapling']['nginx_version_warning'] : ""),
'type' => 'checkbox',
'values' => array(
array(
- 'label' => $lng['panel']['yes'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
'value' => '1'
)
),
@@ -328,7 +328,7 @@ return array(
)
),
'section_c' => array(
- 'title' => $lng['admin']['phpserversettings'],
+ 'title' => \Froxlor\I18N\Lang::getAll()['admin']['phpserversettings'],
'image' => 'icons/domain_edit.png',
'visible' => ((\Froxlor\User::getAll()['change_serversettings'] == '1' || \Froxlor\User::getAll()['caneditphpsettings'] == '1') ? true : false),
'fields' => array(
@@ -337,7 +337,7 @@ return array(
'type' => 'checkbox',
'values' => array(
array(
- 'label' => $lng['panel']['yes'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
'value' => '1'
)
),
@@ -346,11 +346,11 @@ return array(
)
),
'phpenabled' => array(
- 'label' => $lng['admin']['phpenabled'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['phpenabled'],
'type' => 'checkbox',
'values' => array(
array(
- 'label' => $lng['panel']['yes'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
'value' => '1'
)
),
@@ -360,18 +360,18 @@ return array(
),
'phpsettingid' => array(
'visible' => (((int) \Froxlor\Settings::Get('system.mod_fcgid') == 1 || (int) \Froxlor\Settings::Get('phpfpm.enabled') == 1) ? true : false),
- 'label' => $lng['admin']['phpsettings']['title'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['phpsettings']['title'],
'type' => 'select',
'select_var' => $phpconfigs
),
'phpsettingsforsubdomains' => array(
'visible' => (\Froxlor\User::getAll()['change_serversettings'] == '1' ? true : false),
- 'label' => $lng['admin']['phpsettingsforsubdomains'],
- 'desc' => $lng['serversettings']['phpsettingsforsubdomains']['description'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['phpsettingsforsubdomains'],
+ 'desc' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpsettingsforsubdomains']['description'],
'type' => 'checkbox',
'values' => array(
array(
- 'label' => $lng['panel']['yes'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
'value' => '1'
)
),
@@ -381,20 +381,20 @@ return array(
),
'mod_fcgid_starter' => array(
'visible' => ((int) \Froxlor\Settings::Get('system.mod_fcgid') == 1 ? true : false),
- 'label' => $lng['admin']['mod_fcgid_starter']['title'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['mod_fcgid_starter']['title'],
'type' => 'text',
'value' => ((int) $result['mod_fcgid_starter'] != - 1 ? $result['mod_fcgid_starter'] : '')
),
'mod_fcgid_maxrequests' => array(
'visible' => ((int) \Froxlor\Settings::Get('system.mod_fcgid') == 1 ? true : false),
- 'label' => $lng['admin']['mod_fcgid_maxrequests']['title'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['mod_fcgid_maxrequests']['title'],
'type' => 'text',
'value' => ((int) $result['mod_fcgid_maxrequests'] != - 1 ? $result['mod_fcgid_maxrequests'] : '')
)
)
),
'section_d' => array(
- 'title' => $lng['admin']['nameserversettings'],
+ 'title' => \Froxlor\I18N\Lang::getAll()['admin']['nameserversettings'],
'image' => 'icons/domain_edit.png',
'visible' => (\Froxlor\Settings::Get('system.bind_enable') == '1' && \Froxlor\User::getAll()['change_serversettings'] == '1' ? true : false),
'fields' => array(
@@ -403,7 +403,7 @@ return array(
'type' => 'checkbox',
'values' => array(
array(
- 'label' => $lng['panel']['yes'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
'value' => '1'
)
),
@@ -413,22 +413,22 @@ return array(
),
'zonefile' => array(
'label' => 'Zonefile',
- 'desc' => $lng['admin']['bindzonewarning'],
+ 'desc' => \Froxlor\I18N\Lang::getAll()['admin']['bindzonewarning'],
'type' => 'text',
'value' => $result['zonefile']
)
)
),
'section_e' => array(
- 'title' => $lng['admin']['mailserversettings'],
+ 'title' => \Froxlor\I18N\Lang::getAll()['admin']['mailserversettings'],
'image' => 'icons/domain_edit.png',
'fields' => array(
'isemaildomain' => array(
- 'label' => $lng['admin']['emaildomain'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['emaildomain'],
'type' => 'checkbox',
'values' => array(
array(
- 'label' => $lng['panel']['yes'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
'value' => '1'
)
),
@@ -437,11 +437,11 @@ return array(
)
),
'email_only' => array(
- 'label' => $lng['admin']['email_only'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['email_only'],
'type' => 'checkbox',
'values' => array(
array(
- 'label' => $lng['panel']['yes'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
'value' => '1'
)
),
@@ -450,7 +450,7 @@ return array(
)
),
'subcanemaildomain' => array(
- 'label' => $lng['admin']['subdomainforemail'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['subdomainforemail'],
'type' => 'select',
'select_var' => $subcanemaildomain
),
@@ -460,7 +460,7 @@ return array(
'type' => 'checkbox',
'values' => array(
array(
- 'label' => $lng['panel']['yes'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
'value' => '1'
)
),
diff --git a/lib/formfields/admin/domains/formfield.domains_import.php b/lib/formfields/admin/domains/formfield.domains_import.php
index 060b8111..0430ee20 100644
--- a/lib/formfields/admin/domains/formfield.domains_import.php
+++ b/lib/formfields/admin/domains/formfield.domains_import.php
@@ -16,35 +16,35 @@
*/
return array(
'domain_import' => array(
- 'title' => $lng['domains']['domain_import'],
+ 'title' => \Froxlor\I18N\Lang::getAll()['domains']['domain_import'],
'image' => 'icons/domain_add.png',
'sections' => array(
'section_a' => array(
- 'title' => $lng['domains']['domain_import'],
+ 'title' => \Froxlor\I18N\Lang::getAll()['domains']['domain_import'],
'image' => 'icons/domain_add.png',
'fields' => array(
'customerid' => array(
- 'label' => $lng['admin']['customer'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['customer'],
'type' => 'select',
'select_var' => $customers,
'mandatory' => true
),
'separator' => array(
- 'label' => $lng['domains']['import_separator'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['domains']['import_separator'],
'type' => 'text',
'mandatory' => true,
'size' => 5,
'value' => ';'
),
'offset' => array(
- 'label' => $lng['domains']['import_offset'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['domains']['import_offset'],
'type' => 'text',
'mandatory' => true,
'size' => 10,
'value' => '0'
),
'file' => array(
- 'label' => $lng['domains']['import_file'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['domains']['import_file'],
'type' => 'file',
'mandatory' => true
)
diff --git a/lib/formfields/admin/ipsandports/formfield.ipsandports_add.php b/lib/formfields/admin/ipsandports/formfield.ipsandports_add.php
index 9a1348f0..b012f59d 100644
--- a/lib/formfields/admin/ipsandports/formfield.ipsandports_add.php
+++ b/lib/formfields/admin/ipsandports/formfield.ipsandports_add.php
@@ -16,35 +16,35 @@
*/
return array(
'ipsandports_add' => array(
- 'title' => $lng['admin']['ipsandports']['add'],
+ 'title' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['add'],
'image' => 'icons/ipsports_add.png',
'sections' => array(
'section_a' => array(
- 'title' => $lng['admin']['ipsandports']['ipandport'],
+ 'title' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['ipandport'],
'image' => 'icons/ipsports_add.png',
'fields' => array(
'ip' => array(
- 'label' => $lng['admin']['ipsandports']['ip'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['ip'],
'type' => 'text'
),
'port' => array(
- 'label' => $lng['admin']['ipsandports']['port'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['port'],
'type' => 'text',
'size' => 5
)
)
),
'section_b' => array(
- 'title' => $lng['admin']['ipsandports']['webserverdefaultconfig'],
+ 'title' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['webserverdefaultconfig'],
'image' => 'icons/ipsports_add.png',
'fields' => array(
'listen_statement' => array(
'visible' => ! $is_nginx,
- 'label' => $lng['admin']['ipsandports']['create_listen_statement'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['create_listen_statement'],
'type' => 'checkbox',
'values' => array(
array(
- 'label' => $lng['panel']['yes'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
'value' => '1'
)
),
@@ -54,11 +54,11 @@ return array(
),
'namevirtualhost_statement' => array(
'visible' => $is_apache && ! $is_apache24,
- 'label' => $lng['admin']['ipsandports']['create_namevirtualhost_statement'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['create_namevirtualhost_statement'],
'type' => 'checkbox',
'values' => array(
array(
- 'label' => $lng['panel']['yes'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
'value' => '1'
)
),
@@ -67,11 +67,11 @@ return array(
)
),
'vhostcontainer' => array(
- 'label' => $lng['admin']['ipsandports']['create_vhostcontainer'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['create_vhostcontainer'],
'type' => 'checkbox',
'values' => array(
array(
- 'label' => $lng['panel']['yes'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
'value' => '1'
)
),
@@ -80,25 +80,25 @@ return array(
)
),
'docroot' => array(
- 'label' => $lng['admin']['ipsandports']['docroot']['title'],
- 'desc' => $lng['admin']['ipsandports']['docroot']['description'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['docroot']['title'],
+ 'desc' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['docroot']['description'],
'type' => 'text'
),
'specialsettings' => array(
'style' => 'align-top',
- 'label' => $lng['admin']['ownvhostsettings'],
- 'desc' => $lng['serversettings']['default_vhostconf']['description'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['ownvhostsettings'],
+ 'desc' => \Froxlor\I18N\Lang::getAll()['serversettings']['default_vhostconf']['description'],
'type' => 'textarea',
'cols' => 60,
'rows' => 12
),
'vhostcontainer_servername_statement' => array(
'visible' => $is_apache,
- 'label' => $lng['admin']['ipsandports']['create_vhostcontainer_servername_statement'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['create_vhostcontainer_servername_statement'],
'type' => 'checkbox',
'values' => array(
array(
- 'label' => $lng['panel']['yes'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
'value' => '1'
)
),
@@ -109,13 +109,13 @@ return array(
)
),
'section_c' => array(
- 'title' => $lng['admin']['ipsandports']['webserverdomainconfig'],
+ 'title' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['webserverdomainconfig'],
'image' => 'icons/ipsports_add.png',
'fields' => array(
'default_vhostconf_domain' => array(
'style' => 'align-top',
- 'label' => $lng['admin']['ipsandports']['default_vhostconf_domain'],
- 'desc' => $lng['serversettings']['default_vhostconf_domain']['description'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['default_vhostconf_domain'],
+ 'desc' => \Froxlor\I18N\Lang::getAll()['serversettings']['default_vhostconf_domain']['description'],
'type' => 'textarea',
'cols' => 60,
'rows' => 12
@@ -123,36 +123,36 @@ return array(
)
),
'section_d' => array(
- 'title' => $lng['admin']['ipsandports']['webserverssldomainconfig'],
+ 'title' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['webserverssldomainconfig'],
'image' => 'icons/ipsports_add.png',
'visible' => (\Froxlor\Settings::Get('system.use_ssl') == 1 ? true : false),
'fields' => array(
'ssl' => array(
- 'label' => $lng['admin']['ipsandports']['enable_ssl'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['enable_ssl'],
'type' => 'checkbox',
'values' => array(
array(
- 'label' => $lng['panel']['yes'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
'value' => '1'
)
),
'value' => array()
),
'ssl_cert_file' => array(
- 'label' => $lng['admin']['ipsandports']['ssl_cert_file'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['ssl_cert_file'],
'type' => 'text'
),
'ssl_key_file' => array(
- 'label' => $lng['admin']['ipsandports']['ssl_key_file'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['ssl_key_file'],
'type' => 'text'
),
'ssl_ca_file' => array(
- 'label' => $lng['admin']['ipsandports']['ssl_ca_file'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['ssl_ca_file'],
'type' => 'text'
),
'ssl_cert_chainfile' => array(
- 'label' => $lng['admin']['ipsandports']['ssl_cert_chainfile']['title'],
- 'desc' => $lng['admin']['ipsandports']['ssl_cert_chainfile']['description'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['ssl_cert_chainfile']['title'],
+ 'desc' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['ssl_cert_chainfile']['description'],
'type' => 'text'
)
)
diff --git a/lib/formfields/admin/ipsandports/formfield.ipsandports_edit.php b/lib/formfields/admin/ipsandports/formfield.ipsandports_edit.php
index efa5161b..6fa845f1 100644
--- a/lib/formfields/admin/ipsandports/formfield.ipsandports_edit.php
+++ b/lib/formfields/admin/ipsandports/formfield.ipsandports_edit.php
@@ -16,20 +16,20 @@
*/
return array(
'ipsandports_edit' => array(
- 'title' => $lng['admin']['ipsandports']['edit'],
+ 'title' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['edit'],
'image' => 'icons/ipsports_edit.png',
'sections' => array(
'section_a' => array(
- 'title' => $lng['admin']['ipsandports']['ipandport'],
+ 'title' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['ipandport'],
'image' => 'icons/ipsports_add.png',
'fields' => array(
'ip' => array(
- 'label' => $lng['admin']['ipsandports']['ip'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['ip'],
'type' => 'text',
'value' => $result['ip']
),
'port' => array(
- 'label' => $lng['admin']['ipsandports']['port'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['port'],
'type' => 'text',
'value' => $result['port'],
'size' => 5
@@ -37,16 +37,16 @@ return array(
)
),
'section_b' => array(
- 'title' => $lng['admin']['ipsandports']['webserverdefaultconfig'],
+ 'title' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['webserverdefaultconfig'],
'image' => 'icons/ipsports_edit.png',
'fields' => array(
'listen_statement' => array(
'visible' => ! $is_nginx,
- 'label' => $lng['admin']['ipsandports']['create_listen_statement'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['create_listen_statement'],
'type' => 'checkbox',
'values' => array(
array(
- 'label' => $lng['panel']['yes'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
'value' => '1'
)
),
@@ -56,11 +56,11 @@ return array(
),
'namevirtualhost_statement' => array(
'visible' => $is_apache && ! $is_apache24,
- 'label' => $lng['admin']['ipsandports']['create_namevirtualhost_statement'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['create_namevirtualhost_statement'],
'type' => 'checkbox',
'values' => array(
array(
- 'label' => $lng['panel']['yes'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
'value' => '1'
)
),
@@ -69,11 +69,11 @@ return array(
)
),
'vhostcontainer' => array(
- 'label' => $lng['admin']['ipsandports']['create_vhostcontainer'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['create_vhostcontainer'],
'type' => 'checkbox',
'values' => array(
array(
- 'label' => $lng['panel']['yes'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
'value' => '1'
)
),
@@ -82,15 +82,15 @@ return array(
)
),
'docroot' => array(
- 'label' => $lng['admin']['ipsandports']['docroot']['title'],
- 'desc' => $lng['admin']['ipsandports']['docroot']['description'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['docroot']['title'],
+ 'desc' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['docroot']['description'],
'type' => 'text',
'value' => $result['docroot']
),
'specialsettings' => array(
'style' => 'align-top',
- 'label' => $lng['admin']['ownvhostsettings'],
- 'desc' => $lng['serversettings']['default_vhostconf']['description'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['ownvhostsettings'],
+ 'desc' => \Froxlor\I18N\Lang::getAll()['serversettings']['default_vhostconf']['description'],
'type' => 'textarea',
'cols' => 60,
'rows' => 12,
@@ -98,11 +98,11 @@ return array(
),
'vhostcontainer_servername_statement' => array(
'visible' => $is_apache,
- 'label' => $lng['admin']['ipsandports']['create_vhostcontainer_servername_statement'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['create_vhostcontainer_servername_statement'],
'type' => 'checkbox',
'values' => array(
array(
- 'label' => $lng['panel']['yes'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
'value' => '1'
)
),
@@ -113,13 +113,13 @@ return array(
)
),
'section_c' => array(
- 'title' => $lng['admin']['ipsandports']['webserverdomainconfig'],
+ 'title' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['webserverdomainconfig'],
'image' => 'icons/ipsports_edit.png',
'fields' => array(
'default_vhostconf_domain' => array(
'style' => 'align-top',
- 'label' => $lng['admin']['ipsandports']['default_vhostconf_domain'],
- 'desc' => $lng['serversettings']['default_vhostconf_domain']['description'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['default_vhostconf_domain'],
+ 'desc' => \Froxlor\I18N\Lang::getAll()['serversettings']['default_vhostconf_domain']['description'],
'type' => 'textarea',
'cols' => 60,
'rows' => 12,
@@ -128,16 +128,16 @@ return array(
)
),
'section_d' => array(
- 'title' => $lng['admin']['ipsandports']['webserverssldomainconfig'],
+ 'title' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['webserverssldomainconfig'],
'image' => 'icons/ipsports_edit.png',
'visible' => (\Froxlor\Settings::Get('system.use_ssl') == 1 ? true : false),
'fields' => array(
'ssl' => array(
- 'label' => $lng['admin']['ipsandports']['enable_ssl'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['enable_ssl'],
'type' => 'checkbox',
'values' => array(
array(
- 'label' => $lng['panel']['yes'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
'value' => '1'
)
),
@@ -146,23 +146,23 @@ return array(
)
),
'ssl_cert_file' => array(
- 'label' => $lng['admin']['ipsandports']['ssl_cert_file'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['ssl_cert_file'],
'type' => 'text',
'value' => $result['ssl_cert_file']
),
'ssl_key_file' => array(
- 'label' => $lng['admin']['ipsandports']['ssl_key_file'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['ssl_key_file'],
'type' => 'text',
'value' => $result['ssl_key_file']
),
'ssl_ca_file' => array(
- 'label' => $lng['admin']['ipsandports']['ssl_ca_file'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['ssl_ca_file'],
'type' => 'text',
'value' => $result['ssl_ca_file']
),
'ssl_cert_chainfile' => array(
- 'label' => $lng['admin']['ipsandports']['ssl_cert_chainfile']['title'],
- 'desc' => $lng['admin']['ipsandports']['ssl_cert_chainfile']['description'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['ssl_cert_chainfile']['title'],
+ 'desc' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['ssl_cert_chainfile']['description'],
'type' => 'text',
'value' => $result['ssl_cert_chainfile']
)
diff --git a/lib/formfields/admin/phpconfig/formfield.fpmconfig_add.php b/lib/formfields/admin/phpconfig/formfield.fpmconfig_add.php
index b2074877..18387f9e 100644
--- a/lib/formfields/admin/phpconfig/formfield.fpmconfig_add.php
+++ b/lib/formfields/admin/phpconfig/formfield.fpmconfig_add.php
@@ -16,74 +16,74 @@
*/
return array(
'fpmconfig_add' => array(
- 'title' => $lng['admin']['phpsettings']['addsettings'],
+ 'title' => \Froxlor\I18N\Lang::getAll()['admin']['phpsettings']['addsettings'],
'image' => 'icons/phpsettings_add.png',
'sections' => array(
'section_a' => array(
- 'title' => $lng['admin']['phpsettings']['addsettings'],
+ 'title' => \Froxlor\I18N\Lang::getAll()['admin']['phpsettings']['addsettings'],
'image' => 'icons/phpsettings_add.png',
'fields' => array(
'description' => array(
- 'label' => $lng['admin']['phpsettings']['description'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['phpsettings']['description'],
'type' => 'text',
'maxlength' => 50
),
'reload_cmd' => array(
- 'label' => $lng['serversettings']['phpfpm_settings']['reload'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['reload'],
'type' => 'text',
'maxlength' => 255,
'value' => 'service php7.0-fpm restart'
),
'config_dir' => array(
- 'label' => $lng['serversettings']['phpfpm_settings']['configdir'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['configdir'],
'type' => 'text',
'maxlength' => 255,
'value' => '/etc/php/7.0/fpm/pool.d/'
),
'pm' => array(
- 'label' => $lng['serversettings']['phpfpm_settings']['pm'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['pm'],
'type' => 'select',
'select_var' => $pm_select
),
'max_children' => array(
- 'label' => $lng['serversettings']['phpfpm_settings']['max_children']['title'],
- 'desc' => $lng['serversettings']['phpfpm_settings']['max_children']['description'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['max_children']['title'],
+ 'desc' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['max_children']['description'],
'type' => 'int',
'value' => 1
),
'start_servers' => array(
- 'label' => $lng['serversettings']['phpfpm_settings']['start_servers']['title'],
- 'desc' => $lng['serversettings']['phpfpm_settings']['start_servers']['description'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['start_servers']['title'],
+ 'desc' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['start_servers']['description'],
'type' => 'int',
'value' => 20
),
'min_spare_servers' => array(
- 'label' => $lng['serversettings']['phpfpm_settings']['min_spare_servers']['title'],
- 'desc' => $lng['serversettings']['phpfpm_settings']['min_spare_servers']['description'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['min_spare_servers']['title'],
+ 'desc' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['min_spare_servers']['description'],
'type' => 'int',
'value' => 5
),
'max_spare_servers' => array(
- 'label' => $lng['serversettings']['phpfpm_settings']['max_spare_servers']['title'],
- 'desc' => $lng['serversettings']['phpfpm_settings']['max_spare_servers']['description'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['max_spare_servers']['title'],
+ 'desc' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['max_spare_servers']['description'],
'type' => 'int',
'value' => 35
),
'max_requests' => array(
- 'label' => $lng['serversettings']['phpfpm_settings']['max_requests']['title'],
- 'desc' => $lng['serversettings']['phpfpm_settings']['max_requests']['description'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['max_requests']['title'],
+ 'desc' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['max_requests']['description'],
'type' => 'int',
'value' => 0
),
'idle_timeout' => array(
- 'label' => $lng['serversettings']['phpfpm_settings']['idle_timeout']['title'],
- 'desc' => $lng['serversettings']['phpfpm_settings']['idle_timeout']['description'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['idle_timeout']['title'],
+ 'desc' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['idle_timeout']['description'],
'type' => 'int',
'value' => 30
),
'limit_extensions' => array(
- 'label' => $lng['serversettings']['phpfpm_settings']['limit_extensions']['title'],
- 'desc' => $lng['serversettings']['phpfpm_settings']['limit_extensions']['description'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['limit_extensions']['title'],
+ 'desc' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['limit_extensions']['description'],
'type' => 'text',
'value' => '.php'
)
diff --git a/lib/formfields/admin/phpconfig/formfield.fpmconfig_edit.php b/lib/formfields/admin/phpconfig/formfield.fpmconfig_edit.php
index 01209b21..aa7ed0bf 100644
--- a/lib/formfields/admin/phpconfig/formfield.fpmconfig_edit.php
+++ b/lib/formfields/admin/phpconfig/formfield.fpmconfig_edit.php
@@ -16,75 +16,75 @@
*/
return array(
'fpmconfig_edit' => array(
- 'title' => $lng['admin']['phpsettings']['editsettings'],
+ 'title' => \Froxlor\I18N\Lang::getAll()['admin']['phpsettings']['editsettings'],
'image' => 'icons/phpsettings_edit.png',
'sections' => array(
'section_a' => array(
- 'title' => $lng['admin']['phpsettings']['editsettings'],
+ 'title' => \Froxlor\I18N\Lang::getAll()['admin']['phpsettings']['editsettings'],
'image' => 'icons/phpsettings_edit.png',
'fields' => array(
'description' => array(
- 'label' => $lng['admin']['phpsettings']['description'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['phpsettings']['description'],
'type' => 'text',
'maxlength' => 50,
'value' => $result['description']
),
'reload_cmd' => array(
- 'label' => $lng['serversettings']['phpfpm_settings']['reload'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['reload'],
'type' => 'text',
'maxlength' => 255,
'value' => $result['reload_cmd']
),
'config_dir' => array(
- 'label' => $lng['serversettings']['phpfpm_settings']['configdir'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['configdir'],
'type' => 'text',
'maxlength' => 255,
'value' => $result['config_dir']
),
'pm' => array(
- 'label' => $lng['serversettings']['phpfpm_settings']['pm'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['pm'],
'type' => 'select',
'select_var' => $pm_select
),
'max_children' => array(
- 'label' => $lng['serversettings']['phpfpm_settings']['max_children']['title'],
- 'desc' => $lng['serversettings']['phpfpm_settings']['max_children']['description'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['max_children']['title'],
+ 'desc' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['max_children']['description'],
'type' => 'int',
'value' => $result['max_children']
),
'start_servers' => array(
- 'label' => $lng['serversettings']['phpfpm_settings']['start_servers']['title'],
- 'desc' => $lng['serversettings']['phpfpm_settings']['start_servers']['description'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['start_servers']['title'],
+ 'desc' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['start_servers']['description'],
'type' => 'int',
'value' => $result['start_servers']
),
'min_spare_servers' => array(
- 'label' => $lng['serversettings']['phpfpm_settings']['min_spare_servers']['title'],
- 'desc' => $lng['serversettings']['phpfpm_settings']['min_spare_servers']['description'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['min_spare_servers']['title'],
+ 'desc' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['min_spare_servers']['description'],
'type' => 'int',
'value' => $result['min_spare_servers']
),
'max_spare_servers' => array(
- 'label' => $lng['serversettings']['phpfpm_settings']['max_spare_servers']['title'],
- 'desc' => $lng['serversettings']['phpfpm_settings']['max_spare_servers']['description'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['max_spare_servers']['title'],
+ 'desc' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['max_spare_servers']['description'],
'type' => 'int',
'value' => $result['max_spare_servers']
),
'max_requests' => array(
- 'label' => $lng['serversettings']['phpfpm_settings']['max_requests']['title'],
- 'desc' => $lng['serversettings']['phpfpm_settings']['max_requests']['description'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['max_requests']['title'],
+ 'desc' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['max_requests']['description'],
'type' => 'int',
'value' => $result['max_requests']
),
'idle_timeout' => array(
- 'label' => $lng['serversettings']['phpfpm_settings']['idle_timeout']['title'],
- 'desc' => $lng['serversettings']['phpfpm_settings']['idle_timeout']['description'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['idle_timeout']['title'],
+ 'desc' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['idle_timeout']['description'],
'type' => 'int',
'value' => $result['idle_timeout']
),
'limit_extensions' => array(
- 'label' => $lng['serversettings']['phpfpm_settings']['limit_extensions']['title'],
- 'desc' => $lng['serversettings']['phpfpm_settings']['limit_extensions']['description'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['limit_extensions']['title'],
+ 'desc' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['limit_extensions']['description'],
'type' => 'text',
'value' => $result['limit_extensions']
)
diff --git a/lib/formfields/admin/phpconfig/formfield.phpconfig_add.php b/lib/formfields/admin/phpconfig/formfield.phpconfig_add.php
index 4c032912..53b5b724 100644
--- a/lib/formfields/admin/phpconfig/formfield.phpconfig_add.php
+++ b/lib/formfields/admin/phpconfig/formfield.phpconfig_add.php
@@ -16,63 +16,63 @@
*/
return array(
'phpconfig_add' => array(
- 'title' => $lng['admin']['phpsettings']['addsettings'],
+ 'title' => \Froxlor\I18N\Lang::getAll()['admin']['phpsettings']['addsettings'],
'image' => 'icons/phpsettings_add.png',
'sections' => array(
'section_a' => array(
- 'title' => $lng['admin']['phpsettings']['addsettings'],
+ 'title' => \Froxlor\I18N\Lang::getAll()['admin']['phpsettings']['addsettings'],
'image' => 'icons/phpsettings_add.png',
'fields' => array(
'description' => array(
- 'label' => $lng['admin']['phpsettings']['description'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['phpsettings']['description'],
'type' => 'text',
'maxlength' => 50
),
'binary' => array(
'visible' => (\Froxlor\Settings::Get('system.mod_fcgid') == 1 ? true : false),
- 'label' => $lng['admin']['phpsettings']['binary'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['phpsettings']['binary'],
'type' => 'text',
'maxlength' => 255,
'value' => '/usr/bin/php-cgi'
),
'fpmconfig' => array(
'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false),
- 'label' => $lng['admin']['phpsettings']['fpmdesc'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['phpsettings']['fpmdesc'],
'type' => 'select',
'select_var' => $fpmconfigs
),
'file_extensions' => array(
'visible' => (\Froxlor\Settings::Get('system.mod_fcgid') == 1 ? true : false),
- 'label' => $lng['admin']['phpsettings']['file_extensions'],
- 'desc' => $lng['admin']['phpsettings']['file_extensions_note'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['phpsettings']['file_extensions'],
+ 'desc' => \Froxlor\I18N\Lang::getAll()['admin']['phpsettings']['file_extensions_note'],
'type' => 'text',
'maxlength' => 255,
'value' => 'php'
),
'mod_fcgid_starter' => array(
'visible' => (\Froxlor\Settings::Get('system.mod_fcgid') == 1 ? true : false),
- 'label' => $lng['admin']['mod_fcgid_starter']['title'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['mod_fcgid_starter']['title'],
'type' => 'text'
),
'mod_fcgid_maxrequests' => array(
'visible' => (\Froxlor\Settings::Get('system.mod_fcgid') == 1 ? true : false),
- 'label' => $lng['admin']['mod_fcgid_maxrequests']['title'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['mod_fcgid_maxrequests']['title'],
'type' => 'text'
),
'mod_fcgid_umask' => array(
'visible' => (\Froxlor\Settings::Get('system.mod_fcgid') == 1 ? true : false),
- 'label' => $lng['admin']['mod_fcgid_umask']['title'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['mod_fcgid_umask']['title'],
'type' => 'text',
'maxlength' => 3,
'value' => '022'
),
'phpfpm_enable_slowlog' => array(
'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false),
- 'label' => $lng['admin']['phpsettings']['enable_slowlog'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['phpsettings']['enable_slowlog'],
'type' => 'checkbox',
'values' => array(
array(
- 'label' => $lng['panel']['yes'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
'value' => '1'
)
),
@@ -80,25 +80,25 @@ return array(
),
'phpfpm_reqtermtimeout' => array(
'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false),
- 'label' => $lng['admin']['phpsettings']['request_terminate_timeout'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['phpsettings']['request_terminate_timeout'],
'type' => 'text',
'maxlength' => 10,
'value' => '60s'
),
'phpfpm_reqslowtimeout' => array(
'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false),
- 'label' => $lng['admin']['phpsettings']['request_slowlog_timeout'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['phpsettings']['request_slowlog_timeout'],
'type' => 'text',
'maxlength' => 10,
'value' => '5s'
),
'phpfpm_pass_authorizationheader' => array(
'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false),
- 'label' => $lng['admin']['phpsettings']['pass_authorizationheader'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['phpsettings']['pass_authorizationheader'],
'type' => 'checkbox',
'values' => array(
array(
- 'label' => $lng['panel']['yes'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
'value' => '1'
)
),
@@ -106,11 +106,11 @@ return array(
),
'override_fpmconfig' => array(
'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false),
- 'label' => $lng['serversettings']['phpfpm_settings']['override_fpmconfig'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['override_fpmconfig'],
'type' => 'checkbox',
'values' => array(
array(
- 'label' => $lng['panel']['yes'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
'value' => '1'
)
),
@@ -118,63 +118,63 @@ return array(
),
'pm' => array(
'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false),
- 'label' => $lng['serversettings']['phpfpm_settings']['pm'],
- 'desc' => $lng['serversettings']['phpfpm_settings']['override_fpmconfig_addinfo'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['pm'],
+ 'desc' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['override_fpmconfig_addinfo'],
'type' => 'select',
'select_var' => $pm_select
),
'max_children' => array(
'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false),
- 'label' => $lng['serversettings']['phpfpm_settings']['max_children']['title'],
- 'desc' => $lng['serversettings']['phpfpm_settings']['max_children']['description'] . $lng['serversettings']['phpfpm_settings']['override_fpmconfig_addinfo'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['max_children']['title'],
+ 'desc' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['max_children']['description'] . \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['override_fpmconfig_addinfo'],
'type' => 'int',
'value' => 1
),
'start_servers' => array(
'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false),
- 'label' => $lng['serversettings']['phpfpm_settings']['start_servers']['title'],
- 'desc' => $lng['serversettings']['phpfpm_settings']['start_servers']['description'] . $lng['serversettings']['phpfpm_settings']['override_fpmconfig_addinfo'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['start_servers']['title'],
+ 'desc' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['start_servers']['description'] . \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['override_fpmconfig_addinfo'],
'type' => 'int',
'value' => 20
),
'min_spare_servers' => array(
'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false),
- 'label' => $lng['serversettings']['phpfpm_settings']['min_spare_servers']['title'],
- 'desc' => $lng['serversettings']['phpfpm_settings']['min_spare_servers']['description'] . $lng['serversettings']['phpfpm_settings']['override_fpmconfig_addinfo'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['min_spare_servers']['title'],
+ 'desc' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['min_spare_servers']['description'] . \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['override_fpmconfig_addinfo'],
'type' => 'int',
'value' => 5
),
'max_spare_servers' => array(
'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false),
- 'label' => $lng['serversettings']['phpfpm_settings']['max_spare_servers']['title'],
- 'desc' => $lng['serversettings']['phpfpm_settings']['max_spare_servers']['description'] . $lng['serversettings']['phpfpm_settings']['override_fpmconfig_addinfo'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['max_spare_servers']['title'],
+ 'desc' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['max_spare_servers']['description'] . \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['override_fpmconfig_addinfo'],
'type' => 'int',
'value' => 35
),
'max_requests' => array(
'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false),
- 'label' => $lng['serversettings']['phpfpm_settings']['max_requests']['title'],
- 'desc' => $lng['serversettings']['phpfpm_settings']['max_requests']['description'] . $lng['serversettings']['phpfpm_settings']['override_fpmconfig_addinfo'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['max_requests']['title'],
+ 'desc' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['max_requests']['description'] . \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['override_fpmconfig_addinfo'],
'type' => 'int',
'value' => 0
),
'idle_timeout' => array(
'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false),
- 'label' => $lng['serversettings']['phpfpm_settings']['idle_timeout']['title'],
- 'desc' => $lng['serversettings']['phpfpm_settings']['idle_timeout']['description'] . $lng['serversettings']['phpfpm_settings']['override_fpmconfig_addinfo'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['idle_timeout']['title'],
+ 'desc' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['idle_timeout']['description'] . \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['override_fpmconfig_addinfo'],
'type' => 'int',
'value' => 30
),
'limit_extensions' => array(
'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false),
- 'label' => $lng['serversettings']['phpfpm_settings']['limit_extensions']['title'],
- 'desc' => $lng['serversettings']['phpfpm_settings']['limit_extensions']['description'] . $lng['serversettings']['phpfpm_settings']['override_fpmconfig_addinfo'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['limit_extensions']['title'],
+ 'desc' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['limit_extensions']['description'] . \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['override_fpmconfig_addinfo'],
'type' => 'text',
'value' => '.php'
),
'phpsettings' => array(
'style' => 'align-top',
- 'label' => $lng['admin']['phpsettings']['phpinisettings'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['phpsettings']['phpinisettings'],
'type' => 'textarea',
'cols' => 80,
'rows' => 20,
diff --git a/lib/formfields/admin/phpconfig/formfield.phpconfig_edit.php b/lib/formfields/admin/phpconfig/formfield.phpconfig_edit.php
index ef6acff5..200adeaa 100644
--- a/lib/formfields/admin/phpconfig/formfield.phpconfig_edit.php
+++ b/lib/formfields/admin/phpconfig/formfield.phpconfig_edit.php
@@ -16,66 +16,66 @@
*/
return array(
'phpconfig_edit' => array(
- 'title' => $lng['admin']['phpsettings']['editsettings'],
+ 'title' => \Froxlor\I18N\Lang::getAll()['admin']['phpsettings']['editsettings'],
'image' => 'icons/phpsettings_edit.png',
'sections' => array(
'section_a' => array(
- 'title' => $lng['admin']['phpsettings']['editsettings'],
+ 'title' => \Froxlor\I18N\Lang::getAll()['admin']['phpsettings']['editsettings'],
'image' => 'icons/phpsettings_edit.png',
'fields' => array(
'description' => array(
- 'label' => $lng['admin']['phpsettings']['description'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['phpsettings']['description'],
'type' => 'text',
'maxlength' => 50,
'value' => $result['description']
),
'binary' => array(
'visible' => (\Froxlor\Settings::Get('system.mod_fcgid') == 1 ? true : false),
- 'label' => $lng['admin']['phpsettings']['binary'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['phpsettings']['binary'],
'type' => 'text',
'maxlength' => 255,
'value' => $result['binary']
),
'fpmconfig' => array(
'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false),
- 'label' => $lng['admin']['phpsettings']['fpmdesc'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['phpsettings']['fpmdesc'],
'type' => 'select',
'select_var' => $fpmconfigs
),
'file_extensions' => array(
'visible' => (\Froxlor\Settings::Get('system.mod_fcgid') == 1 ? true : false),
- 'label' => $lng['admin']['phpsettings']['file_extensions'],
- 'desc' => $lng['admin']['phpsettings']['file_extensions_note'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['phpsettings']['file_extensions'],
+ 'desc' => \Froxlor\I18N\Lang::getAll()['admin']['phpsettings']['file_extensions_note'],
'type' => 'text',
'maxlength' => 255,
'value' => $result['file_extensions']
),
'mod_fcgid_starter' => array(
'visible' => (\Froxlor\Settings::Get('system.mod_fcgid') == 1 ? true : false),
- 'label' => $lng['admin']['mod_fcgid_starter']['title'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['mod_fcgid_starter']['title'],
'type' => 'text',
'value' => ((int) $result['mod_fcgid_starter'] != - 1 ? $result['mod_fcgid_starter'] : '')
),
'mod_fcgid_maxrequests' => array(
'visible' => (\Froxlor\Settings::Get('system.mod_fcgid') == 1 ? true : false),
- 'label' => $lng['admin']['mod_fcgid_maxrequests']['title'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['mod_fcgid_maxrequests']['title'],
'type' => 'text',
'value' => ((int) $result['mod_fcgid_maxrequests'] != - 1 ? $result['mod_fcgid_maxrequests'] : '')
),
'mod_fcgid_umask' => array(
'visible' => (\Froxlor\Settings::Get('system.mod_fcgid') == 1 ? true : false),
- 'label' => $lng['admin']['mod_fcgid_umask']['title'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['mod_fcgid_umask']['title'],
'type' => 'text',
'maxlength' => 3,
'value' => $result['mod_fcgid_umask']
),
'phpfpm_enable_slowlog' => array(
'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false),
- 'label' => $lng['admin']['phpsettings']['enable_slowlog'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['phpsettings']['enable_slowlog'],
'type' => 'checkbox',
'values' => array(
array(
- 'label' => $lng['panel']['yes'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
'value' => '1'
)
),
@@ -85,25 +85,25 @@ return array(
),
'phpfpm_reqtermtimeout' => array(
'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false),
- 'label' => $lng['admin']['phpsettings']['request_terminate_timeout'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['phpsettings']['request_terminate_timeout'],
'type' => 'text',
'maxlength' => 10,
'value' => $result['fpm_reqterm']
),
'phpfpm_reqslowtimeout' => array(
'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false),
- 'label' => $lng['admin']['phpsettings']['request_slowlog_timeout'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['phpsettings']['request_slowlog_timeout'],
'type' => 'text',
'maxlength' => 10,
'value' => $result['fpm_reqslow']
),
'phpfpm_pass_authorizationheader' => array(
'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false),
- 'label' => $lng['admin']['phpsettings']['pass_authorizationheader'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['phpsettings']['pass_authorizationheader'],
'type' => 'checkbox',
'values' => array(
array(
- 'label' => $lng['panel']['yes'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
'value' => '1'
)
),
@@ -112,11 +112,11 @@ return array(
)
),
'override_fpmconfig' => array(
- 'label' => $lng['serversettings']['phpfpm_settings']['override_fpmconfig'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['override_fpmconfig'],
'type' => 'checkbox',
'values' => array(
array(
- 'label' => $lng['panel']['yes'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
'value' => '1'
)
),
@@ -126,63 +126,63 @@ return array(
),
'pm' => array(
'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false),
- 'label' => $lng['serversettings']['phpfpm_settings']['pm'],
- 'desc' => $lng['serversettings']['phpfpm_settings']['override_fpmconfig_addinfo'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['pm'],
+ 'desc' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['override_fpmconfig_addinfo'],
'type' => 'select',
'select_var' => $pm_select
),
'max_children' => array(
'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false),
- 'label' => $lng['serversettings']['phpfpm_settings']['max_children']['title'],
- 'desc' => $lng['serversettings']['phpfpm_settings']['max_children']['description'] . $lng['serversettings']['phpfpm_settings']['override_fpmconfig_addinfo'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['max_children']['title'],
+ 'desc' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['max_children']['description'] . \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['override_fpmconfig_addinfo'],
'type' => 'int',
'value' => $result['max_children']
),
'start_servers' => array(
'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false),
- 'label' => $lng['serversettings']['phpfpm_settings']['start_servers']['title'],
- 'desc' => $lng['serversettings']['phpfpm_settings']['start_servers']['description'] . $lng['serversettings']['phpfpm_settings']['override_fpmconfig_addinfo'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['start_servers']['title'],
+ 'desc' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['start_servers']['description'] . \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['override_fpmconfig_addinfo'],
'type' => 'int',
'value' => $result['start_servers']
),
'min_spare_servers' => array(
'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false),
- 'label' => $lng['serversettings']['phpfpm_settings']['min_spare_servers']['title'],
- 'desc' => $lng['serversettings']['phpfpm_settings']['min_spare_servers']['description'] . $lng['serversettings']['phpfpm_settings']['override_fpmconfig_addinfo'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['min_spare_servers']['title'],
+ 'desc' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['min_spare_servers']['description'] . \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['override_fpmconfig_addinfo'],
'type' => 'int',
'value' => $result['min_spare_servers']
),
'max_spare_servers' => array(
'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false),
- 'label' => $lng['serversettings']['phpfpm_settings']['max_spare_servers']['title'],
- 'desc' => $lng['serversettings']['phpfpm_settings']['max_spare_servers']['description'] . $lng['serversettings']['phpfpm_settings']['override_fpmconfig_addinfo'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['max_spare_servers']['title'],
+ 'desc' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['max_spare_servers']['description'] . \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['override_fpmconfig_addinfo'],
'type' => 'int',
'value' => $result['max_spare_servers']
),
'max_requests' => array(
'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false),
- 'label' => $lng['serversettings']['phpfpm_settings']['max_requests']['title'],
- 'desc' => $lng['serversettings']['phpfpm_settings']['max_requests']['description'] . $lng['serversettings']['phpfpm_settings']['override_fpmconfig_addinfo'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['max_requests']['title'],
+ 'desc' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['max_requests']['description'] . \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['override_fpmconfig_addinfo'],
'type' => 'int',
'value' => $result['max_requests']
),
'idle_timeout' => array(
'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false),
- 'label' => $lng['serversettings']['phpfpm_settings']['idle_timeout']['title'],
- 'desc' => $lng['serversettings']['phpfpm_settings']['idle_timeout']['description'] . $lng['serversettings']['phpfpm_settings']['override_fpmconfig_addinfo'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['idle_timeout']['title'],
+ 'desc' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['idle_timeout']['description'] . \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['override_fpmconfig_addinfo'],
'type' => 'int',
'value' => $result['idle_timeout']
),
'limit_extensions' => array(
'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false),
- 'label' => $lng['serversettings']['phpfpm_settings']['limit_extensions']['title'],
- 'desc' => $lng['serversettings']['phpfpm_settings']['limit_extensions']['description'] . $lng['serversettings']['phpfpm_settings']['override_fpmconfig_addinfo'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['limit_extensions']['title'],
+ 'desc' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['limit_extensions']['description'] . \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['override_fpmconfig_addinfo'],
'type' => 'text',
'value' => $result['limit_extensions']
),
'phpsettings' => array(
'style' => 'align-top',
- 'label' => $lng['admin']['phpsettings']['phpinisettings'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['phpsettings']['phpinisettings'],
'type' => 'textarea',
'cols' => 80,
'rows' => 20,
diff --git a/lib/formfields/admin/plans/formfield.plans_add.php b/lib/formfields/admin/plans/formfield.plans_add.php
index 7228ba32..15572423 100644
--- a/lib/formfields/admin/plans/formfield.plans_add.php
+++ b/lib/formfields/admin/plans/formfield.plans_add.php
@@ -16,19 +16,19 @@
*/
return array(
'plans_add' => array(
- 'title' => $lng['admin']['plans']['add'],
+ 'title' => \Froxlor\I18N\Lang::getAll()['admin']['plans']['add'],
'image' => 'icons/templates_add_big.png',
'sections' => array(
'section_a' => array(
- 'title' => $lng['admin']['plans']['plan_details'],
+ 'title' => \Froxlor\I18N\Lang::getAll()['admin']['plans']['plan_details'],
'image' => 'icons/templates_add_big.png',
'fields' => array(
'name' => array(
- 'label' => $lng['admin']['plans']['name'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['plans']['name'],
'type' => 'text'
),
'description' => array(
- 'label' => $lng['admin']['plans']['description'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['plans']['description'],
'type' => 'textarea',
'cols' => 60,
'rows' => 12
diff --git a/lib/formfields/admin/plans/formfield.plans_edit.php b/lib/formfields/admin/plans/formfield.plans_edit.php
index 5efb6b2c..7a59db2c 100644
--- a/lib/formfields/admin/plans/formfield.plans_edit.php
+++ b/lib/formfields/admin/plans/formfield.plans_edit.php
@@ -16,20 +16,20 @@
*/
return array(
'plans_edit' => array(
- 'title' => $lng['admin']['plans']['edit'],
+ 'title' => \Froxlor\I18N\Lang::getAll()['admin']['plans']['edit'],
'image' => 'icons/templates_edit_big.png',
'sections' => array(
'section_a' => array(
- 'title' => $lng['admin']['plans']['plan_details'],
+ 'title' => \Froxlor\I18N\Lang::getAll()['admin']['plans']['plan_details'],
'image' => 'icons/templates_edit_big.png',
'fields' => array(
'name' => array(
- 'label' => $lng['admin']['plans']['name'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['plans']['name'],
'type' => 'text',
'value' => $result['name']
),
'description' => array(
- 'label' => $lng['admin']['plans']['description'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['plans']['description'],
'type' => 'textarea',
'cols' => 60,
'rows' => 12,
diff --git a/lib/formfields/admin/templates/formfield.filetemplate_add.php b/lib/formfields/admin/templates/formfield.filetemplate_add.php
index ace5c880..37cb9ec8 100644
--- a/lib/formfields/admin/templates/formfield.filetemplate_add.php
+++ b/lib/formfields/admin/templates/formfield.filetemplate_add.php
@@ -16,20 +16,20 @@
*/
return array(
'filetemplate_add' => array(
- 'title' => $lng['admin']['templates']['template_add'],
+ 'title' => \Froxlor\I18N\Lang::getAll()['admin']['templates']['template_add'],
'image' => 'icons/templates_add.png',
'sections' => array(
'section_a' => array(
- 'title' => $lng['admin']['templates']['template_add'],
+ 'title' => \Froxlor\I18N\Lang::getAll()['admin']['templates']['template_add'],
'image' => 'icons/templates_add.png',
'fields' => array(
'template' => array(
- 'label' => $lng['admin']['templates']['action'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['templates']['action'],
'type' => 'select',
'select_var' => $free_templates
),
'filecontent' => array(
- 'label' => $lng['admin']['templates']['filecontent'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['templates']['filecontent'],
'type' => 'textarea',
'cols' => 60,
'rows' => 12
diff --git a/lib/formfields/admin/templates/formfield.filetemplate_edit.php b/lib/formfields/admin/templates/formfield.filetemplate_edit.php
index 91d6885b..744de7f0 100644
--- a/lib/formfields/admin/templates/formfield.filetemplate_edit.php
+++ b/lib/formfields/admin/templates/formfield.filetemplate_edit.php
@@ -16,21 +16,21 @@
*/
return array(
'filetemplate_edit' => array(
- 'title' => $lng['admin']['templates']['template_edit'],
+ 'title' => \Froxlor\I18N\Lang::getAll()['admin']['templates']['template_edit'],
'image' => 'icons/templates_edit.png',
'sections' => array(
'section_a' => array(
- 'title' => $lng['admin']['templates']['template_edit'],
+ 'title' => \Froxlor\I18N\Lang::getAll()['admin']['templates']['template_edit'],
'image' => 'icons/templates_edit.png',
'fields' => array(
'template' => array(
- 'label' => $lng['admin']['templates']['action'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['templates']['action'],
'type' => 'hidden',
- 'value' => $lng['admin']['templates'][$row['varname']],
- 'display' => $lng['admin']['templates'][$row['varname']]
+ 'value' => \Froxlor\I18N\Lang::getAll()['admin']['templates'][$row['varname']],
+ 'display' => \Froxlor\I18N\Lang::getAll()['admin']['templates'][$row['varname']]
),
'filecontent' => array(
- 'label' => $lng['admin']['templates']['filecontent'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['templates']['filecontent'],
'type' => 'textarea',
'cols' => 60,
'rows' => 12,
diff --git a/lib/formfields/admin/templates/formfield.template_add.php b/lib/formfields/admin/templates/formfield.template_add.php
index ce9c277f..b74fc62f 100644
--- a/lib/formfields/admin/templates/formfield.template_add.php
+++ b/lib/formfields/admin/templates/formfield.template_add.php
@@ -16,32 +16,32 @@
*/
return array(
'template_add' => array(
- 'title' => $lng['admin']['templates']['template_add'],
+ 'title' => \Froxlor\I18N\Lang::getAll()['admin']['templates']['template_add'],
'image' => 'icons/templates_add.png',
'sections' => array(
'section_a' => array(
- 'title' => $lng['admin']['templates']['template_add'],
+ 'title' => \Froxlor\I18N\Lang::getAll()['admin']['templates']['template_add'],
'image' => 'icons/templates_add.png',
'fields' => array(
'language' => array(
- 'label' => $lng['login']['language'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['login']['language'],
'type' => 'hidden',
'value' => $language,
'display' => $language
),
'template' => array(
- 'label' => $lng['admin']['templates']['action'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['templates']['action'],
'type' => 'hidden',
'value' => $template,
- 'display' => $lng['admin']['templates'][$template]
+ 'display' => \Froxlor\I18N\Lang::getAll()['admin']['templates'][$template]
),
'subject' => array(
- 'label' => $lng['admin']['templates']['subject'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['templates']['subject'],
'type' => 'text',
'value' => $subject
),
'mailbody' => array(
- 'label' => $lng['admin']['templates']['mailbody'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['templates']['mailbody'],
'type' => 'textarea',
'value' => $body,
'cols' => 60,
diff --git a/lib/formfields/admin/templates/formfield.template_edit.php b/lib/formfields/admin/templates/formfield.template_edit.php
index d6b1c70a..986c5ce4 100644
--- a/lib/formfields/admin/templates/formfield.template_edit.php
+++ b/lib/formfields/admin/templates/formfield.template_edit.php
@@ -16,32 +16,32 @@
*/
return array(
'template_edit' => array(
- 'title' => $lng['admin']['templates']['template_edit'],
+ 'title' => \Froxlor\I18N\Lang::getAll()['admin']['templates']['template_edit'],
'image' => 'icons/templates_edit.png',
'sections' => array(
'section_a' => array(
- 'title' => $lng['admin']['templates']['template_edit'],
+ 'title' => \Froxlor\I18N\Lang::getAll()['admin']['templates']['template_edit'],
'image' => 'icons/templates_edit.png',
'fields' => array(
'language' => array(
- 'label' => $lng['login']['language'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['login']['language'],
'type' => 'hidden',
'value' => $language,
'display' => $language
),
'template' => array(
- 'label' => $lng['admin']['templates']['action'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['templates']['action'],
'type' => 'hidden',
'value' => $template,
'display' => $template
),
'subject' => array(
- 'label' => $lng['admin']['templates']['subject'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['templates']['subject'],
'type' => 'text',
'value' => $subject
),
'mailbody' => array(
- 'label' => $lng['admin']['templates']['mailbody'],
+ 'label' => \Froxlor\I18N\Lang::getAll()['admin']['templates']['mailbody'],
'type' => 'textarea',
'cols' => 60,
'rows' => 12,
diff --git a/lib/formfields/customer/domains/formfield.domain_ssleditor.php b/lib/formfields/customer/domains/formfield.domain_ssleditor.php
index e6a14faa..097f38f8 100644
--- a/lib/formfields/customer/domains/formfield.domain_ssleditor.php
+++ b/lib/formfields/customer/domains/formfield.domain_ssleditor.php
@@ -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,
diff --git a/lib/formfields/customer/domains/formfield.domains_add.php b/lib/formfields/customer/domains/formfield.domains_add.php
index 00d9fca6..e59c29a9 100644
--- a/lib/formfields/customer/domains/formfield.domains_add.php
+++ b/lib/formfields/customer/domains/formfield.domains_add.php
@@ -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'] . '
' . $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'] . '
' . $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'
)
),
diff --git a/lib/formfields/customer/domains/formfield.domains_edit.php b/lib/formfields/customer/domains/formfield.domains_edit.php
index 523d9cc8..fadc4171 100644
--- a/lib/formfields/customer/domains/formfield.domains_edit.php
+++ b/lib/formfields/customer/domains/formfield.domains_edit.php
@@ -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']) ? '
' . $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['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'
)
),
diff --git a/lib/formfields/customer/email/formfield.emails_accountchangepasswd.php b/lib/formfields/customer/email/formfield.emails_accountchangepasswd.php
index cc242aa6..a93f5a7a 100644
--- a/lib/formfields/customer/email/formfield.emails_accountchangepasswd.php
+++ b/lib/formfields/customer/email/formfield.emails_accountchangepasswd.php
@@ -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()
diff --git a/lib/formfields/customer/email/formfield.emails_accountchangequota.php b/lib/formfields/customer/email/formfield.emails_accountchangequota.php
index 90821a66..07a5bfc2 100644
--- a/lib/formfields/customer/email/formfield.emails_accountchangequota.php
+++ b/lib/formfields/customer/email/formfield.emails_accountchangequota.php
@@ -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']
)
diff --git a/lib/formfields/customer/email/formfield.emails_add.php b/lib/formfields/customer/email/formfield.emails_add.php
index 514306ef..5c6c43a5 100644
--- a/lib/formfields/customer/email/formfield.emails_add.php
+++ b/lib/formfields/customer/email/formfield.emails_add.php
@@ -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'
)
),
diff --git a/lib/formfields/customer/email/formfield.emails_addaccount.php b/lib/formfields/customer/email/formfield.emails_addaccount.php
index 111d0dd5..24bb98ba 100644
--- a/lib/formfields/customer/email/formfield.emails_addaccount.php
+++ b/lib/formfields/customer/email/formfield.emails_addaccount.php
@@ -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'
)
)
diff --git a/lib/formfields/customer/email/formfield.emails_addforwarder.php b/lib/formfields/customer/email/formfield.emails_addforwarder.php
index 79cd4f4d..27b27c41 100644
--- a/lib/formfields/customer/email/formfield.emails_addforwarder.php
+++ b/lib/formfields/customer/email/formfield.emails_addforwarder.php
@@ -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'
)
)
diff --git a/lib/formfields/customer/email/formfield.emails_edit.php b/lib/formfields/customer/email/formfield.emails_edit.php
index 6e687681..ac1a8b93 100644
--- a/lib/formfields/customer/email/formfield.emails_edit.php
+++ b/lib/formfields/customer/email/formfield.emails_edit.php
@@ -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'] . ' [' . $lng['menue']['main']['changepassword'] . '] [' . $lng['emails']['account_delete'] . ']'
+ 'value' => \Froxlor\I18N\Lang::getAll()['panel']['yes'] . ' [' . \Froxlor\I18N\Lang::getAll()['menue']['main']['changepassword'] . '] [' . \Froxlor\I18N\Lang::getAll()['emails']['account_delete'] . ']'
),
'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'] . ' [' . $lng['emails']['account_add'] . ']'
+ 'value' => \Froxlor\I18N\Lang::getAll()['panel']['no'] . ' [' . \Froxlor\I18N\Lang::getAll()['emails']['account_add'] . ']'
),
'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 [' . $lng['emails']['quota_edit'] . ']'
+ 'value' => $result['quota'] . ' MiB [' . \Froxlor\I18N\Lang::getAll()['emails']['quota_edit'] . ']'
),
'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']) . ' [' . $lng['panel']['toggle'] . ']'
+ 'value' => ($result['iscatchall'] == 0 ? \Froxlor\I18N\Lang::getAll()['panel']['no'] : \Froxlor\I18N\Lang::getAll()['panel']['yes']) . ' [' . \Froxlor\I18N\Lang::getAll()['panel']['toggle'] . ']'
),
'mail_fwds' => array(
- 'label' => $lng['emails']['forwarders'] . ' (' . $forwarders_count . ')',
+ 'label' => \Froxlor\I18N\Lang::getAll()['emails']['forwarders'] . ' (' . $forwarders_count . ')',
'type' => 'label',
- 'value' => $forwarders . ' ' . $lng['emails']['forwarder_add'] . ''
+ 'value' => $forwarders . ' ' . \Froxlor\I18N\Lang::getAll()['emails']['forwarder_add'] . ''
)
)
)
diff --git a/lib/formfields/customer/extras/formfield.backup.php b/lib/formfields/customer/extras/formfield.backup.php
index 4a756613..c3bef801 100644
--- a/lib/formfields/customer/extras/formfield.backup.php
+++ b/lib/formfields/customer/extras/formfield.backup.php
@@ -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'] . '
' . (\Froxlor\Settings::Get('panel.pathedit') != 'Dropdown' ? $lng['panel']['pathDescription'] : null) . (isset($pathSelect['note']) ? '
' . $pathSelect['value'] : ''),
+ 'label' => \Froxlor\I18N\Lang::getAll()['panel']['backuppath']['title'],
+ 'desc' => \Froxlor\I18N\Lang::getAll()['panel']['backuppath']['description'] . '
' . (\Froxlor\Settings::Get('panel.pathedit') != 'Dropdown' ? \Froxlor\I18N\Lang::getAll()['panel']['pathDescription'] : null) . (isset($pathSelect['note']) ? '
' . $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'
)
),
diff --git a/lib/formfields/customer/extras/formfield.htaccess_add.php b/lib/formfields/customer/extras/formfield.htaccess_add.php
index 87ee8b66..5ba34e6d 100644
--- a/lib/formfields/customer/extras/formfield.htaccess_add.php
+++ b/lib/formfields/customer/extras/formfield.htaccess_add.php
@@ -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']) ? '
' . $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']) ? '
' . $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'
)
),
diff --git a/lib/formfields/customer/extras/formfield.htaccess_edit.php b/lib/formfields/customer/extras/formfield.htaccess_edit.php
index f73f7d93..d9b9d997 100644
--- a/lib/formfields/customer/extras/formfield.htaccess_edit.php
+++ b/lib/formfields/customer/extras/formfield.htaccess_edit.php
@@ -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'
)
),
diff --git a/lib/formfields/customer/extras/formfield.htpasswd_add.php b/lib/formfields/customer/extras/formfield.htpasswd_add.php
index 87a6e5d8..2fa3aeb0 100644
--- a/lib/formfields/customer/extras/formfield.htpasswd_add.php
+++ b/lib/formfields/customer/extras/formfield.htpasswd_add.php
@@ -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']) ? '
' . $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']) ? '
' . $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'
)
)
diff --git a/lib/formfields/customer/extras/formfield.htpasswd_edit.php b/lib/formfields/customer/extras/formfield.htpasswd_edit.php
index 607ef682..14c4f966 100644
--- a/lib/formfields/customer/extras/formfield.htpasswd_edit.php
+++ b/lib/formfields/customer/extras/formfield.htpasswd_edit.php
@@ -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']
)
diff --git a/lib/formfields/customer/ftp/formfield.ftp_add.php b/lib/formfields/customer/ftp/formfield.ftp_add.php
index ded4d0c6..d0a30557 100644
--- a/lib/formfields/customer/ftp/formfield.ftp_add.php
+++ b/lib/formfields/customer/ftp/formfield.ftp_add.php
@@ -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']) ? '
' . $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']) ? '
' . $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 : "")
)
diff --git a/lib/formfields/customer/ftp/formfield.ftp_edit.php b/lib/formfields/customer/ftp/formfield.ftp_edit.php
index 727bd7a7..61ddb9eb 100644
--- a/lib/formfields/customer/ftp/formfield.ftp_edit.php
+++ b/lib/formfields/customer/ftp/formfield.ftp_edit.php
@@ -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']) ? '
' . $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']) ? '
' . $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 : "")
)
diff --git a/lib/formfields/customer/mysql/formfield.mysql_add.php b/lib/formfields/customer/mysql/formfield.mysql_add.php
index 3782fcf8..35d24ee2 100644
--- a/lib/formfields/customer/mysql/formfield.mysql_add.php
+++ b/lib/formfields/customer/mysql/formfield.mysql_add.php
@@ -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'
)
),
diff --git a/lib/formfields/customer/mysql/formfield.mysql_edit.php b/lib/formfields/customer/mysql/formfield.mysql_edit.php
index 4748fa84..904a5ec8 100644
--- a/lib/formfields/customer/mysql/formfield.mysql_edit.php
+++ b/lib/formfields/customer/mysql/formfield.mysql_edit.php
@@ -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()
diff --git a/lib/functions/formfields/function.getFormFieldOutput.php b/lib/functions/formfields/function.getFormFieldOutput.php
index 6b4abac2..455b5482 100644
--- a/lib/functions/formfields/function.getFormFieldOutput.php
+++ b/lib/functions/formfields/function.getFormFieldOutput.php
@@ -18,8 +18,6 @@
*/
function getFormFieldOutput($fieldname, $fielddata)
{
- global $lng;
-
$returnvalue = '';
if (is_array($fielddata) && isset($fielddata['type']) && $fielddata['type'] != '' && function_exists('getFormFieldOutput' . ucfirst($fielddata['type']))) {
if (isset($fielddata['label']) && is_array($fielddata['label'])) {
@@ -49,7 +47,7 @@ function getFormFieldOutput($fieldname, $fielddata)
$websrv = Settings::Get('system.webserver');
if (! in_array($websrv, $fielddata['websrv_avail'])) {
$do_show = false;
- $fielddata['label'] .= sprintf($lng['serversettings']['option_unavailable_websrv'], implode(", ", $fielddata['websrv_avail']));
+ $fielddata['label'] .= sprintf(\Froxlor\I18N\Lang::getAll()['serversettings']['option_unavailable_websrv'], implode(", ", $fielddata['websrv_avail']));
}
}
@@ -59,7 +57,7 @@ function getFormFieldOutput($fieldname, $fielddata)
if (isset($fielddata['visible']) && $do_show) {
$do_show = $fielddata['visible'];
if (! $do_show) {
- $fielddata['label'] .= $lng['serversettings']['option_unavailable'];
+ $fielddata['label'] .= \Froxlor\I18N\Lang::getAll()['serversettings']['option_unavailable'];
}
}
diff --git a/lib/functions/formfields/function.getFormGroupOutput.php b/lib/functions/formfields/function.getFormGroupOutput.php
index e4444394..09c11cc8 100644
--- a/lib/functions/formfields/function.getFormGroupOutput.php
+++ b/lib/functions/formfields/function.getFormGroupOutput.php
@@ -18,14 +18,14 @@
*/
function getFormGroupOutput($groupname, $groupdetails)
{
- global $lng, $theme;
+ global $theme;
eval("\$group = \"" . \Froxlor\UI\Template::getTemplate("settings/settings_group") . "\";");
return $group;
}
function getFormOverviewGroupOutput($groupname, $groupdetails)
{
- global $lng, $filename, $s, $theme;
+ global $filename, $s, $theme;
$group = '';
$title = $groupdetails['title'];
@@ -52,7 +52,7 @@ function getFormOverviewGroupOutput($groupname, $groupdetails)
$option .= '';
$activated = true;
} else {
- $option .= $lng['admin']['activated'] . ': ';
+ $option .= \Froxlor\I18N\Lang::getAll()['admin']['activated'] . ': ';
$option .= \Froxlor\UI\HTML::makeyesno($fieldname, '1', '0', Settings::Get($fielddetails['settinggroup'] . '.' . $fielddetails['varname']));
$activated = (int) Settings::Get($fielddetails['settinggroup'] . '.' . $fielddetails['varname']);
}
@@ -71,7 +71,7 @@ function getFormOverviewGroupOutput($groupname, $groupdetails)
$websrv = Settings::Get('system.webserver');
if (! in_array($websrv, $groupdetails['websrv_avail'])) {
$do_show = false;
- $title .= sprintf($lng['serversettings']['option_unavailable_websrv'], implode(", ", $groupdetails['websrv_avail']));
+ $title .= sprintf(\Froxlor\I18N\Lang::getAll()['serversettings']['option_unavailable_websrv'], implode(", ", $groupdetails['websrv_avail']));
// hack disabled flag into select-box
$option = str_replace('