Revert "refactor global array"

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

View File

@@ -47,7 +47,7 @@ if ($action == 'delete') {
'd2fa' => "", 'd2fa' => "",
'id' => $uid 'id' => $uid
)); ));
\Froxlor\UI\Response::standard_success(\Froxlor\I18N\Lang::getAll()['2fa']['2fa_removed']); \Froxlor\UI\Response::standard_success($lng['2fa']['2fa_removed']);
} elseif ($action == 'add') { } elseif ($action == 'add') {
$type = isset($_POST['type_2fa']) ? $_POST['type_2fa'] : '0'; $type = isset($_POST['type_2fa']) ? $_POST['type_2fa'] : '0';
@@ -63,7 +63,7 @@ if ($action == 'delete') {
'd2fa' => $data, 'd2fa' => $data,
'id' => $uid 'id' => $uid
)); ));
\Froxlor\UI\Response::standard_success(sprintf(\Froxlor\I18N\Lang::getAll()['2fa']['2fa_added'], $filename, $s)); \Froxlor\UI\Response::standard_success(sprintf($lng['2fa']['2fa_added'], $filename, $s));
} }
$log->logAction(USR_ACTION, LOG_NOTICE, "viewed 2fa::overview"); $log->logAction(USR_ACTION, LOG_NOTICE, "viewed 2fa::overview");

View File

@@ -19,12 +19,12 @@
return array( return array(
'groups' => array( 'groups' => array(
'panel' => array( 'panel' => array(
'title' => \Froxlor\I18N\Lang::getAll()['admin']['panelsettings'], 'title' => $lng['admin']['panelsettings'],
'fields' => array( 'fields' => array(
'panel_standardlanguage' => array( 'panel_standardlanguage' => array(
'label' => array( 'label' => array(
'title' => \Froxlor\I18N\Lang::getAll()['login']['language'], 'title' => $lng['login']['language'],
'description' => \Froxlor\I18N\Lang::getAll()['serversettings']['language']['description'] 'description' => $lng['serversettings']['language']['description']
), ),
'settinggroup' => 'panel', 'settinggroup' => 'panel',
'varname' => 'standardlanguage', 'varname' => 'standardlanguage',
@@ -36,8 +36,8 @@ return array(
), ),
'panel_default_theme' => array( 'panel_default_theme' => array(
'label' => array( 'label' => array(
'title' => \Froxlor\I18N\Lang::getAll()['panel']['theme'], 'title' => $lng['panel']['theme'],
'description' => \Froxlor\I18N\Lang::getAll()['serversettings']['default_theme'] 'description' => $lng['serversettings']['default_theme']
), ),
'settinggroup' => 'panel', 'settinggroup' => 'panel',
'varname' => 'default_theme', 'varname' => 'default_theme',
@@ -48,7 +48,7 @@ return array(
'save_method' => 'storeSettingDefaultTheme' 'save_method' => 'storeSettingDefaultTheme'
), ),
'panel_allow_theme_change_customer' => array( 'panel_allow_theme_change_customer' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['panel_allow_theme_change_customer'], 'label' => $lng['serversettings']['panel_allow_theme_change_customer'],
'settinggroup' => 'panel', 'settinggroup' => 'panel',
'varname' => 'allow_theme_change_customer', 'varname' => 'allow_theme_change_customer',
'type' => 'bool', 'type' => 'bool',
@@ -56,7 +56,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'panel_allow_theme_change_admin' => array( 'panel_allow_theme_change_admin' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['panel_allow_theme_change_admin'], 'label' => $lng['serversettings']['panel_allow_theme_change_admin'],
'settinggroup' => 'panel', 'settinggroup' => 'panel',
'varname' => 'allow_theme_change_admin', 'varname' => 'allow_theme_change_admin',
'type' => 'bool', 'type' => 'bool',
@@ -64,7 +64,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'panel_natsorting' => array( 'panel_natsorting' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['natsorting'], 'label' => $lng['serversettings']['natsorting'],
'settinggroup' => 'panel', 'settinggroup' => 'panel',
'varname' => 'natsorting', 'varname' => 'natsorting',
'type' => 'bool', 'type' => 'bool',
@@ -72,7 +72,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'panel_no_robots' => array( 'panel_no_robots' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['no_robots'], 'label' => $lng['serversettings']['no_robots'],
'settinggroup' => 'panel', 'settinggroup' => 'panel',
'varname' => 'no_robots', 'varname' => 'no_robots',
'type' => 'bool', 'type' => 'bool',
@@ -80,7 +80,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'panel_paging' => array( 'panel_paging' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['paging'], 'label' => $lng['serversettings']['paging'],
'settinggroup' => 'panel', 'settinggroup' => 'panel',
'varname' => 'paging', 'varname' => 'paging',
'type' => 'int', 'type' => 'int',
@@ -89,20 +89,20 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'panel_pathedit' => array( 'panel_pathedit' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['pathedit'], 'label' => $lng['serversettings']['pathedit'],
'settinggroup' => 'panel', 'settinggroup' => 'panel',
'varname' => 'pathedit', 'varname' => 'pathedit',
'type' => 'option', 'type' => 'option',
'default' => 'Manual', 'default' => 'Manual',
'option_mode' => 'one', 'option_mode' => 'one',
'option_options' => array( 'option_options' => array(
'Manual' => \Froxlor\I18N\Lang::getAll()['serversettings']['manual'], 'Manual' => $lng['serversettings']['manual'],
'Dropdown' => \Froxlor\I18N\Lang::getAll()['serversettings']['dropdown'] 'Dropdown' => $lng['serversettings']['dropdown']
), ),
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'panel_adminmail' => array( 'panel_adminmail' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['adminmail'], 'label' => $lng['serversettings']['adminmail'],
'settinggroup' => 'panel', 'settinggroup' => 'panel',
'varname' => 'adminmail', 'varname' => 'adminmail',
'type' => 'string', 'type' => 'string',
@@ -112,7 +112,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'panel_adminmail_defname' => array( 'panel_adminmail_defname' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['adminmail_defname'], 'label' => $lng['serversettings']['adminmail_defname'],
'settinggroup' => 'panel', 'settinggroup' => 'panel',
'varname' => 'adminmail_defname', 'varname' => 'adminmail_defname',
'type' => 'string', 'type' => 'string',
@@ -120,7 +120,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'panel_adminmail_return' => array( 'panel_adminmail_return' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['adminmail_return'], 'label' => $lng['serversettings']['adminmail_return'],
'settinggroup' => 'panel', 'settinggroup' => 'panel',
'varname' => 'adminmail_return', 'varname' => 'adminmail_return',
'type' => 'string', 'type' => 'string',
@@ -130,7 +130,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'panel_decimal_places' => array( 'panel_decimal_places' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['decimal_places'], 'label' => $lng['serversettings']['decimal_places'],
'settinggroup' => 'panel', 'settinggroup' => 'panel',
'varname' => 'decimal_places', 'varname' => 'decimal_places',
'type' => 'int', 'type' => 'int',
@@ -140,7 +140,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'panel_phpmyadmin_url' => array( 'panel_phpmyadmin_url' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpmyadmin_url'], 'label' => $lng['serversettings']['phpmyadmin_url'],
'settinggroup' => 'panel', 'settinggroup' => 'panel',
'varname' => 'phpmyadmin_url', 'varname' => 'phpmyadmin_url',
'type' => 'string', 'type' => 'string',
@@ -150,7 +150,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'panel_webmail_url' => array( 'panel_webmail_url' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['webmail_url'], 'label' => $lng['serversettings']['webmail_url'],
'settinggroup' => 'panel', 'settinggroup' => 'panel',
'varname' => 'webmail_url', 'varname' => 'webmail_url',
'type' => 'string', 'type' => 'string',
@@ -160,7 +160,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'panel_webftp_url' => array( 'panel_webftp_url' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['webftp_url'], 'label' => $lng['serversettings']['webftp_url'],
'settinggroup' => 'panel', 'settinggroup' => 'panel',
'varname' => 'webftp_url', 'varname' => 'webftp_url',
'type' => 'string', 'type' => 'string',
@@ -170,7 +170,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'admin_show_version_login' => array( 'admin_show_version_login' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['show_version_login'], 'label' => $lng['admin']['show_version_login'],
'settinggroup' => 'admin', 'settinggroup' => 'admin',
'varname' => 'show_version_login', 'varname' => 'show_version_login',
'type' => 'bool', 'type' => 'bool',
@@ -178,7 +178,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'admin_show_version_footer' => array( 'admin_show_version_footer' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['show_version_footer'], 'label' => $lng['admin']['show_version_footer'],
'settinggroup' => 'admin', 'settinggroup' => 'admin',
'varname' => 'show_version_footer', 'varname' => 'show_version_footer',
'type' => 'bool', 'type' => 'bool',
@@ -186,7 +186,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'admin_show_news_feed' => array( 'admin_show_news_feed' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['show_news_feed'], 'label' => $lng['admin']['show_news_feed'],
'settinggroup' => 'admin', 'settinggroup' => 'admin',
'varname' => 'show_news_feed', 'varname' => 'show_news_feed',
'type' => 'bool', 'type' => 'bool',
@@ -194,7 +194,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'customer_show_news_feed' => array( 'customer_show_news_feed' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['customer_show_news_feed'], 'label' => $lng['admin']['customer_show_news_feed'],
'settinggroup' => 'customer', 'settinggroup' => 'customer',
'varname' => 'show_news_feed', 'varname' => 'show_news_feed',
'type' => 'bool', 'type' => 'bool',
@@ -202,7 +202,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'customer_news_feed_url' => array( 'customer_news_feed_url' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['customer_news_feed_url'], 'label' => $lng['admin']['customer_news_feed_url'],
'settinggroup' => 'customer', 'settinggroup' => 'customer',
'varname' => 'news_feed_url', 'varname' => 'news_feed_url',
'type' => 'string', 'type' => 'string',
@@ -212,7 +212,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'panel_allow_domain_change_admin' => array( 'panel_allow_domain_change_admin' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['panel_allow_domain_change_admin'], 'label' => $lng['serversettings']['panel_allow_domain_change_admin'],
'settinggroup' => 'panel', 'settinggroup' => 'panel',
'varname' => 'allow_domain_change_admin', 'varname' => 'allow_domain_change_admin',
'type' => 'bool', 'type' => 'bool',
@@ -220,7 +220,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'panel_allow_domain_change_customer' => array( 'panel_allow_domain_change_customer' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['panel_allow_domain_change_customer'], 'label' => $lng['serversettings']['panel_allow_domain_change_customer'],
'settinggroup' => 'panel', 'settinggroup' => 'panel',
'varname' => 'allow_domain_change_customer', 'varname' => 'allow_domain_change_customer',
'type' => 'bool', 'type' => 'bool',
@@ -228,7 +228,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'panel_phpconfigs_hidestdsubdomain' => array( 'panel_phpconfigs_hidestdsubdomain' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['panel_phpconfigs_hidestdsubdomain'], 'label' => $lng['serversettings']['panel_phpconfigs_hidestdsubdomain'],
'settinggroup' => 'panel', 'settinggroup' => 'panel',
'varname' => 'phpconfigs_hidestdsubdomain', 'varname' => 'phpconfigs_hidestdsubdomain',
'type' => 'bool', 'type' => 'bool',
@@ -236,7 +236,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'panel_customer_hide_options' => array( 'panel_customer_hide_options' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['panel_customer_hide_options'], 'label' => $lng['serversettings']['panel_customer_hide_options'],
'settinggroup' => 'panel', 'settinggroup' => 'panel',
'varname' => 'customer_hide_options', 'varname' => 'customer_hide_options',
'type' => 'option', 'type' => 'option',
@@ -244,19 +244,19 @@ return array(
'option_mode' => 'multiple', 'option_mode' => 'multiple',
'option_emptyallowed' => true, 'option_emptyallowed' => true,
'option_options' => array( 'option_options' => array(
'email' => \Froxlor\I18N\Lang::getAll()['menue']['email']['email'], 'email' => $lng['menue']['email']['email'],
'mysql' => \Froxlor\I18N\Lang::getAll()['menue']['mysql']['mysql'], 'mysql' => $lng['menue']['mysql']['mysql'],
'domains' => \Froxlor\I18N\Lang::getAll()['menue']['domains']['domains'], 'domains' => $lng['menue']['domains']['domains'],
'ftp' => \Froxlor\I18N\Lang::getAll()['menue']['ftp']['ftp'], 'ftp' => $lng['menue']['ftp']['ftp'],
'extras' => \Froxlor\I18N\Lang::getAll()['menue']['extras']['extras'], 'extras' => $lng['menue']['extras']['extras'],
'extras.directoryprotection' => \Froxlor\I18N\Lang::getAll()['menue']['extras']['extras'] . " / " . \Froxlor\I18N\Lang::getAll()['menue']['extras']['directoryprotection'], 'extras.directoryprotection' => $lng['menue']['extras']['extras'] . " / " . $lng['menue']['extras']['directoryprotection'],
'extras.pathoptions' => \Froxlor\I18N\Lang::getAll()['menue']['extras']['extras'] . " / " . \Froxlor\I18N\Lang::getAll()['menue']['extras']['pathoptions'], 'extras.pathoptions' => $lng['menue']['extras']['extras'] . " / " . $lng['menue']['extras']['pathoptions'],
'extras.logger' => \Froxlor\I18N\Lang::getAll()['menue']['extras']['extras'] . " / " . \Froxlor\I18N\Lang::getAll()['menue']['logger']['logger'], 'extras.logger' => $lng['menue']['extras']['extras'] . " / " . $lng['menue']['logger']['logger'],
'extras.backup' => \Froxlor\I18N\Lang::getAll()['menue']['extras']['extras'] . " / " . \Froxlor\I18N\Lang::getAll()['menue']['extras']['backup'], 'extras.backup' => $lng['menue']['extras']['extras'] . " / " . $lng['menue']['extras']['backup'],
'traffic' => \Froxlor\I18N\Lang::getAll()['menue']['traffic']['traffic'], 'traffic' => $lng['menue']['traffic']['traffic'],
'traffic.http' => \Froxlor\I18N\Lang::getAll()['menue']['traffic']['traffic'] . " / HTTP", 'traffic.http' => $lng['menue']['traffic']['traffic'] . " / HTTP",
'traffic.ftp' => \Froxlor\I18N\Lang::getAll()['menue']['traffic']['traffic'] . " / FTP", 'traffic.ftp' => $lng['menue']['traffic']['traffic'] . " / FTP",
'traffic.mail' => \Froxlor\I18N\Lang::getAll()['menue']['traffic']['traffic'] . " / Mail" 'traffic.mail' => $lng['menue']['traffic']['traffic'] . " / Mail"
), ),
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
) )

View File

@@ -19,10 +19,10 @@
return array( return array(
'groups' => array( 'groups' => array(
'accounts' => array( 'accounts' => array(
'title' => \Froxlor\I18N\Lang::getAll()['admin']['accountsettings'], 'title' => $lng['admin']['accountsettings'],
'fields' => array( 'fields' => array(
'session_sessiontimeout' => array( 'session_sessiontimeout' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['session_timeout'], 'label' => $lng['serversettings']['session_timeout'],
'settinggroup' => 'session', 'settinggroup' => 'session',
'varname' => 'sessiontimeout', 'varname' => 'sessiontimeout',
'type' => 'int', 'type' => 'int',
@@ -30,7 +30,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'session_allow_multiple_login' => array( 'session_allow_multiple_login' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['session_allow_multiple_login'], 'label' => $lng['serversettings']['session_allow_multiple_login'],
'settinggroup' => 'session', 'settinggroup' => 'session',
'varname' => 'allow_multiple_login', 'varname' => 'allow_multiple_login',
'type' => 'bool', 'type' => 'bool',
@@ -38,7 +38,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'login_domain_login' => array( 'login_domain_login' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['login_domain_login'], 'label' => $lng['serversettings']['login_domain_login'],
'settinggroup' => 'login', 'settinggroup' => 'login',
'varname' => 'domain_login', 'varname' => 'domain_login',
'type' => 'bool', 'type' => 'bool',
@@ -46,7 +46,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'login_maxloginattempts' => array( 'login_maxloginattempts' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['maxloginattempts'], 'label' => $lng['serversettings']['maxloginattempts'],
'settinggroup' => 'login', 'settinggroup' => 'login',
'varname' => 'maxloginattempts', 'varname' => 'maxloginattempts',
'type' => 'int', 'type' => 'int',
@@ -54,7 +54,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'login_deactivatetime' => array( 'login_deactivatetime' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['deactivatetime'], 'label' => $lng['serversettings']['deactivatetime'],
'settinggroup' => 'login', 'settinggroup' => 'login',
'varname' => 'deactivatetime', 'varname' => 'deactivatetime',
'type' => 'int', 'type' => 'int',
@@ -62,7 +62,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'2fa_enabled' => array( '2fa_enabled' => array(
'label' => \Froxlor\I18N\Lang::getAll()['2fa']['2fa_enabled'], 'label' => $lng['2fa']['2fa_enabled'],
'settinggroup' => '2fa', 'settinggroup' => '2fa',
'varname' => 'enabled', 'varname' => 'enabled',
'type' => 'bool', 'type' => 'bool',
@@ -70,7 +70,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'panel_password_min_length' => array( 'panel_password_min_length' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['panel_password_min_length'], 'label' => $lng['serversettings']['panel_password_min_length'],
'settinggroup' => 'panel', 'settinggroup' => 'panel',
'varname' => 'password_min_length', 'varname' => 'password_min_length',
'type' => 'int', 'type' => 'int',
@@ -78,7 +78,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'panel_password_alpha_lower' => array( 'panel_password_alpha_lower' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['panel_password_alpha_lower'], 'label' => $lng['serversettings']['panel_password_alpha_lower'],
'settinggroup' => 'panel', 'settinggroup' => 'panel',
'varname' => 'password_alpha_lower', 'varname' => 'password_alpha_lower',
'type' => 'bool', 'type' => 'bool',
@@ -86,7 +86,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'panel_password_alpha_upper' => array( 'panel_password_alpha_upper' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['panel_password_alpha_upper'], 'label' => $lng['serversettings']['panel_password_alpha_upper'],
'settinggroup' => 'panel', 'settinggroup' => 'panel',
'varname' => 'password_alpha_upper', 'varname' => 'password_alpha_upper',
'type' => 'bool', 'type' => 'bool',
@@ -94,7 +94,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'panel_password_numeric' => array( 'panel_password_numeric' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['panel_password_numeric'], 'label' => $lng['serversettings']['panel_password_numeric'],
'settinggroup' => 'panel', 'settinggroup' => 'panel',
'varname' => 'password_numeric', 'varname' => 'password_numeric',
'type' => 'bool', 'type' => 'bool',
@@ -102,7 +102,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'panel_password_special_char_required' => array( 'panel_password_special_char_required' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['panel_password_special_char_required'], 'label' => $lng['serversettings']['panel_password_special_char_required'],
'settinggroup' => 'panel', 'settinggroup' => 'panel',
'varname' => 'password_special_char_required', 'varname' => 'password_special_char_required',
'type' => 'bool', 'type' => 'bool',
@@ -110,7 +110,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'panel_password_special_char' => array( 'panel_password_special_char' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['panel_password_special_char'], 'label' => $lng['serversettings']['panel_password_special_char'],
'settinggroup' => 'panel', 'settinggroup' => 'panel',
'varname' => 'password_special_char', 'varname' => 'password_special_char',
'type' => 'string', 'type' => 'string',
@@ -118,7 +118,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'panel_password_regex' => array( 'panel_password_regex' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['panel_password_regex'], 'label' => $lng['serversettings']['panel_password_regex'],
'settinggroup' => 'panel', 'settinggroup' => 'panel',
'varname' => 'password_regex', 'varname' => 'password_regex',
'type' => 'string', 'type' => 'string',
@@ -126,7 +126,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'customer_accountprefix' => array( 'customer_accountprefix' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['accountprefix'], 'label' => $lng['serversettings']['accountprefix'],
'settinggroup' => 'customer', 'settinggroup' => 'customer',
'varname' => 'accountprefix', 'varname' => 'accountprefix',
'type' => 'string', 'type' => 'string',
@@ -138,7 +138,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'customer_mysqlprefix' => array( 'customer_mysqlprefix' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['mysqlprefix'], 'label' => $lng['serversettings']['mysqlprefix'],
'settinggroup' => 'customer', 'settinggroup' => 'customer',
'varname' => 'mysqlprefix', 'varname' => 'mysqlprefix',
'type' => 'string', 'type' => 'string',
@@ -150,7 +150,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'customer_ftpprefix' => array( 'customer_ftpprefix' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['ftpprefix'], 'label' => $lng['serversettings']['ftpprefix'],
'settinggroup' => 'customer', 'settinggroup' => 'customer',
'varname' => 'ftpprefix', 'varname' => 'ftpprefix',
'type' => 'string', 'type' => 'string',
@@ -158,7 +158,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'customer_ftpatdomain' => array( 'customer_ftpatdomain' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['ftpdomain'], 'label' => $lng['serversettings']['ftpdomain'],
'settinggroup' => 'customer', 'settinggroup' => 'customer',
'varname' => 'ftpatdomain', 'varname' => 'ftpatdomain',
'type' => 'bool', 'type' => 'bool',
@@ -166,7 +166,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'panel_allow_preset' => array( 'panel_allow_preset' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['allow_password_reset'], 'label' => $lng['serversettings']['allow_password_reset'],
'settinggroup' => 'panel', 'settinggroup' => 'panel',
'varname' => 'allow_preset', 'varname' => 'allow_preset',
'type' => 'bool', 'type' => 'bool',
@@ -182,7 +182,7 @@ return array(
) )
), ),
'panel_allow_preset_admin' => array( 'panel_allow_preset_admin' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['allow_password_reset_admin'], 'label' => $lng['serversettings']['allow_password_reset_admin'],
'settinggroup' => 'panel', 'settinggroup' => 'panel',
'varname' => 'allow_preset_admin', 'varname' => 'allow_preset_admin',
'type' => 'bool', 'type' => 'bool',
@@ -198,7 +198,7 @@ return array(
) )
), ),
'system_backupenabled' => array( 'system_backupenabled' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['backupenabled'], 'label' => $lng['serversettings']['backupenabled'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'backupenabled', 'varname' => 'backupenabled',
'type' => 'bool', 'type' => 'bool',

View File

@@ -19,10 +19,10 @@
return array( return array(
'groups' => array( 'groups' => array(
'system' => array( 'system' => array(
'title' => \Froxlor\I18N\Lang::getAll()['admin']['systemsettings'], 'title' => $lng['admin']['systemsettings'],
'fields' => array( 'fields' => array(
'system_documentroot_prefix' => array( 'system_documentroot_prefix' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['documentroot_prefix'], 'label' => $lng['serversettings']['documentroot_prefix'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'documentroot_prefix', 'varname' => 'documentroot_prefix',
'type' => 'string', 'type' => 'string',
@@ -35,7 +35,7 @@ return array(
) )
), ),
'system_documentroot_use_default_value' => array( 'system_documentroot_use_default_value' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['documentroot_use_default_value'], 'label' => $lng['serversettings']['documentroot_use_default_value'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'documentroot_use_default_value', 'varname' => 'documentroot_use_default_value',
'type' => 'bool', 'type' => 'bool',
@@ -43,7 +43,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'system_ipaddress' => array( 'system_ipaddress' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['ipaddress'], 'label' => $lng['serversettings']['ipaddress'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'ipaddress', 'varname' => 'ipaddress',
'type' => 'option', 'type' => 'option',
@@ -56,7 +56,7 @@ return array(
'save_method' => 'storeSettingIpAddress' 'save_method' => 'storeSettingIpAddress'
), ),
'system_defaultip' => array( 'system_defaultip' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['defaultip'], 'label' => $lng['serversettings']['defaultip'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'defaultip', 'varname' => 'defaultip',
'type' => 'option', 'type' => 'option',
@@ -69,7 +69,7 @@ return array(
'save_method' => 'storeSettingDefaultIp' 'save_method' => 'storeSettingDefaultIp'
), ),
'system_defaultsslip' => array( 'system_defaultsslip' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['defaultsslip'], 'label' => $lng['serversettings']['defaultsslip'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'defaultsslip', 'varname' => 'defaultsslip',
'type' => 'option', 'type' => 'option',
@@ -82,7 +82,7 @@ return array(
'save_method' => 'storeSettingDefaultSslIp' 'save_method' => 'storeSettingDefaultSslIp'
), ),
'system_hostname' => array( 'system_hostname' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['hostname'], 'label' => $lng['serversettings']['hostname'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'hostname', 'varname' => 'hostname',
'type' => 'string', 'type' => 'string',
@@ -94,7 +94,7 @@ return array(
) )
), ),
'api_enabled' => array( 'api_enabled' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['enable_api'], 'label' => $lng['serversettings']['enable_api'],
'settinggroup' => 'api', 'settinggroup' => 'api',
'varname' => 'enabled', 'varname' => 'enabled',
'type' => 'bool', 'type' => 'bool',
@@ -102,7 +102,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'system_validatedomain' => array( 'system_validatedomain' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['validate_domain'], 'label' => $lng['serversettings']['validate_domain'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'validate_domain', 'varname' => 'validate_domain',
'type' => 'bool', 'type' => 'bool',
@@ -110,7 +110,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'system_stdsubdomain' => array( 'system_stdsubdomain' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['stdsubdomainhost'], 'label' => $lng['serversettings']['stdsubdomainhost'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'stdsubdomain', 'varname' => 'stdsubdomain',
'type' => 'string', 'type' => 'string',
@@ -118,7 +118,7 @@ return array(
'save_method' => 'storeSettingHostname' 'save_method' => 'storeSettingHostname'
), ),
'system_mysql_access_host' => array( 'system_mysql_access_host' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['mysql_access_host'], 'label' => $lng['serversettings']['mysql_access_host'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'mysql_access_host', 'varname' => 'mysql_access_host',
'type' => 'string', 'type' => 'string',
@@ -130,7 +130,7 @@ return array(
'save_method' => 'storeSettingMysqlAccessHost' 'save_method' => 'storeSettingMysqlAccessHost'
), ),
'system_nssextrausers' => array( 'system_nssextrausers' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['nssextrausers'], 'label' => $lng['serversettings']['nssextrausers'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'nssextrausers', 'varname' => 'nssextrausers',
'type' => 'bool', 'type' => 'bool',
@@ -138,7 +138,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'system_index_file_extension' => array( 'system_index_file_extension' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['index_file_extension'], 'label' => $lng['serversettings']['index_file_extension'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'index_file_extension', 'varname' => 'index_file_extension',
'type' => 'string', 'type' => 'string',
@@ -147,7 +147,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'system_store_index_file_subs' => array( 'system_store_index_file_subs' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['system_store_index_file_subs'], 'label' => $lng['serversettings']['system_store_index_file_subs'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'store_index_file_subs', 'varname' => 'store_index_file_subs',
'type' => 'bool', 'type' => 'bool',
@@ -167,7 +167,7 @@ return array(
'default' => 'www-data' 'default' => 'www-data'
), ),
'system_report_enable' => array( 'system_report_enable' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['report']['report'], 'label' => $lng['serversettings']['report']['report'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'report_enable', 'varname' => 'report_enable',
'type' => 'bool', 'type' => 'bool',
@@ -176,7 +176,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'system_report_webmax' => array( 'system_report_webmax' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['report']['webmax'], 'label' => $lng['serversettings']['report']['webmax'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'report_webmax', 'varname' => 'report_webmax',
'type' => 'int', 'type' => 'int',
@@ -186,7 +186,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'system_report_trafficmax' => array( 'system_report_trafficmax' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['report']['trafficmax'], 'label' => $lng['serversettings']['report']['trafficmax'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'report_trafficmax', 'varname' => 'report_trafficmax',
'type' => 'int', 'type' => 'int',
@@ -197,7 +197,7 @@ return array(
), ),
'system_mail_use_smtp' => array( 'system_mail_use_smtp' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['mail_use_smtp'], 'label' => $lng['serversettings']['mail_use_smtp'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'mail_use_smtp', 'varname' => 'mail_use_smtp',
'type' => 'bool', 'type' => 'bool',
@@ -205,7 +205,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'system_mail_smtp_host' => array( 'system_mail_smtp_host' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['mail_smtp_host'], 'label' => $lng['serversettings']['mail_smtp_host'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'mail_smtp_host', 'varname' => 'mail_smtp_host',
'type' => 'string', 'type' => 'string',
@@ -213,7 +213,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'system_mail_smtp_port' => array( 'system_mail_smtp_port' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['mail_smtp_port'], 'label' => $lng['serversettings']['mail_smtp_port'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'mail_smtp_port', 'varname' => 'mail_smtp_port',
'type' => 'int', 'type' => 'int',
@@ -223,7 +223,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'system_mail_smtp_usetls' => array( 'system_mail_smtp_usetls' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['mail_smtp_usetls'], 'label' => $lng['serversettings']['mail_smtp_usetls'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'mail_smtp_usetls', 'varname' => 'mail_smtp_usetls',
'type' => 'bool', 'type' => 'bool',
@@ -231,7 +231,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'system_mail_smtp_auth' => array( 'system_mail_smtp_auth' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['mail_smtp_auth'], 'label' => $lng['serversettings']['mail_smtp_auth'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'mail_smtp_auth', 'varname' => 'mail_smtp_auth',
'type' => 'bool', 'type' => 'bool',
@@ -239,7 +239,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'system_mail_smtp_user' => array( 'system_mail_smtp_user' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['mail_smtp_user'], 'label' => $lng['serversettings']['mail_smtp_user'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'mail_smtp_user', 'varname' => 'mail_smtp_user',
'type' => 'string', 'type' => 'string',
@@ -247,7 +247,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'system_mail_smtp_passwd' => array( 'system_mail_smtp_passwd' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['mail_smtp_passwd'], 'label' => $lng['serversettings']['mail_smtp_passwd'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'mail_smtp_passwd', 'varname' => 'mail_smtp_passwd',
'type' => 'hiddenString', 'type' => 'hiddenString',

View File

@@ -17,13 +17,13 @@
return array( return array(
'groups' => array( 'groups' => array(
'froxlorvhost' => array( 'froxlorvhost' => array(
'title' => \Froxlor\I18N\Lang::getAll()['admin']['froxlorvhost'], 'title' => $lng['admin']['froxlorvhost'],
'fields' => array( 'fields' => array(
/** /**
* Webserver-Vhost * Webserver-Vhost
*/ */
'system_froxlordirectlyviahostname' => array( 'system_froxlordirectlyviahostname' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['froxlordirectlyviahostname'], 'label' => $lng['serversettings']['froxlordirectlyviahostname'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'froxlordirectlyviahostname', 'varname' => 'froxlordirectlyviahostname',
'type' => 'bool', 'type' => 'bool',
@@ -34,7 +34,7 @@ return array(
* SSL / Let's Encrypt * SSL / Let's Encrypt
*/ */
'system_le_froxlor_enabled' => array( 'system_le_froxlor_enabled' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['le_froxlor_enabled'], 'label' => $lng['serversettings']['le_froxlor_enabled'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'le_froxlor_enabled', 'varname' => 'le_froxlor_enabled',
'type' => 'bool', 'type' => 'bool',
@@ -43,7 +43,7 @@ return array(
'visible' => \Froxlor\Settings::Get('system.leenabled') 'visible' => \Froxlor\Settings::Get('system.leenabled')
), ),
'system_le_froxlor_redirect' => array( 'system_le_froxlor_redirect' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['le_froxlor_redirect'], 'label' => $lng['serversettings']['le_froxlor_redirect'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'le_froxlor_redirect', 'varname' => 'le_froxlor_redirect',
'type' => 'bool', 'type' => 'bool',
@@ -52,7 +52,7 @@ return array(
'visible' => \Froxlor\Settings::Get('system.use_ssl') 'visible' => \Froxlor\Settings::Get('system.use_ssl')
), ),
'system_hsts_maxage' => array( 'system_hsts_maxage' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['domain_hsts_maxage'], 'label' => $lng['admin']['domain_hsts_maxage'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'hsts_maxage', 'varname' => 'hsts_maxage',
'type' => 'int', 'type' => 'int',
@@ -63,7 +63,7 @@ return array(
'visible' => \Froxlor\Settings::Get('system.use_ssl') 'visible' => \Froxlor\Settings::Get('system.use_ssl')
), ),
'system_hsts_incsub' => array( 'system_hsts_incsub' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['domain_hsts_incsub'], 'label' => $lng['admin']['domain_hsts_incsub'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'hsts_incsub', 'varname' => 'hsts_incsub',
'type' => 'bool', 'type' => 'bool',
@@ -72,7 +72,7 @@ return array(
'visible' => \Froxlor\Settings::Get('system.use_ssl') 'visible' => \Froxlor\Settings::Get('system.use_ssl')
), ),
'system_hsts_preload' => array( 'system_hsts_preload' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['domain_hsts_preload'], 'label' => $lng['admin']['domain_hsts_preload'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'hsts_preload', 'varname' => 'hsts_preload',
'type' => 'bool', 'type' => 'bool',
@@ -84,7 +84,7 @@ return array(
* FCGID * FCGID
*/ */
'system_mod_fcgid_enabled_ownvhost' => array( 'system_mod_fcgid_enabled_ownvhost' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['mod_fcgid_ownvhost'], 'label' => $lng['serversettings']['mod_fcgid_ownvhost'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'mod_fcgid_ownvhost', 'varname' => 'mod_fcgid_ownvhost',
'type' => 'bool', 'type' => 'bool',
@@ -96,7 +96,7 @@ return array(
'visible' => \Froxlor\Settings::Get('system.mod_fcgid') 'visible' => \Froxlor\Settings::Get('system.mod_fcgid')
), ),
'system_mod_fcgid_httpuser' => array( 'system_mod_fcgid_httpuser' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['mod_fcgid_user'], 'label' => $lng['admin']['mod_fcgid_user'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'mod_fcgid_httpuser', 'varname' => 'mod_fcgid_httpuser',
'type' => 'string', 'type' => 'string',
@@ -108,7 +108,7 @@ return array(
'visible' => \Froxlor\Settings::Get('system.mod_fcgid') 'visible' => \Froxlor\Settings::Get('system.mod_fcgid')
), ),
'system_mod_fcgid_httpgroup' => array( 'system_mod_fcgid_httpgroup' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['mod_fcgid_group'], 'label' => $lng['admin']['mod_fcgid_group'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'mod_fcgid_httpgroup', 'varname' => 'mod_fcgid_httpgroup',
'type' => 'string', 'type' => 'string',
@@ -120,7 +120,7 @@ return array(
'visible' => \Froxlor\Settings::Get('system.mod_fcgid') 'visible' => \Froxlor\Settings::Get('system.mod_fcgid')
), ),
'system_mod_fcgid_defaultini_ownvhost' => array( 'system_mod_fcgid_defaultini_ownvhost' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['mod_fcgid']['defaultini_ownvhost'], 'label' => $lng['serversettings']['mod_fcgid']['defaultini_ownvhost'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'mod_fcgid_defaultini_ownvhost', 'varname' => 'mod_fcgid_defaultini_ownvhost',
'type' => 'option', 'type' => 'option',
@@ -137,7 +137,7 @@ return array(
* php-fpm * php-fpm
*/ */
'system_phpfpm_enabled_ownvhost' => array( 'system_phpfpm_enabled_ownvhost' => array(
'label' => \Froxlor\I18N\Lang::getAll()['phpfpm']['ownvhost'], 'label' => $lng['phpfpm']['ownvhost'],
'settinggroup' => 'phpfpm', 'settinggroup' => 'phpfpm',
'varname' => 'enabled_ownvhost', 'varname' => 'enabled_ownvhost',
'type' => 'bool', 'type' => 'bool',
@@ -146,7 +146,7 @@ return array(
'visible' => \Froxlor\Settings::Get('phpfpm.enabled') 'visible' => \Froxlor\Settings::Get('phpfpm.enabled')
), ),
'system_phpfpm_httpuser' => array( 'system_phpfpm_httpuser' => array(
'label' => \Froxlor\I18N\Lang::getAll()['phpfpm']['vhost_httpuser'], 'label' => $lng['phpfpm']['vhost_httpuser'],
'settinggroup' => 'phpfpm', 'settinggroup' => 'phpfpm',
'varname' => 'vhost_httpuser', 'varname' => 'vhost_httpuser',
'type' => 'string', 'type' => 'string',
@@ -155,7 +155,7 @@ return array(
'visible' => \Froxlor\Settings::Get('phpfpm.enabled') 'visible' => \Froxlor\Settings::Get('phpfpm.enabled')
), ),
'system_phpfpm_httpgroup' => array( 'system_phpfpm_httpgroup' => array(
'label' => \Froxlor\I18N\Lang::getAll()['phpfpm']['vhost_httpgroup'], 'label' => $lng['phpfpm']['vhost_httpgroup'],
'settinggroup' => 'phpfpm', 'settinggroup' => 'phpfpm',
'varname' => 'vhost_httpgroup', 'varname' => 'vhost_httpgroup',
'type' => 'string', 'type' => 'string',
@@ -164,7 +164,7 @@ return array(
'visible' => \Froxlor\Settings::Get('phpfpm.enabled') 'visible' => \Froxlor\Settings::Get('phpfpm.enabled')
), ),
'system_phpfpm_defaultini_ownvhost' => array( 'system_phpfpm_defaultini_ownvhost' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['mod_fcgid']['defaultini_ownvhost'], 'label' => $lng['serversettings']['mod_fcgid']['defaultini_ownvhost'],
'settinggroup' => 'phpfpm', 'settinggroup' => 'phpfpm',
'varname' => 'vhost_defaultini', 'varname' => 'vhost_defaultini',
'type' => 'option', 'type' => 'option',
@@ -178,7 +178,7 @@ return array(
* DNS * DNS
*/ */
'system_dns_createhostnameentry' => array( 'system_dns_createhostnameentry' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['dns_createhostnameentry'], 'label' => $lng['serversettings']['dns_createhostnameentry'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'dns_createhostnameentry', 'varname' => 'dns_createhostnameentry',
'type' => 'bool', 'type' => 'bool',

View File

@@ -17,10 +17,10 @@
return array( return array(
'groups' => array( 'groups' => array(
'crond' => array( 'crond' => array(
'title' => \Froxlor\I18N\Lang::getAll()['admin']['cronsettings'], 'title' => $lng['admin']['cronsettings'],
'fields' => array( 'fields' => array(
'system_cronconfig' => array( 'system_cronconfig' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['system_cronconfig'], 'label' => $lng['serversettings']['system_cronconfig'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'cronconfig', 'varname' => 'cronconfig',
'type' => 'string', 'type' => 'string',
@@ -29,7 +29,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'system_croncmdline' => array( 'system_croncmdline' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['system_croncmdline'], 'label' => $lng['serversettings']['system_croncmdline'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'croncmdline', 'varname' => 'croncmdline',
'type' => 'string', 'type' => 'string',
@@ -37,7 +37,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'system_crondreload' => array( 'system_crondreload' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['system_crondreload'], 'label' => $lng['serversettings']['system_crondreload'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'crondreload', 'varname' => 'crondreload',
'type' => 'string', 'type' => 'string',
@@ -45,7 +45,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'system_cron_allowautoupdate' => array( 'system_cron_allowautoupdate' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['system_cron_allowautoupdate'], 'label' => $lng['serversettings']['system_cron_allowautoupdate'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'cron_allowautoupdate', 'varname' => 'cron_allowautoupdate',
'type' => 'bool', 'type' => 'bool',
@@ -53,7 +53,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'system_debug_cron' => array( 'system_debug_cron' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['cron']['debug'], 'label' => $lng['serversettings']['cron']['debug'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'debug_cron', 'varname' => 'debug_cron',
'type' => 'bool', 'type' => 'bool',

View File

@@ -19,10 +19,10 @@
return array( return array(
'groups' => array( 'groups' => array(
'webserver' => array( 'webserver' => array(
'title' => \Froxlor\I18N\Lang::getAll()['admin']['webserversettings'], 'title' => $lng['admin']['webserversettings'],
'fields' => array( 'fields' => array(
'system_webserver' => array( 'system_webserver' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['webserver'], 'label' => $lng['admin']['webserver'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'webserver', 'varname' => 'webserver',
'type' => 'option', 'type' => 'option',
@@ -41,7 +41,7 @@ return array(
'overview_option' => true 'overview_option' => true
), ),
'system_apache_24' => array( 'system_apache_24' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['apache_24'], 'label' => $lng['serversettings']['apache_24'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'apache24', 'varname' => 'apache24',
'type' => 'bool', 'type' => 'bool',
@@ -52,7 +52,7 @@ return array(
) )
), ),
'system_apache_itksupport' => array( 'system_apache_itksupport' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['apache_itksupport'], 'label' => $lng['serversettings']['apache_itksupport'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'apacheitksupport', 'varname' => 'apacheitksupport',
'type' => 'bool', 'type' => 'bool',
@@ -64,7 +64,7 @@ return array(
) )
), ),
'system_http2_support' => array( 'system_http2_support' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['http2_support'], 'label' => $lng['serversettings']['http2_support'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'http2_support', 'varname' => 'http2_support',
'type' => 'bool', 'type' => 'bool',
@@ -77,7 +77,7 @@ return array(
'visible' => \Froxlor\Settings::Get('system.use_ssl') 'visible' => \Froxlor\Settings::Get('system.use_ssl')
), ),
'system_dhparams_file' => array( 'system_dhparams_file' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['dhparams_file'], 'label' => $lng['serversettings']['dhparams_file'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'dhparams_file', 'varname' => 'dhparams_file',
'type' => 'string', 'type' => 'string',
@@ -88,7 +88,7 @@ return array(
'visible' => \Froxlor\Settings::Get('system.use_ssl') 'visible' => \Froxlor\Settings::Get('system.use_ssl')
), ),
'system_httpuser' => array( 'system_httpuser' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['webserver_user'], 'label' => $lng['admin']['webserver_user'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'httpuser', 'varname' => 'httpuser',
'type' => 'string', 'type' => 'string',
@@ -96,7 +96,7 @@ return array(
'save_method' => 'storeSettingWebserverFcgidFpmUser' 'save_method' => 'storeSettingWebserverFcgidFpmUser'
), ),
'system_httpgroup' => array( 'system_httpgroup' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['webserver_group'], 'label' => $lng['admin']['webserver_group'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'httpgroup', 'varname' => 'httpgroup',
'type' => 'string', 'type' => 'string',
@@ -104,7 +104,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'system_apacheconf_vhost' => array( 'system_apacheconf_vhost' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['apacheconf_vhost'], 'label' => $lng['serversettings']['apacheconf_vhost'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'apacheconf_vhost', 'varname' => 'apacheconf_vhost',
'type' => 'string', 'type' => 'string',
@@ -113,7 +113,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'system_apacheconf_diroptions' => array( 'system_apacheconf_diroptions' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['apacheconf_diroptions'], 'label' => $lng['serversettings']['apacheconf_diroptions'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'apacheconf_diroptions', 'varname' => 'apacheconf_diroptions',
'type' => 'string', 'type' => 'string',
@@ -122,7 +122,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'system_apacheconf_htpasswddir' => array( 'system_apacheconf_htpasswddir' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['apacheconf_htpasswddir'], 'label' => $lng['serversettings']['apacheconf_htpasswddir'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'apacheconf_htpasswddir', 'varname' => 'apacheconf_htpasswddir',
'type' => 'string', 'type' => 'string',
@@ -131,7 +131,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'system_logfiles_directory' => array( 'system_logfiles_directory' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['logfiles_directory'], 'label' => $lng['serversettings']['logfiles_directory'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'logfiles_directory', 'varname' => 'logfiles_directory',
'type' => 'string', 'type' => 'string',
@@ -140,7 +140,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'system_logfiles_script' => array( 'system_logfiles_script' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['logfiles_script'], 'label' => $lng['serversettings']['logfiles_script'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'logfiles_script', 'varname' => 'logfiles_script',
'type' => 'string', 'type' => 'string',
@@ -152,7 +152,7 @@ return array(
) )
), ),
'system_logfiles_piped' => array( 'system_logfiles_piped' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['logfiles_piped'], 'label' => $lng['serversettings']['logfiles_piped'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'logfiles_piped', 'varname' => 'logfiles_piped',
'type' => 'bool', 'type' => 'bool',
@@ -163,7 +163,7 @@ return array(
) )
), ),
'system_logfiles_format' => array( 'system_logfiles_format' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['logfiles_format'], 'label' => $lng['serversettings']['logfiles_format'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'logfiles_format', 'varname' => 'logfiles_format',
'type' => 'string', 'type' => 'string',
@@ -176,7 +176,7 @@ return array(
) )
), ),
'system_logfiles_type' => array( 'system_logfiles_type' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['logfiles_type'], 'label' => $lng['serversettings']['logfiles_type'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'logfiles_type', 'varname' => 'logfiles_type',
'type' => 'option', 'type' => 'option',
@@ -192,7 +192,7 @@ return array(
) )
), ),
'system_customersslpath' => array( 'system_customersslpath' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['customerssl_directory'], 'label' => $lng['serversettings']['customerssl_directory'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'customer_ssl_path', 'varname' => 'customer_ssl_path',
'type' => 'string', 'type' => 'string',
@@ -201,7 +201,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'system_phpappendopenbasedir' => array( 'system_phpappendopenbasedir' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpappendopenbasedir'], 'label' => $lng['serversettings']['phpappendopenbasedir'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'phpappendopenbasedir', 'varname' => 'phpappendopenbasedir',
'type' => 'string', 'type' => 'string',
@@ -210,7 +210,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'system_deactivateddocroot' => array( 'system_deactivateddocroot' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['deactivateddocroot'], 'label' => $lng['serversettings']['deactivateddocroot'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'deactivateddocroot', 'varname' => 'deactivateddocroot',
'type' => 'string', 'type' => 'string',
@@ -220,7 +220,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'system_default_vhostconf' => array( 'system_default_vhostconf' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['default_vhostconf'], 'label' => $lng['serversettings']['default_vhostconf'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'default_vhostconf', 'varname' => 'default_vhostconf',
'type' => 'text', 'type' => 'text',
@@ -228,7 +228,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'system_apache_globaldiropt' => array( 'system_apache_globaldiropt' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['apache_globaldiropt'], 'label' => $lng['serversettings']['apache_globaldiropt'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'apacheglobaldiropt', 'varname' => 'apacheglobaldiropt',
'type' => 'text', 'type' => 'text',
@@ -240,7 +240,7 @@ return array(
) )
), ),
'system_apachereload_command' => array( 'system_apachereload_command' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['apachereload_command'], 'label' => $lng['serversettings']['apachereload_command'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'apachereload_command', 'varname' => 'apachereload_command',
'type' => 'string', 'type' => 'string',
@@ -248,7 +248,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'system_phpreload_command' => array( 'system_phpreload_command' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpreload_command'], 'label' => $lng['serversettings']['phpreload_command'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'phpreload_command', 'varname' => 'phpreload_command',
'type' => 'string', 'type' => 'string',
@@ -259,7 +259,7 @@ return array(
) )
), ),
'system_nginx_php_backend' => array( 'system_nginx_php_backend' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['nginx_php_backend'], 'label' => $lng['serversettings']['nginx_php_backend'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'nginx_php_backend', 'varname' => 'nginx_php_backend',
'type' => 'string', 'type' => 'string',
@@ -270,7 +270,7 @@ return array(
) )
), ),
'nginx_fastcgiparams' => array( 'nginx_fastcgiparams' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['nginx_fastcgiparams'], 'label' => $lng['serversettings']['nginx_fastcgiparams'],
'settinggroup' => 'nginx', 'settinggroup' => 'nginx',
'varname' => 'fastcgiparams', 'varname' => 'fastcgiparams',
'type' => 'string', 'type' => 'string',
@@ -282,7 +282,7 @@ return array(
) )
), ),
'defaultwebsrverrhandler_enabled' => array( 'defaultwebsrverrhandler_enabled' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['defaultwebsrverrhandler_enabled'], 'label' => $lng['serversettings']['defaultwebsrverrhandler_enabled'],
'settinggroup' => 'defaultwebsrverrhandler', 'settinggroup' => 'defaultwebsrverrhandler',
'varname' => 'enabled', 'varname' => 'enabled',
'type' => 'bool', 'type' => 'bool',
@@ -290,7 +290,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'defaultwebsrverrhandler_err401' => array( 'defaultwebsrverrhandler_err401' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['defaultwebsrverrhandler_err401'], 'label' => $lng['serversettings']['defaultwebsrverrhandler_err401'],
'settinggroup' => 'defaultwebsrverrhandler', 'settinggroup' => 'defaultwebsrverrhandler',
'varname' => 'err401', 'varname' => 'err401',
'type' => 'string', 'type' => 'string',
@@ -302,7 +302,7 @@ return array(
) )
), ),
'defaultwebsrverrhandler_err403' => array( 'defaultwebsrverrhandler_err403' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['defaultwebsrverrhandler_err403'], 'label' => $lng['serversettings']['defaultwebsrverrhandler_err403'],
'settinggroup' => 'defaultwebsrverrhandler', 'settinggroup' => 'defaultwebsrverrhandler',
'varname' => 'err403', 'varname' => 'err403',
'type' => 'string', 'type' => 'string',
@@ -314,7 +314,7 @@ return array(
) )
), ),
'defaultwebsrverrhandler_err404' => array( 'defaultwebsrverrhandler_err404' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['defaultwebsrverrhandler_err404'], 'label' => $lng['serversettings']['defaultwebsrverrhandler_err404'],
'settinggroup' => 'defaultwebsrverrhandler', 'settinggroup' => 'defaultwebsrverrhandler',
'varname' => 'err404', 'varname' => 'err404',
'type' => 'string', 'type' => 'string',
@@ -322,7 +322,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'defaultwebsrverrhandler_err500' => array( 'defaultwebsrverrhandler_err500' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['defaultwebsrverrhandler_err500'], 'label' => $lng['serversettings']['defaultwebsrverrhandler_err500'],
'settinggroup' => 'defaultwebsrverrhandler', 'settinggroup' => 'defaultwebsrverrhandler',
'varname' => 'err500', 'varname' => 'err500',
'type' => 'string', 'type' => 'string',
@@ -334,7 +334,7 @@ return array(
) )
), ),
'customredirect_enabled' => array( 'customredirect_enabled' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['customredirect_enabled'], 'label' => $lng['serversettings']['customredirect_enabled'],
'settinggroup' => 'customredirect', 'settinggroup' => 'customredirect',
'varname' => 'enabled', 'varname' => 'enabled',
'type' => 'bool', 'type' => 'bool',
@@ -342,7 +342,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'customredirect_default' => array( 'customredirect_default' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['customredirect_default'], 'label' => $lng['serversettings']['customredirect_default'],
'settinggroup' => 'customredirect', 'settinggroup' => 'customredirect',
'varname' => 'default', 'varname' => 'default',
'type' => 'option', 'type' => 'option',

View File

@@ -19,10 +19,10 @@
return array( return array(
'groups' => array( 'groups' => array(
'ssl' => array( 'ssl' => array(
'title' => \Froxlor\I18N\Lang::getAll()['admin']['sslsettings'], 'title' => $lng['admin']['sslsettings'],
'fields' => array( 'fields' => array(
'system_ssl_enabled' => array( 'system_ssl_enabled' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['ssl']['use_ssl'], 'label' => $lng['serversettings']['ssl']['use_ssl'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'use_ssl', 'varname' => 'use_ssl',
'type' => 'bool', 'type' => 'bool',
@@ -31,7 +31,7 @@ return array(
'overview_option' => true 'overview_option' => true
), ),
'system_ssl_protocols' => array( 'system_ssl_protocols' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['ssl']['ssl_protocols'], 'label' => $lng['serversettings']['ssl']['ssl_protocols'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'ssl_protocols', 'varname' => 'ssl_protocols',
'type' => 'option', 'type' => 'option',
@@ -46,7 +46,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'system_ssl_cipher_list' => array( 'system_ssl_cipher_list' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['ssl']['ssl_cipher_list'], 'label' => $lng['serversettings']['ssl']['ssl_cipher_list'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'ssl_cipher_list', 'varname' => 'ssl_cipher_list',
'type' => 'string', 'type' => 'string',
@@ -55,7 +55,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'system_ssl_cert_file' => array( 'system_ssl_cert_file' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['ssl']['ssl_cert_file'], 'label' => $lng['serversettings']['ssl']['ssl_cert_file'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'ssl_cert_file', 'varname' => 'ssl_cert_file',
'type' => 'string', 'type' => 'string',
@@ -65,7 +65,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'system_ssl_key_file' => array( 'system_ssl_key_file' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['ssl']['ssl_key_file'], 'label' => $lng['serversettings']['ssl']['ssl_key_file'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'ssl_key_file', 'varname' => 'ssl_key_file',
'type' => 'string', 'type' => 'string',
@@ -75,7 +75,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'system_ssl_cert_chainfile' => array( 'system_ssl_cert_chainfile' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['ssl_cert_chainfile'], 'label' => $lng['admin']['ipsandports']['ssl_cert_chainfile'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'ssl_cert_chainfile', 'varname' => 'ssl_cert_chainfile',
'type' => 'string', 'type' => 'string',
@@ -85,7 +85,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'system_ssl_ca_file' => array( 'system_ssl_ca_file' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['ssl']['ssl_ca_file'], 'label' => $lng['serversettings']['ssl']['ssl_ca_file'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'ssl_ca_file', 'varname' => 'ssl_ca_file',
'type' => 'string', 'type' => 'string',
@@ -95,7 +95,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'system_apache24_ocsp_cache_path' => array( 'system_apache24_ocsp_cache_path' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['ssl']['apache24_ocsp_cache_path'], 'label' => $lng['serversettings']['ssl']['apache24_ocsp_cache_path'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'apache24_ocsp_cache_path', 'varname' => 'apache24_ocsp_cache_path',
'type' => 'string', 'type' => 'string',
@@ -106,7 +106,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'system_leenabled' => array( 'system_leenabled' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['leenabled'], 'label' => $lng['serversettings']['leenabled'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'leenabled', 'varname' => 'leenabled',
'type' => 'bool', 'type' => 'bool',
@@ -115,7 +115,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'system_letsencryptacmeconf' => array( 'system_letsencryptacmeconf' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['letsencryptacmeconf'], 'label' => $lng['serversettings']['letsencryptacmeconf'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'letsencryptacmeconf', 'varname' => 'letsencryptacmeconf',
'type' => 'string', 'type' => 'string',
@@ -124,7 +124,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'system_leapiversion' => array( 'system_leapiversion' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['leapiversion'], 'label' => $lng['serversettings']['leapiversion'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'leapiversion', 'varname' => 'leapiversion',
'type' => 'option', 'type' => 'option',
@@ -137,7 +137,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'system_letsencryptca' => array( 'system_letsencryptca' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['letsencryptca'], 'label' => $lng['serversettings']['letsencryptca'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'letsencryptca', 'varname' => 'letsencryptca',
'type' => 'option', 'type' => 'option',
@@ -150,7 +150,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'system_letsencryptcountrycode' => array( 'system_letsencryptcountrycode' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['letsencryptcountrycode'], 'label' => $lng['serversettings']['letsencryptcountrycode'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'letsencryptcountrycode', 'varname' => 'letsencryptcountrycode',
'type' => 'string', 'type' => 'string',
@@ -159,7 +159,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'system_letsencryptstate' => array( 'system_letsencryptstate' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['letsencryptstate'], 'label' => $lng['serversettings']['letsencryptstate'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'letsencryptstate', 'varname' => 'letsencryptstate',
'type' => 'string', 'type' => 'string',
@@ -168,7 +168,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'system_letsencryptchallengepath' => array( 'system_letsencryptchallengepath' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['letsencryptchallengepath'], 'label' => $lng['serversettings']['letsencryptchallengepath'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'letsencryptchallengepath', 'varname' => 'letsencryptchallengepath',
'type' => 'string', 'type' => 'string',
@@ -177,7 +177,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'system_letsencryptkeysize' => array( 'system_letsencryptkeysize' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['letsencryptkeysize'], 'label' => $lng['serversettings']['letsencryptkeysize'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'letsencryptkeysize', 'varname' => 'letsencryptkeysize',
'type' => 'int', 'type' => 'int',
@@ -186,7 +186,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'system_letsencryptreuseold' => array( 'system_letsencryptreuseold' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['letsencryptreuseold'], 'label' => $lng['serversettings']['letsencryptreuseold'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'letsencryptreuseold', 'varname' => 'letsencryptreuseold',
'type' => 'bool', 'type' => 'bool',
@@ -194,7 +194,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'system_disable_le_selfcheck' => array( 'system_disable_le_selfcheck' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['disable_le_selfcheck'], 'label' => $lng['serversettings']['disable_le_selfcheck'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'disable_le_selfcheck', 'varname' => 'disable_le_selfcheck',
'type' => 'bool', 'type' => 'bool',

View File

@@ -17,14 +17,14 @@
return array( return array(
'groups' => array( 'groups' => array(
'fcgid' => array( 'fcgid' => array(
'title' => \Froxlor\I18N\Lang::getAll()['admin']['fcgid_settings'], 'title' => $lng['admin']['fcgid_settings'],
'websrv_avail' => array( 'websrv_avail' => array(
'apache2', 'apache2',
'lighttpd' 'lighttpd'
), ),
'fields' => array( 'fields' => array(
'system_mod_fcgid_enabled' => array( 'system_mod_fcgid_enabled' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['mod_fcgid'], 'label' => $lng['serversettings']['mod_fcgid'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'mod_fcgid', 'varname' => 'mod_fcgid',
'type' => 'bool', 'type' => 'bool',
@@ -37,7 +37,7 @@ return array(
'overview_option' => true 'overview_option' => true
), ),
'system_mod_fcgid_configdir' => array( 'system_mod_fcgid_configdir' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['mod_fcgid']['configdir'], 'label' => $lng['serversettings']['mod_fcgid']['configdir'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'mod_fcgid_configdir', 'varname' => 'mod_fcgid_configdir',
'type' => 'string', 'type' => 'string',
@@ -50,7 +50,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'system_mod_fcgid_tmpdir' => array( 'system_mod_fcgid_tmpdir' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['mod_fcgid']['tmpdir'], 'label' => $lng['serversettings']['mod_fcgid']['tmpdir'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'mod_fcgid_tmpdir', 'varname' => 'mod_fcgid_tmpdir',
'type' => 'string', 'type' => 'string',
@@ -59,7 +59,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'system_mod_fcgid_peardir' => array( 'system_mod_fcgid_peardir' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['mod_fcgid']['peardir'], 'label' => $lng['serversettings']['mod_fcgid']['peardir'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'mod_fcgid_peardir', 'varname' => 'mod_fcgid_peardir',
'type' => 'string', 'type' => 'string',
@@ -70,7 +70,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'system_mod_fcgid_wrapper' => array( 'system_mod_fcgid_wrapper' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['mod_fcgid']['wrapper'], 'label' => $lng['serversettings']['mod_fcgid']['wrapper'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'mod_fcgid_wrapper', 'varname' => 'mod_fcgid_wrapper',
'type' => 'option', 'type' => 'option',
@@ -85,7 +85,7 @@ return array(
) )
), ),
'system_mod_fcgid_starter' => array( 'system_mod_fcgid_starter' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['mod_fcgid']['starter'], 'label' => $lng['serversettings']['mod_fcgid']['starter'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'mod_fcgid_starter', 'varname' => 'mod_fcgid_starter',
'type' => 'int', 'type' => 'int',
@@ -93,7 +93,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'system_mod_fcgid_maxrequests' => array( 'system_mod_fcgid_maxrequests' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['mod_fcgid']['maxrequests'], 'label' => $lng['serversettings']['mod_fcgid']['maxrequests'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'mod_fcgid_maxrequests', 'varname' => 'mod_fcgid_maxrequests',
'type' => 'int', 'type' => 'int',
@@ -101,7 +101,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'system_mod_fcgid_defaultini' => array( 'system_mod_fcgid_defaultini' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['mod_fcgid']['defaultini'], 'label' => $lng['serversettings']['mod_fcgid']['defaultini'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'mod_fcgid_defaultini', 'varname' => 'mod_fcgid_defaultini',
'type' => 'option', 'type' => 'option',
@@ -111,7 +111,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'system_mod_fcgid_idle_timeout' => array( 'system_mod_fcgid_idle_timeout' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['mod_fcgid']['idle_timeout'], 'label' => $lng['serversettings']['mod_fcgid']['idle_timeout'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'mod_fcgid_idle_timeout', 'varname' => 'mod_fcgid_idle_timeout',
'type' => 'int', 'type' => 'int',

View File

@@ -17,10 +17,10 @@
return array( return array(
'groups' => array( 'groups' => array(
'phpfpm' => array( 'phpfpm' => array(
'title' => \Froxlor\I18N\Lang::getAll()['admin']['phpfpm_settings'], 'title' => $lng['admin']['phpfpm_settings'],
'fields' => array( 'fields' => array(
'system_phpfpm_enabled' => array( 'system_phpfpm_enabled' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm'], 'label' => $lng['serversettings']['phpfpm'],
'settinggroup' => 'phpfpm', 'settinggroup' => 'phpfpm',
'varname' => 'enabled', 'varname' => 'enabled',
'type' => 'bool', 'type' => 'bool',
@@ -33,7 +33,7 @@ return array(
'overview_option' => true 'overview_option' => true
), ),
'system_phpfpm_defaultini' => array( 'system_phpfpm_defaultini' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['mod_fcgid']['defaultini'], 'label' => $lng['serversettings']['mod_fcgid']['defaultini'],
'settinggroup' => 'phpfpm', 'settinggroup' => 'phpfpm',
'varname' => 'defaultini', 'varname' => 'defaultini',
'type' => 'option', 'type' => 'option',
@@ -43,7 +43,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'system_phpfpm_aliasconfigdir' => array( 'system_phpfpm_aliasconfigdir' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['aliasconfigdir'], 'label' => $lng['serversettings']['phpfpm_settings']['aliasconfigdir'],
'settinggroup' => 'phpfpm', 'settinggroup' => 'phpfpm',
'varname' => 'aliasconfigdir', 'varname' => 'aliasconfigdir',
'type' => 'string', 'type' => 'string',
@@ -52,7 +52,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'system_phpfpm_tmpdir' => array( 'system_phpfpm_tmpdir' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['mod_fcgid']['tmpdir'], 'label' => $lng['serversettings']['mod_fcgid']['tmpdir'],
'settinggroup' => 'phpfpm', 'settinggroup' => 'phpfpm',
'varname' => 'tmpdir', 'varname' => 'tmpdir',
'type' => 'string', 'type' => 'string',
@@ -61,7 +61,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'system_phpfpm_peardir' => array( 'system_phpfpm_peardir' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['mod_fcgid']['peardir'], 'label' => $lng['serversettings']['mod_fcgid']['peardir'],
'settinggroup' => 'phpfpm', 'settinggroup' => 'phpfpm',
'varname' => 'peardir', 'varname' => 'peardir',
'type' => 'string', 'type' => 'string',
@@ -72,7 +72,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'system_phpfpm_envpath' => array( 'system_phpfpm_envpath' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['envpath'], 'label' => $lng['serversettings']['phpfpm_settings']['envpath'],
'settinggroup' => 'phpfpm', 'settinggroup' => 'phpfpm',
'varname' => 'envpath', 'varname' => 'envpath',
'type' => 'string', 'type' => 'string',
@@ -83,7 +83,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'system_phpfpm_fastcgi_ipcdir' => array( 'system_phpfpm_fastcgi_ipcdir' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['ipcdir'], 'label' => $lng['serversettings']['phpfpm_settings']['ipcdir'],
'settinggroup' => 'phpfpm', 'settinggroup' => 'phpfpm',
'varname' => 'fastcgi_ipcdir', 'varname' => 'fastcgi_ipcdir',
'type' => 'string', 'type' => 'string',
@@ -92,7 +92,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'system_phpfpm_use_mod_proxy' => array( 'system_phpfpm_use_mod_proxy' => array(
'label' => \Froxlor\I18N\Lang::getAll()['phpfpm']['use_mod_proxy'], 'label' => $lng['phpfpm']['use_mod_proxy'],
'settinggroup' => 'phpfpm', 'settinggroup' => 'phpfpm',
'varname' => 'use_mod_proxy', 'varname' => 'use_mod_proxy',
'type' => 'bool', 'type' => 'bool',
@@ -101,7 +101,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'system_phpfpm_ini_flags' => array( 'system_phpfpm_ini_flags' => array(
'label' => \Froxlor\I18N\Lang::getAll()['phpfpm']['ini_flags'], 'label' => $lng['phpfpm']['ini_flags'],
'settinggroup' => 'phpfpm', 'settinggroup' => 'phpfpm',
'varname' => 'ini_flags', 'varname' => 'ini_flags',
'type' => 'text', 'type' => 'text',
@@ -109,7 +109,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'system_phpfpm_ini_values' => array( 'system_phpfpm_ini_values' => array(
'label' => \Froxlor\I18N\Lang::getAll()['phpfpm']['ini_values'], 'label' => $lng['phpfpm']['ini_values'],
'settinggroup' => 'phpfpm', 'settinggroup' => 'phpfpm',
'varname' => 'ini_values', 'varname' => 'ini_values',
'type' => 'text', 'type' => 'text',
@@ -117,7 +117,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'system_phpfpm_ini_admin_flags' => array( 'system_phpfpm_ini_admin_flags' => array(
'label' => \Froxlor\I18N\Lang::getAll()['phpfpm']['ini_admin_flags'], 'label' => $lng['phpfpm']['ini_admin_flags'],
'settinggroup' => 'phpfpm', 'settinggroup' => 'phpfpm',
'varname' => 'ini_admin_flags', 'varname' => 'ini_admin_flags',
'type' => 'text', 'type' => 'text',
@@ -125,7 +125,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'system_phpfpm_ini_admin_values' => array( 'system_phpfpm_ini_admin_values' => array(
'label' => \Froxlor\I18N\Lang::getAll()['phpfpm']['ini_admin_values'], 'label' => $lng['phpfpm']['ini_admin_values'],
'settinggroup' => 'phpfpm', 'settinggroup' => 'phpfpm',
'varname' => 'ini_admin_values', 'varname' => 'ini_admin_values',
'type' => 'text', 'type' => 'text',

View File

@@ -17,10 +17,10 @@
return array( return array(
'groups' => array( 'groups' => array(
'perl' => array( 'perl' => array(
'title' => \Froxlor\I18N\Lang::getAll()['admin']['perl_settings'], 'title' => $lng['admin']['perl_settings'],
'fields' => array( 'fields' => array(
'perl_path' => array( 'perl_path' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['perl_path'], 'label' => $lng['serversettings']['perl_path'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'perl_path', 'varname' => 'perl_path',
'type' => 'string', 'type' => 'string',
@@ -31,7 +31,7 @@ return array(
) )
), ),
'system_perl_suexecworkaround' => array( 'system_perl_suexecworkaround' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['perl']['suexecworkaround'], 'label' => $lng['serversettings']['perl']['suexecworkaround'],
'settinggroup' => 'perl', 'settinggroup' => 'perl',
'varname' => 'suexecworkaround', 'varname' => 'suexecworkaround',
'type' => 'bool', 'type' => 'bool',
@@ -42,7 +42,7 @@ return array(
) )
), ),
'system_perl_suexeccgipath' => array( 'system_perl_suexeccgipath' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['perl']['suexeccgipath'], 'label' => $lng['serversettings']['perl']['suexeccgipath'],
'settinggroup' => 'perl', 'settinggroup' => 'perl',
'varname' => 'suexecpath', 'varname' => 'suexecpath',
'type' => 'string', 'type' => 'string',
@@ -54,7 +54,7 @@ return array(
) )
), ),
'perl_server' => array( 'perl_server' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['perl_server'], 'label' => $lng['serversettings']['perl_server'],
'settinggroup' => 'serversettings', 'settinggroup' => 'serversettings',
'varname' => 'perl_server', 'varname' => 'perl_server',
'type' => 'string', 'type' => 'string',

View File

@@ -19,24 +19,24 @@
return array( return array(
'groups' => array( 'groups' => array(
'statistics' => array( 'statistics' => array(
'title' => \Froxlor\I18N\Lang::getAll()['admin']['statisticsettings'], 'title' => $lng['admin']['statisticsettings'],
'fields' => array( 'fields' => array(
'system_webalizer_quiet' => array( 'system_webalizer_quiet' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['webalizer_quiet'], 'label' => $lng['serversettings']['webalizer_quiet'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'webalizer_quiet', 'varname' => 'webalizer_quiet',
'type' => 'option', 'type' => 'option',
'default' => 2, 'default' => 2,
'option_mode' => 'one', 'option_mode' => 'one',
'option_options' => array( 'option_options' => array(
0 => \Froxlor\I18N\Lang::getAll()['admin']['webalizer']['normal'], 0 => $lng['admin']['webalizer']['normal'],
1 => \Froxlor\I18N\Lang::getAll()['admin']['webalizer']['quiet'], 1 => $lng['admin']['webalizer']['quiet'],
2 => \Froxlor\I18N\Lang::getAll()['admin']['webalizer']['veryquiet'] 2 => $lng['admin']['webalizer']['veryquiet']
), ),
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'system_awstats_enabled' => array( 'system_awstats_enabled' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['awstats_enabled'], 'label' => $lng['serversettings']['awstats_enabled'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'awstats_enabled', 'varname' => 'awstats_enabled',
'type' => 'bool', 'type' => 'bool',
@@ -44,7 +44,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'system_awstats_path' => array( 'system_awstats_path' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['awstats_path'], 'label' => $lng['serversettings']['awstats_path'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'awstats_path', 'varname' => 'awstats_path',
'type' => 'string', 'type' => 'string',
@@ -53,7 +53,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'system_awstats_awstatspath' => array( 'system_awstats_awstatspath' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['awstats_awstatspath'], 'label' => $lng['serversettings']['awstats_awstatspath'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'awstats_awstatspath', 'varname' => 'awstats_awstatspath',
'type' => 'string', 'type' => 'string',
@@ -62,7 +62,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'system_awstats_conf' => array( 'system_awstats_conf' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['awstats_conf'], 'label' => $lng['serversettings']['awstats_conf'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'awstats_conf', 'varname' => 'awstats_conf',
'type' => 'string', 'type' => 'string',
@@ -71,7 +71,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'system_awstats_icons' => array( 'system_awstats_icons' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['awstats_icons'], 'label' => $lng['serversettings']['awstats_icons'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'awstats_icons', 'varname' => 'awstats_icons',
'type' => 'string', 'type' => 'string',

View File

@@ -19,10 +19,10 @@
return array( return array(
'groups' => array( 'groups' => array(
'mail' => array( 'mail' => array(
'title' => \Froxlor\I18N\Lang::getAll()['admin']['mailserversettings'], 'title' => $lng['admin']['mailserversettings'],
'fields' => array( 'fields' => array(
'system_vmail_uid' => array( 'system_vmail_uid' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['vmail_uid'], 'label' => $lng['serversettings']['vmail_uid'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'vmail_uid', 'varname' => 'vmail_uid',
'type' => 'int', 'type' => 'int',
@@ -32,7 +32,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'system_vmail_gid' => array( 'system_vmail_gid' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['vmail_gid'], 'label' => $lng['serversettings']['vmail_gid'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'vmail_gid', 'varname' => 'vmail_gid',
'type' => 'int', 'type' => 'int',
@@ -42,7 +42,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'system_vmail_homedir' => array( 'system_vmail_homedir' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['vmail_homedir'], 'label' => $lng['serversettings']['vmail_homedir'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'vmail_homedir', 'varname' => 'vmail_homedir',
'type' => 'string', 'type' => 'string',
@@ -51,7 +51,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'system_vmail_maildirname' => array( 'system_vmail_maildirname' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['vmail_maildirname'], 'label' => $lng['serversettings']['vmail_maildirname'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'vmail_maildirname', 'varname' => 'vmail_maildirname',
'type' => 'string', 'type' => 'string',
@@ -61,7 +61,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'panel_sendalternativemail' => array( 'panel_sendalternativemail' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['sendalternativemail'], 'label' => $lng['serversettings']['sendalternativemail'],
'settinggroup' => 'panel', 'settinggroup' => 'panel',
'varname' => 'sendalternativemail', 'varname' => 'sendalternativemail',
'type' => 'bool', 'type' => 'bool',
@@ -69,7 +69,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'system_mail_quota_enabled' => array( 'system_mail_quota_enabled' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['mail_quota_enabled'], 'label' => $lng['serversettings']['mail_quota_enabled'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'mail_quota_enabled', 'varname' => 'mail_quota_enabled',
'type' => 'bool', 'type' => 'bool',
@@ -77,7 +77,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'system_mail_quota' => array( 'system_mail_quota' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['mail_quota'], 'label' => $lng['serversettings']['mail_quota'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'mail_quota', 'varname' => 'mail_quota',
'type' => 'int', 'type' => 'int',
@@ -85,7 +85,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'system_catchall_enabled' => array( 'system_catchall_enabled' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['catchall_enabled'], 'label' => $lng['serversettings']['catchall_enabled'],
'settinggroup' => 'catchall', 'settinggroup' => 'catchall',
'varname' => 'catchall_enabled', 'varname' => 'catchall_enabled',
'type' => 'bool', 'type' => 'bool',
@@ -93,7 +93,7 @@ return array(
'save_method' => 'storeSettingResetCatchall' 'save_method' => 'storeSettingResetCatchall'
), ),
'system_mailtraffic_enabled' => array( 'system_mailtraffic_enabled' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['mailtraffic_enabled'], 'label' => $lng['serversettings']['mailtraffic_enabled'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'mailtraffic_enabled', 'varname' => 'mailtraffic_enabled',
'type' => 'bool', 'type' => 'bool',
@@ -101,7 +101,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'system_mdaserver' => array( 'system_mdaserver' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['mdaserver'], 'label' => $lng['serversettings']['mdaserver'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'mdaserver', 'varname' => 'mdaserver',
'type' => 'option', 'type' => 'option',
@@ -114,7 +114,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'system_mdalog' => array( 'system_mdalog' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['mdalog'], 'label' => $lng['serversettings']['mdalog'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'mdalog', 'varname' => 'mdalog',
'type' => 'string', 'type' => 'string',
@@ -124,7 +124,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'system_mtaserver' => array( 'system_mtaserver' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['mtaserver'], 'label' => $lng['serversettings']['mtaserver'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'mtaserver', 'varname' => 'mtaserver',
'type' => 'option', 'type' => 'option',
@@ -137,7 +137,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'system_mtalog' => array( 'system_mtalog' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['mtalog'], 'label' => $lng['serversettings']['mtalog'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'mtalog', 'varname' => 'mtalog',
'type' => 'string', 'type' => 'string',

View File

@@ -19,10 +19,10 @@
return array( return array(
'groups' => array( 'groups' => array(
'ftpserver' => array( 'ftpserver' => array(
'title' => \Froxlor\I18N\Lang::getAll()['admin']['ftpserversettings'], 'title' => $lng['admin']['ftpserversettings'],
'fields' => array( 'fields' => array(
'ftpserver' => array( 'ftpserver' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['ftpserver'], 'label' => $lng['admin']['ftpserver'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'ftpserver', 'varname' => 'ftpserver',
'type' => 'option', 'type' => 'option',

View File

@@ -19,10 +19,10 @@
return array( return array(
'groups' => array( 'groups' => array(
'nameserver' => array( 'nameserver' => array(
'title' => \Froxlor\I18N\Lang::getAll()['admin']['nameserversettings'], 'title' => $lng['admin']['nameserversettings'],
'fields' => array( 'fields' => array(
'nameserver_enable' => array( 'nameserver_enable' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['bindenable'], 'label' => $lng['serversettings']['bindenable'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'bind_enable', 'varname' => 'bind_enable',
'type' => 'bool', 'type' => 'bool',
@@ -31,7 +31,7 @@ return array(
'overview_option' => true 'overview_option' => true
), ),
'system_dnsenabled' => array( 'system_dnsenabled' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['dnseditorenable'], 'label' => $lng['serversettings']['dnseditorenable'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'dnsenabled', 'varname' => 'dnsenabled',
'type' => 'bool', 'type' => 'bool',
@@ -39,7 +39,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'system_dns_server' => array( 'system_dns_server' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['dns_server'], 'label' => $lng['serversettings']['dns_server'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'dns_server', 'varname' => 'dns_server',
'type' => 'option', 'type' => 'option',
@@ -52,7 +52,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'system_bindconf_directory' => array( 'system_bindconf_directory' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['bindconf_directory'], 'label' => $lng['serversettings']['bindconf_directory'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'bindconf_directory', 'varname' => 'bindconf_directory',
'type' => 'string', 'type' => 'string',
@@ -61,7 +61,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'system_bindreload_command' => array( 'system_bindreload_command' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['bindreload_command'], 'label' => $lng['serversettings']['bindreload_command'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'bindreload_command', 'varname' => 'bindreload_command',
'type' => 'string', 'type' => 'string',
@@ -69,7 +69,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'system_nameservers' => array( 'system_nameservers' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['nameservers'], 'label' => $lng['serversettings']['nameservers'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'nameservers', 'varname' => 'nameservers',
'type' => 'string', 'type' => 'string',
@@ -79,7 +79,7 @@ return array(
'save_method' => 'storeSettingFieldInsertBindTask' 'save_method' => 'storeSettingFieldInsertBindTask'
), ),
'system_mxservers' => array( 'system_mxservers' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['mxservers'], 'label' => $lng['serversettings']['mxservers'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'mxservers', 'varname' => 'mxservers',
'type' => 'string', 'type' => 'string',
@@ -89,7 +89,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'system_axfrservers' => array( 'system_axfrservers' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['axfrservers'], 'label' => $lng['serversettings']['axfrservers'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'axfrservers', 'varname' => 'axfrservers',
'type' => 'string', 'type' => 'string',
@@ -100,7 +100,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'system_dns_createmailentry' => array( 'system_dns_createmailentry' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['mail_also_with_mxservers'], 'label' => $lng['serversettings']['mail_also_with_mxservers'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'dns_createmailentry', 'varname' => 'dns_createmailentry',
'type' => 'bool', 'type' => 'bool',
@@ -108,7 +108,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'system_defaultttl' => array( 'system_defaultttl' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['defaultttl'], 'label' => $lng['serversettings']['defaultttl'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'defaultttl', 'varname' => 'defaultttl',
'type' => 'int', 'type' => 'int',

View File

@@ -19,10 +19,10 @@
return array( return array(
'groups' => array( 'groups' => array(
'logging' => array( 'logging' => array(
'title' => \Froxlor\I18N\Lang::getAll()['admin']['loggersettings'], 'title' => $lng['admin']['loggersettings'],
'fields' => array( 'fields' => array(
'logger_enabled' => array( 'logger_enabled' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['logger']['enable'], 'label' => $lng['serversettings']['logger']['enable'],
'settinggroup' => 'logger', 'settinggroup' => 'logger',
'varname' => 'enabled', 'varname' => 'enabled',
'type' => 'bool', 'type' => 'bool',
@@ -31,20 +31,20 @@ return array(
'overview_option' => true 'overview_option' => true
), ),
'logger_severity' => array( 'logger_severity' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['logger']['severity'], 'label' => $lng['serversettings']['logger']['severity'],
'settinggroup' => 'logger', 'settinggroup' => 'logger',
'varname' => 'severity', 'varname' => 'severity',
'type' => 'option', 'type' => 'option',
'default' => 1, 'default' => 1,
'option_mode' => 'one', 'option_mode' => 'one',
'option_options' => array( 'option_options' => array(
1 => \Froxlor\I18N\Lang::getAll()['admin']['logger']['normal'], 1 => $lng['admin']['logger']['normal'],
2 => \Froxlor\I18N\Lang::getAll()['admin']['logger']['paranoid'] 2 => $lng['admin']['logger']['paranoid']
), ),
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'logger_logtypes' => array( 'logger_logtypes' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['logger']['types'], 'label' => $lng['serversettings']['logger']['types'],
'settinggroup' => 'logger', 'settinggroup' => 'logger',
'varname' => 'logtypes', 'varname' => 'logtypes',
'type' => 'option', 'type' => 'option',
@@ -58,7 +58,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'logger_logfile' => array( 'logger_logfile' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['logger']['logfile'], 'label' => $lng['serversettings']['logger']['logfile'],
'settinggroup' => 'logger', 'settinggroup' => 'logger',
'varname' => 'logfile', 'varname' => 'logfile',
'type' => 'string', 'type' => 'string',
@@ -68,16 +68,16 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'logger_log_cron' => array( 'logger_log_cron' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['logger']['logcron'], 'label' => $lng['serversettings']['logger']['logcron'],
'settinggroup' => 'logger', 'settinggroup' => 'logger',
'varname' => 'log_cron', 'varname' => 'log_cron',
'type' => 'option', 'type' => 'option',
'default' => 0, 'default' => 0,
'option_mode' => 'one', 'option_mode' => 'one',
'option_options' => array( 'option_options' => array(
0 => \Froxlor\I18N\Lang::getAll()['serversettings']['logger']['logcronoption']['never'], 0 => $lng['serversettings']['logger']['logcronoption']['never'],
1 => \Froxlor\I18N\Lang::getAll()['serversettings']['logger']['logcronoption']['once'], 1 => $lng['serversettings']['logger']['logcronoption']['once'],
2 => \Froxlor\I18N\Lang::getAll()['serversettings']['logger']['logcronoption']['always'] 2 => $lng['serversettings']['logger']['logcronoption']['always']
), ),
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
) )

View File

@@ -19,10 +19,10 @@
return array( return array(
'groups' => array( 'groups' => array(
'dkim' => array( 'dkim' => array(
'title' => \Froxlor\I18N\Lang::getAll()['admin']['dkimsettings'], 'title' => $lng['admin']['dkimsettings'],
'fields' => array( 'fields' => array(
'dkim_enabled' => array( 'dkim_enabled' => array(
'label' => \Froxlor\I18N\Lang::getAll()['dkim']['use_dkim'], 'label' => $lng['dkim']['use_dkim'],
'settinggroup' => 'dkim', 'settinggroup' => 'dkim',
'varname' => 'use_dkim', 'varname' => 'use_dkim',
'type' => 'bool', 'type' => 'bool',
@@ -31,7 +31,7 @@ return array(
'overview_option' => true 'overview_option' => true
), ),
'dkim_prefix' => array( 'dkim_prefix' => array(
'label' => \Froxlor\I18N\Lang::getAll()['dkim']['dkim_prefix'], 'label' => $lng['dkim']['dkim_prefix'],
'settinggroup' => 'dkim', 'settinggroup' => 'dkim',
'varname' => 'dkim_prefix', 'varname' => 'dkim_prefix',
'type' => 'string', 'type' => 'string',
@@ -40,7 +40,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'dkim_domains' => array( 'dkim_domains' => array(
'label' => \Froxlor\I18N\Lang::getAll()['dkim']['dkim_domains'], 'label' => $lng['dkim']['dkim_domains'],
'settinggroup' => 'dkim', 'settinggroup' => 'dkim',
'varname' => 'dkim_domains', 'varname' => 'dkim_domains',
'type' => 'string', 'type' => 'string',
@@ -49,7 +49,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'dkim_dkimkeys' => array( 'dkim_dkimkeys' => array(
'label' => \Froxlor\I18N\Lang::getAll()['dkim']['dkim_dkimkeys'], 'label' => $lng['dkim']['dkim_dkimkeys'],
'settinggroup' => 'dkim', 'settinggroup' => 'dkim',
'varname' => 'dkim_dkimkeys', 'varname' => 'dkim_dkimkeys',
'type' => 'string', 'type' => 'string',
@@ -58,7 +58,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'dkim_algorithm' => array( 'dkim_algorithm' => array(
'label' => \Froxlor\I18N\Lang::getAll()['dkim']['dkim_algorithm'], 'label' => $lng['dkim']['dkim_algorithm'],
'settinggroup' => 'dkim', 'settinggroup' => 'dkim',
'varname' => 'dkim_algorithm', 'varname' => 'dkim_algorithm',
'type' => 'option', 'type' => 'option',
@@ -72,7 +72,7 @@ return array(
'save_method' => 'storeSettingFieldInsertBindTask' 'save_method' => 'storeSettingFieldInsertBindTask'
), ),
'dkim_servicetype' => array( 'dkim_servicetype' => array(
'label' => \Froxlor\I18N\Lang::getAll()['dkim']['dkim_servicetype'], 'label' => $lng['dkim']['dkim_servicetype'],
'settinggroup' => 'dkim', 'settinggroup' => 'dkim',
'varname' => 'dkim_servicetype', 'varname' => 'dkim_servicetype',
'type' => 'option', 'type' => 'option',
@@ -86,8 +86,8 @@ return array(
), ),
'dkim_keylength' => array( 'dkim_keylength' => array(
'label' => array( 'label' => array(
'title' => \Froxlor\I18N\Lang::getAll()['dkim']['dkim_keylength']['title'], 'title' => $lng['dkim']['dkim_keylength']['title'],
'description' => sprintf(\Froxlor\I18N\Lang::getAll()['dkim']['dkim_keylength']['description'], \Froxlor\Settings::Get('dkim.dkim_prefix')) 'description' => sprintf($lng['dkim']['dkim_keylength']['description'], \Froxlor\Settings::Get('dkim.dkim_prefix'))
), ),
'settinggroup' => 'dkim', 'settinggroup' => 'dkim',
'varname' => 'dkim_keylength', 'varname' => 'dkim_keylength',
@@ -101,7 +101,7 @@ return array(
'save_method' => 'storeSettingFieldInsertBindTask' 'save_method' => 'storeSettingFieldInsertBindTask'
), ),
'dkim_notes' => array( 'dkim_notes' => array(
'label' => \Froxlor\I18N\Lang::getAll()['dkim']['dkim_notes'], 'label' => $lng['dkim']['dkim_notes'],
'settinggroup' => 'dkim', 'settinggroup' => 'dkim',
'varname' => 'dkim_notes', 'varname' => 'dkim_notes',
'type' => 'string', 'type' => 'string',
@@ -110,7 +110,7 @@ return array(
'save_method' => 'storeSettingFieldInsertBindTask' 'save_method' => 'storeSettingFieldInsertBindTask'
), ),
'dkim_add_adsp' => array( 'dkim_add_adsp' => array(
'label' => \Froxlor\I18N\Lang::getAll()['dkim']['dkim_add_adsp'], 'label' => $lng['dkim']['dkim_add_adsp'],
'settinggroup' => 'dkim', 'settinggroup' => 'dkim',
'varname' => 'dkim_add_adsp', 'varname' => 'dkim_add_adsp',
'type' => 'bool', 'type' => 'bool',
@@ -118,7 +118,7 @@ return array(
'save_method' => 'storeSettingFieldInsertBindTask' 'save_method' => 'storeSettingFieldInsertBindTask'
), ),
'dkim_add_adsppolicy' => array( 'dkim_add_adsppolicy' => array(
'label' => \Froxlor\I18N\Lang::getAll()['dkim']['dkim_add_adsppolicy'], 'label' => $lng['dkim']['dkim_add_adsppolicy'],
'settinggroup' => 'dkim', 'settinggroup' => 'dkim',
'varname' => 'dkim_add_adsppolicy', 'varname' => 'dkim_add_adsppolicy',
'type' => 'option', 'type' => 'option',
@@ -132,7 +132,7 @@ return array(
'save_method' => 'storeSettingFieldInsertBindTask' 'save_method' => 'storeSettingFieldInsertBindTask'
), ),
'dkimrestart_command' => array( 'dkimrestart_command' => array(
'label' => \Froxlor\I18N\Lang::getAll()['dkim']['dkimrestart_command'], 'label' => $lng['dkim']['dkimrestart_command'],
'settinggroup' => 'dkim', 'settinggroup' => 'dkim',
'varname' => 'dkimrestart_command', 'varname' => 'dkimrestart_command',
'type' => 'string', 'type' => 'string',

View File

@@ -17,10 +17,10 @@
return array( return array(
'groups' => array( 'groups' => array(
'spf' => array( 'spf' => array(
'title' => \Froxlor\I18N\Lang::getAll()['admin']['spfsettings'], 'title' => $lng['admin']['spfsettings'],
'fields' => array( 'fields' => array(
'spf_enabled' => array( 'spf_enabled' => array(
'label' => \Froxlor\I18N\Lang::getAll()['spf']['use_spf'], 'label' => $lng['spf']['use_spf'],
'settinggroup' => 'spf', 'settinggroup' => 'spf',
'varname' => 'use_spf', 'varname' => 'use_spf',
'type' => 'bool', 'type' => 'bool',
@@ -29,7 +29,7 @@ return array(
'overview_option' => true 'overview_option' => true
), ),
'spf_entry' => array( 'spf_entry' => array(
'label' => \Froxlor\I18N\Lang::getAll()['spf']['spf_entry'], 'label' => $lng['spf']['spf_entry'],
'settinggroup' => 'spf', 'settinggroup' => 'spf',
'varname' => 'spf_entry', 'varname' => 'spf_entry',
'type' => 'string', 'type' => 'string',

View File

@@ -19,10 +19,10 @@
return array( return array(
'groups' => array( 'groups' => array(
'security' => array( 'security' => array(
'title' => \Froxlor\I18N\Lang::getAll()['admin']['security_settings'], 'title' => $lng['admin']['security_settings'],
'fields' => array( 'fields' => array(
'panel_unix_names' => array( 'panel_unix_names' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['unix_names'], 'label' => $lng['serversettings']['unix_names'],
'settinggroup' => 'panel', 'settinggroup' => 'panel',
'varname' => 'unix_names', 'varname' => 'unix_names',
'type' => 'bool', 'type' => 'bool',
@@ -30,7 +30,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'system_mailpwcleartext' => array( 'system_mailpwcleartext' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['mailpwcleartext'], 'label' => $lng['serversettings']['mailpwcleartext'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'mailpwcleartext', 'varname' => 'mailpwcleartext',
'type' => 'bool', 'type' => 'bool',
@@ -38,7 +38,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'system_passwordcryptfunc' => array( 'system_passwordcryptfunc' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['passwordcryptfunc'], 'label' => $lng['serversettings']['passwordcryptfunc'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'passwordcryptfunc', 'varname' => 'passwordcryptfunc',
'type' => 'option', 'type' => 'option',
@@ -51,7 +51,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'system_allow_error_report_admin' => array( 'system_allow_error_report_admin' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['allow_error_report_admin'], 'label' => $lng['serversettings']['allow_error_report_admin'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'allow_error_report_admin', 'varname' => 'allow_error_report_admin',
'type' => 'bool', 'type' => 'bool',
@@ -59,7 +59,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'system_allow_error_report_customer' => array( 'system_allow_error_report_customer' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['allow_error_report_customer'], 'label' => $lng['serversettings']['allow_error_report_customer'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'allow_error_report_customer', 'varname' => 'allow_error_report_customer',
'type' => 'bool', 'type' => 'bool',
@@ -67,7 +67,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'system_allow_customer_shell' => array( 'system_allow_customer_shell' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['allow_allow_customer_shell'], 'label' => $lng['serversettings']['allow_allow_customer_shell'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'allow_customer_shell', 'varname' => 'allow_customer_shell',
'type' => 'bool', 'type' => 'bool',
@@ -75,7 +75,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'system_available_shells' => array( 'system_available_shells' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['available_shells'], 'label' => $lng['serversettings']['available_shells'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'available_shells', 'varname' => 'available_shells',
'type' => 'string', 'type' => 'string',

View File

@@ -16,10 +16,10 @@
return array( return array(
'groups' => array( 'groups' => array(
'diskquota' => array( 'diskquota' => array(
'title' => \Froxlor\I18N\Lang::getAll()['diskquota'], 'title' => $lng['diskquota'],
'fields' => array( 'fields' => array(
'diskquota_enabled' => array( 'diskquota_enabled' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['diskquota_enabled'], 'label' => $lng['serversettings']['diskquota_enabled'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'diskquota_enabled', 'varname' => 'diskquota_enabled',
'type' => 'bool', 'type' => 'bool',
@@ -28,7 +28,7 @@ return array(
'overview_option' => true 'overview_option' => true
), ),
'diskquota_repquota_path' => array( 'diskquota_repquota_path' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['diskquota_repquota_path']['description'], 'label' => $lng['serversettings']['diskquota_repquota_path']['description'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'diskquota_repquota_path', 'varname' => 'diskquota_repquota_path',
'type' => 'string', 'type' => 'string',
@@ -36,7 +36,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'diskquota_quotatool_path' => array( 'diskquota_quotatool_path' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['diskquota_quotatool_path']['description'], 'label' => $lng['serversettings']['diskquota_quotatool_path']['description'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'diskquota_quotatool_path', 'varname' => 'diskquota_quotatool_path',
'type' => 'string', 'type' => 'string',
@@ -44,7 +44,7 @@ return array(
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
), ),
'diskquota_customer_partition' => array( 'diskquota_customer_partition' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['diskquota_customer_partition']['description'], 'label' => $lng['serversettings']['diskquota_customer_partition']['description'],
'settinggroup' => 'system', 'settinggroup' => 'system',
'varname' => 'diskquota_customer_partition', 'varname' => 'diskquota_customer_partition',
'type' => 'string', 'type' => 'string',

View File

@@ -35,13 +35,13 @@ if ($page == 'admins' && \Froxlor\User::getAll()['change_serversettings'] == '1'
$log->logAction(ADM_ACTION, LOG_NOTICE, "viewed admin_admins"); $log->logAction(ADM_ACTION, LOG_NOTICE, "viewed admin_admins");
$fields = array( $fields = array(
'loginname' => \Froxlor\I18N\Lang::getAll()['login']['username'], 'loginname' => $lng['login']['username'],
'name' => \Froxlor\I18N\Lang::getAll()['customer']['name'], 'name' => $lng['customer']['name'],
'diskspace' => \Froxlor\I18N\Lang::getAll()['customer']['diskspace'], 'diskspace' => $lng['customer']['diskspace'],
'diskspace_used' => \Froxlor\I18N\Lang::getAll()['customer']['diskspace'] . ' (' . \Froxlor\I18N\Lang::getAll()['panel']['used'] . ')', 'diskspace_used' => $lng['customer']['diskspace'] . ' (' . $lng['panel']['used'] . ')',
'traffic' => \Froxlor\I18N\Lang::getAll()['customer']['traffic'], 'traffic' => $lng['customer']['traffic'],
'traffic_used' => \Froxlor\I18N\Lang::getAll()['customer']['traffic'] . ' (' . \Froxlor\I18N\Lang::getAll()['panel']['used'] . ')', 'traffic_used' => $lng['customer']['traffic'] . ' (' . $lng['panel']['used'] . ')',
'deactivated' => \Froxlor\I18N\Lang::getAll()['admin']['deactivated'] 'deactivated' => $lng['admin']['deactivated']
); );
$paging = new \Froxlor\UI\Paging(\Froxlor\User::getAll(), TABLE_PANEL_ADMINS, $fields); $paging = new \Froxlor\UI\Paging(\Froxlor\User::getAll(), TABLE_PANEL_ADMINS, $fields);
$admins = ''; $admins = '';
@@ -200,7 +200,7 @@ if ($page == 'admins' && \Froxlor\User::getAll()['change_serversettings'] == '1'
$language_options .= \Froxlor\UI\HTML::makeoption($language_name, $language_file, \Froxlor\User::getAll()['language'], true); $language_options .= \Froxlor\UI\HTML::makeoption($language_name, $language_file, \Froxlor\User::getAll()['language'], true);
} }
$ipaddress = \Froxlor\UI\HTML::makeoption(\Froxlor\I18N\Lang::getAll()['admin']['allips'], "-1"); $ipaddress = \Froxlor\UI\HTML::makeoption($lng['admin']['allips'], "-1");
$ipsandports_stmt = Database::query(" $ipsandports_stmt = Database::query("
SELECT `id`, `ip` FROM `" . TABLE_PANEL_IPSANDPORTS . "` GROUP BY `ip` ORDER BY `ip` ASC SELECT `id`, `ip` FROM `" . TABLE_PANEL_IPSANDPORTS . "` GROUP BY `ip` ORDER BY `ip` ASC
"); ");
@@ -209,17 +209,17 @@ if ($page == 'admins' && \Froxlor\User::getAll()['change_serversettings'] == '1'
$ipaddress .= \Froxlor\UI\HTML::makeoption($row['ip'], $row['id']); $ipaddress .= \Froxlor\UI\HTML::makeoption($row['ip'], $row['id']);
} }
$customers_ul = \Froxlor\UI\HTML::makecheckbox('customers_ul', \Froxlor\I18N\Lang::getAll()['customer']['unlimited'], '-1', false, '0', true, true); $customers_ul = \Froxlor\UI\HTML::makecheckbox('customers_ul', $lng['customer']['unlimited'], '-1', false, '0', true, true);
$diskspace_ul = \Froxlor\UI\HTML::makecheckbox('diskspace_ul', \Froxlor\I18N\Lang::getAll()['customer']['unlimited'], '-1', false, '0', true, true); $diskspace_ul = \Froxlor\UI\HTML::makecheckbox('diskspace_ul', $lng['customer']['unlimited'], '-1', false, '0', true, true);
$traffic_ul = \Froxlor\UI\HTML::makecheckbox('traffic_ul', \Froxlor\I18N\Lang::getAll()['customer']['unlimited'], '-1', false, '0', true, true); $traffic_ul = \Froxlor\UI\HTML::makecheckbox('traffic_ul', $lng['customer']['unlimited'], '-1', false, '0', true, true);
$domains_ul = \Froxlor\UI\HTML::makecheckbox('domains_ul', \Froxlor\I18N\Lang::getAll()['customer']['unlimited'], '-1', false, '0', true, true); $domains_ul = \Froxlor\UI\HTML::makecheckbox('domains_ul', $lng['customer']['unlimited'], '-1', false, '0', true, true);
$subdomains_ul = \Froxlor\UI\HTML::makecheckbox('subdomains_ul', \Froxlor\I18N\Lang::getAll()['customer']['unlimited'], '-1', false, '0', true, true); $subdomains_ul = \Froxlor\UI\HTML::makecheckbox('subdomains_ul', $lng['customer']['unlimited'], '-1', false, '0', true, true);
$emails_ul = \Froxlor\UI\HTML::makecheckbox('emails_ul', \Froxlor\I18N\Lang::getAll()['customer']['unlimited'], '-1', false, '0', true, true); $emails_ul = \Froxlor\UI\HTML::makecheckbox('emails_ul', $lng['customer']['unlimited'], '-1', false, '0', true, true);
$email_accounts_ul = \Froxlor\UI\HTML::makecheckbox('email_accounts_ul', \Froxlor\I18N\Lang::getAll()['customer']['unlimited'], '-1', false, '0', true, true); $email_accounts_ul = \Froxlor\UI\HTML::makecheckbox('email_accounts_ul', $lng['customer']['unlimited'], '-1', false, '0', true, true);
$email_forwarders_ul = \Froxlor\UI\HTML::makecheckbox('email_forwarders_ul', \Froxlor\I18N\Lang::getAll()['customer']['unlimited'], '-1', false, '0', true, true); $email_forwarders_ul = \Froxlor\UI\HTML::makecheckbox('email_forwarders_ul', $lng['customer']['unlimited'], '-1', false, '0', true, true);
$email_quota_ul = \Froxlor\UI\HTML::makecheckbox('email_quota_ul', \Froxlor\I18N\Lang::getAll()['customer']['unlimited'], '-1', false, '0', true, true); $email_quota_ul = \Froxlor\UI\HTML::makecheckbox('email_quota_ul', $lng['customer']['unlimited'], '-1', false, '0', true, true);
$ftps_ul = \Froxlor\UI\HTML::makecheckbox('ftps_ul', \Froxlor\I18N\Lang::getAll()['customer']['unlimited'], '-1', false, '0', true, true); $ftps_ul = \Froxlor\UI\HTML::makecheckbox('ftps_ul', $lng['customer']['unlimited'], '-1', false, '0', true, true);
$mysqls_ul = \Froxlor\UI\HTML::makecheckbox('mysqls_ul', \Froxlor\I18N\Lang::getAll()['customer']['unlimited'], '-1', false, '0', true, true); $mysqls_ul = \Froxlor\UI\HTML::makecheckbox('mysqls_ul', $lng['customer']['unlimited'], '-1', false, '0', true, true);
$admin_add_data = include_once dirname(__FILE__) . '/lib/formfields/admin/admin/formfield.admin_add.php'; $admin_add_data = include_once dirname(__FILE__) . '/lib/formfields/admin/admin/formfield.admin_add.php';
$admin_add_form = \Froxlor\UI\HtmlForm::genHTMLForm($admin_add_data); $admin_add_form = \Froxlor\UI\HtmlForm::genHTMLForm($admin_add_data);
@@ -258,57 +258,57 @@ if ($page == 'admins' && \Froxlor\User::getAll()['change_serversettings'] == '1'
$result['diskspace'] = round($result['diskspace'] / 1024, $dec_places); $result['diskspace'] = round($result['diskspace'] / 1024, $dec_places);
$result['email'] = $idna_convert->decode($result['email']); $result['email'] = $idna_convert->decode($result['email']);
$customers_ul = \Froxlor\UI\HTML::makecheckbox('customers_ul', \Froxlor\I18N\Lang::getAll()['customer']['unlimited'], '-1', false, $result['customers'], true, true); $customers_ul = \Froxlor\UI\HTML::makecheckbox('customers_ul', $lng['customer']['unlimited'], '-1', false, $result['customers'], true, true);
if ($result['customers'] == '-1') { if ($result['customers'] == '-1') {
$result['customers'] = ''; $result['customers'] = '';
} }
$diskspace_ul = \Froxlor\UI\HTML::makecheckbox('diskspace_ul', \Froxlor\I18N\Lang::getAll()['customer']['unlimited'], '-1', false, $result['diskspace'], true, true); $diskspace_ul = \Froxlor\UI\HTML::makecheckbox('diskspace_ul', $lng['customer']['unlimited'], '-1', false, $result['diskspace'], true, true);
if ($result['diskspace'] == '-1') { if ($result['diskspace'] == '-1') {
$result['diskspace'] = ''; $result['diskspace'] = '';
} }
$traffic_ul = \Froxlor\UI\HTML::makecheckbox('traffic_ul', \Froxlor\I18N\Lang::getAll()['customer']['unlimited'], '-1', false, $result['traffic'], true, true); $traffic_ul = \Froxlor\UI\HTML::makecheckbox('traffic_ul', $lng['customer']['unlimited'], '-1', false, $result['traffic'], true, true);
if ($result['traffic'] == '-1') { if ($result['traffic'] == '-1') {
$result['traffic'] = ''; $result['traffic'] = '';
} }
$domains_ul = \Froxlor\UI\HTML::makecheckbox('domains_ul', \Froxlor\I18N\Lang::getAll()['customer']['unlimited'], '-1', false, $result['domains'], true, true); $domains_ul = \Froxlor\UI\HTML::makecheckbox('domains_ul', $lng['customer']['unlimited'], '-1', false, $result['domains'], true, true);
if ($result['domains'] == '-1') { if ($result['domains'] == '-1') {
$result['domains'] = ''; $result['domains'] = '';
} }
$subdomains_ul = \Froxlor\UI\HTML::makecheckbox('subdomains_ul', \Froxlor\I18N\Lang::getAll()['customer']['unlimited'], '-1', false, $result['subdomains'], true, true); $subdomains_ul = \Froxlor\UI\HTML::makecheckbox('subdomains_ul', $lng['customer']['unlimited'], '-1', false, $result['subdomains'], true, true);
if ($result['subdomains'] == '-1') { if ($result['subdomains'] == '-1') {
$result['subdomains'] = ''; $result['subdomains'] = '';
} }
$emails_ul = \Froxlor\UI\HTML::makecheckbox('emails_ul', \Froxlor\I18N\Lang::getAll()['customer']['unlimited'], '-1', false, $result['emails'], true, true); $emails_ul = \Froxlor\UI\HTML::makecheckbox('emails_ul', $lng['customer']['unlimited'], '-1', false, $result['emails'], true, true);
if ($result['emails'] == '-1') { if ($result['emails'] == '-1') {
$result['emails'] = ''; $result['emails'] = '';
} }
$email_accounts_ul = \Froxlor\UI\HTML::makecheckbox('email_accounts_ul', \Froxlor\I18N\Lang::getAll()['customer']['unlimited'], '-1', false, $result['email_accounts'], true, true); $email_accounts_ul = \Froxlor\UI\HTML::makecheckbox('email_accounts_ul', $lng['customer']['unlimited'], '-1', false, $result['email_accounts'], true, true);
if ($result['email_accounts'] == '-1') { if ($result['email_accounts'] == '-1') {
$result['email_accounts'] = ''; $result['email_accounts'] = '';
} }
$email_forwarders_ul = \Froxlor\UI\HTML::makecheckbox('email_forwarders_ul', \Froxlor\I18N\Lang::getAll()['customer']['unlimited'], '-1', false, $result['email_forwarders'], true, true); $email_forwarders_ul = \Froxlor\UI\HTML::makecheckbox('email_forwarders_ul', $lng['customer']['unlimited'], '-1', false, $result['email_forwarders'], true, true);
if ($result['email_forwarders'] == '-1') { if ($result['email_forwarders'] == '-1') {
$result['email_forwarders'] = ''; $result['email_forwarders'] = '';
} }
$email_quota_ul = \Froxlor\UI\HTML::makecheckbox('email_quota_ul', \Froxlor\I18N\Lang::getAll()['customer']['unlimited'], '-1', false, $result['email_quota'], true, true); $email_quota_ul = \Froxlor\UI\HTML::makecheckbox('email_quota_ul', $lng['customer']['unlimited'], '-1', false, $result['email_quota'], true, true);
if ($result['email_quota'] == '-1') { if ($result['email_quota'] == '-1') {
$result['email_quota'] = ''; $result['email_quota'] = '';
} }
$ftps_ul = \Froxlor\UI\HTML::makecheckbox('ftps_ul', \Froxlor\I18N\Lang::getAll()['customer']['unlimited'], '-1', false, $result['ftps'], true, true); $ftps_ul = \Froxlor\UI\HTML::makecheckbox('ftps_ul', $lng['customer']['unlimited'], '-1', false, $result['ftps'], true, true);
if ($result['ftps'] == '-1') { if ($result['ftps'] == '-1') {
$result['ftps'] = ''; $result['ftps'] = '';
} }
$mysqls_ul = \Froxlor\UI\HTML::makecheckbox('mysqls_ul', \Froxlor\I18N\Lang::getAll()['customer']['unlimited'], '-1', false, $result['mysqls'], true, true); $mysqls_ul = \Froxlor\UI\HTML::makecheckbox('mysqls_ul', $lng['customer']['unlimited'], '-1', false, $result['mysqls'], true, true);
if ($result['mysqls'] == '-1') { if ($result['mysqls'] == '-1') {
$result['mysqls'] = ''; $result['mysqls'] = '';
} }
@@ -318,7 +318,7 @@ if ($page == 'admins' && \Froxlor\User::getAll()['change_serversettings'] == '1'
$language_options .= \Froxlor\UI\HTML::makeoption($language_name, $language_file, $result['def_language'], true); $language_options .= \Froxlor\UI\HTML::makeoption($language_name, $language_file, $result['def_language'], true);
} }
$ipaddress = \Froxlor\UI\HTML::makeoption(\Froxlor\I18N\Lang::getAll()['admin']['allips'], "-1", $result['ip']); $ipaddress = \Froxlor\UI\HTML::makeoption($lng['admin']['allips'], "-1", $result['ip']);
$ipsandports_stmt = Database::query(" $ipsandports_stmt = Database::query("
SELECT `id`, `ip` FROM `" . TABLE_PANEL_IPSANDPORTS . "` GROUP BY `id`, `ip` ORDER BY `ip`, `port` ASC SELECT `id`, `ip` FROM `" . TABLE_PANEL_IPSANDPORTS . "` GROUP BY `id`, `ip` ORDER BY `ip`, `port` ASC
"); ");

View File

@@ -41,7 +41,7 @@ if ($action == 'delete' && function_exists('apcu_clear_cache') && \Froxlor\User:
} }
if (! function_exists('apcu_cache_info') || ! function_exists('apcu_sma_info')) { if (! function_exists('apcu_cache_info') || ! function_exists('apcu_sma_info')) {
\Froxlor\UI\Response::standard_error(\Froxlor\I18N\Lang::getAll()['error']['no_apcuinfo']); \Froxlor\UI\Response::standard_error($lng['error']['no_apcuinfo']);
} }
if ($page == 'showinfo') { if ($page == 'showinfo') {
@@ -55,7 +55,7 @@ if ($page == 'showinfo') {
$mem_avail = $mem['avail_mem']; $mem_avail = $mem['avail_mem'];
$mem_used = $mem_size - $mem_avail; $mem_used = $mem_size - $mem_avail;
$seg_size = bsize($mem['seg_size']); $seg_size = bsize($mem['seg_size']);
$sharedmem = sprintf(\Froxlor\I18N\Lang::getAll()['apcuinfo']['sharedmemval'], $mem['num_seg'], $seg_size, $cache['memory_type']); $sharedmem = sprintf($lng['apcuinfo']['sharedmemval'], $mem['num_seg'], $seg_size, $cache['memory_type']);
$req_rate_user = sprintf("%.2f", $cache['num_hits'] ? (($cache['num_hits'] + $cache['num_misses']) / $passtime) : 0); $req_rate_user = sprintf("%.2f", $cache['num_hits'] ? (($cache['num_hits'] + $cache['num_misses']) / $passtime) : 0);
$hit_rate_user = sprintf("%.2f", $cache['num_hits'] ? (($cache['num_hits']) / $passtime) : 0); $hit_rate_user = sprintf("%.2f", $cache['num_hits'] ? (($cache['num_hits']) / $passtime) : 0);
$miss_rate_user = sprintf("%.2f", $cache['num_misses'] ? (($cache['num_misses']) / $passtime) : 0); $miss_rate_user = sprintf("%.2f", $cache['num_misses'] ? (($cache['num_misses']) / $passtime) : 0);
@@ -69,11 +69,11 @@ if ($page == 'showinfo') {
// check for possible empty values that are used in the templates // check for possible empty values that are used in the templates
if (! isset($cache['file_upload_progress'])) { if (! isset($cache['file_upload_progress'])) {
$cache['file_upload_progress'] = \Froxlor\I18N\Lang::getAll()['logger']['unknown']; $cache['file_upload_progress'] = $lng['logger']['unknown'];
} }
if (! isset($cache['num_expunges'])) { if (! isset($cache['num_expunges'])) {
$cache['num_expunges'] = \Froxlor\I18N\Lang::getAll()['logger']['unknown']; $cache['num_expunges'] = $lng['logger']['unknown'];
} }
$runtimelines = ''; $runtimelines = '';

View File

@@ -116,7 +116,7 @@ if (\Froxlor\User::getAll()['change_serversettings'] == '1') {
foreach ($daemons as $di => $dd) { foreach ($daemons as $di => $dd) {
$title = $dd->title; $title = $dd->title;
if ($dd->default) { if ($dd->default) {
$title = $title . " (" . strtolower(\Froxlor\I18N\Lang::getAll()['panel']['default']) . ")"; $title = $title . " (" . strtolower($lng['panel']['default']) . ")";
} }
$daemons_select .= \Froxlor\UI\HTML::makeoption($title, $di); $daemons_select .= \Froxlor\UI\HTML::makeoption($title, $di);
} }

View File

@@ -31,9 +31,9 @@ if ($page == 'cronjobs' || $page == 'overview') {
$log->logAction(ADM_ACTION, LOG_NOTICE, 'viewed admin_cronjobs'); $log->logAction(ADM_ACTION, LOG_NOTICE, 'viewed admin_cronjobs');
$fields = array( $fields = array(
'c.lastrun' => \Froxlor\I18N\Lang::getAll()['cron']['lastrun'], 'c.lastrun' => $lng['cron']['lastrun'],
'c.interval' => \Froxlor\I18N\Lang::getAll()['cron']['interval'], 'c.interval' => $lng['cron']['interval'],
'c.isactive' => \Froxlor\I18N\Lang::getAll()['cron']['isactive'] 'c.isactive' => $lng['cron']['isactive']
); );
$paging = new \Froxlor\UI\Paging(\Froxlor\User::getAll(), TABLE_PANEL_CRONRUNS, $fields); $paging = new \Froxlor\UI\Paging(\Froxlor\User::getAll(), TABLE_PANEL_CRONRUNS, $fields);
@@ -61,9 +61,9 @@ if ($page == 'cronjobs' || $page == 'overview') {
$row = \Froxlor\PhpHelper::htmlentities_array($row); $row = \Froxlor\PhpHelper::htmlentities_array($row);
$row['lastrun'] = date('d.m.Y H:i', $row['lastrun']); $row['lastrun'] = date('d.m.Y H:i', $row['lastrun']);
$row['isactive'] = ((int) $row['isactive'] == 1) ? \Froxlor\I18N\Lang::getAll()['panel']['yes'] : \Froxlor\I18N\Lang::getAll()['panel']['no']; $row['isactive'] = ((int) $row['isactive'] == 1) ? $lng['panel']['yes'] : $lng['panel']['no'];
$description = \Froxlor\I18N\Lang::getAll()['crondesc'][$row['desc_lng_key']]; $description = $lng['crondesc'][$row['desc_lng_key']];
eval("\$crons.=\"" . \Froxlor\UI\Template::getTemplate('cronjobs/cronjobs_cronjob') . "\";"); eval("\$crons.=\"" . \Froxlor\UI\Template::getTemplate('cronjobs/cronjobs_cronjob') . "\";");
$count ++; $count ++;
@@ -104,11 +104,11 @@ if ($page == 'cronjobs' || $page == 'overview') {
$interval_value = $interval_nfo[0]; $interval_value = $interval_nfo[0];
$interval_interval = ''; $interval_interval = '';
$interval_interval .= \Froxlor\UI\HTML::makeoption(\Froxlor\I18N\Lang::getAll()['cronmgmt']['minutes'], 'MINUTE', $interval_nfo[1]); $interval_interval .= \Froxlor\UI\HTML::makeoption($lng['cronmgmt']['minutes'], 'MINUTE', $interval_nfo[1]);
$interval_interval .= \Froxlor\UI\HTML::makeoption(\Froxlor\I18N\Lang::getAll()['cronmgmt']['hours'], 'HOUR', $interval_nfo[1]); $interval_interval .= \Froxlor\UI\HTML::makeoption($lng['cronmgmt']['hours'], 'HOUR', $interval_nfo[1]);
$interval_interval .= \Froxlor\UI\HTML::makeoption(\Froxlor\I18N\Lang::getAll()['cronmgmt']['days'], 'DAY', $interval_nfo[1]); $interval_interval .= \Froxlor\UI\HTML::makeoption($lng['cronmgmt']['days'], 'DAY', $interval_nfo[1]);
$interval_interval .= \Froxlor\UI\HTML::makeoption(\Froxlor\I18N\Lang::getAll()['cronmgmt']['weeks'], 'WEEK', $interval_nfo[1]); $interval_interval .= \Froxlor\UI\HTML::makeoption($lng['cronmgmt']['weeks'], 'WEEK', $interval_nfo[1]);
$interval_interval .= \Froxlor\UI\HTML::makeoption(\Froxlor\I18N\Lang::getAll()['cronmgmt']['months'], 'MONTH', $interval_nfo[1]); $interval_interval .= \Froxlor\UI\HTML::makeoption($lng['cronmgmt']['months'], 'MONTH', $interval_nfo[1]);
// end of interval // end of interval
$change_cronfile = false; $change_cronfile = false;

View File

@@ -36,16 +36,16 @@ if ($page == 'customers' && \Froxlor\User::getAll()['customers'] != '0') {
$log->logAction(ADM_ACTION, LOG_NOTICE, "viewed admin_customers"); $log->logAction(ADM_ACTION, LOG_NOTICE, "viewed admin_customers");
$fields = array( $fields = array(
'c.loginname' => \Froxlor\I18N\Lang::getAll()['login']['username'], 'c.loginname' => $lng['login']['username'],
'a.loginname' => \Froxlor\I18N\Lang::getAll()['admin']['admin'], 'a.loginname' => $lng['admin']['admin'],
'c.name' => \Froxlor\I18N\Lang::getAll()['customer']['name'], 'c.name' => $lng['customer']['name'],
'c.email' => \Froxlor\I18N\Lang::getAll()['customer']['email'], 'c.email' => $lng['customer']['email'],
'c.firstname' => \Froxlor\I18N\Lang::getAll()['customer']['firstname'], 'c.firstname' => $lng['customer']['firstname'],
'c.company' => \Froxlor\I18N\Lang::getAll()['customer']['company'], 'c.company' => $lng['customer']['company'],
'c.diskspace' => \Froxlor\I18N\Lang::getAll()['customer']['diskspace'], 'c.diskspace' => $lng['customer']['diskspace'],
'c.diskspace_used' => \Froxlor\I18N\Lang::getAll()['customer']['diskspace'] . ' (' . \Froxlor\I18N\Lang::getAll()['panel']['used'] . ')', 'c.diskspace_used' => $lng['customer']['diskspace'] . ' (' . $lng['panel']['used'] . ')',
'c.traffic' => \Froxlor\I18N\Lang::getAll()['customer']['traffic'], 'c.traffic' => $lng['customer']['traffic'],
'c.traffic_used' => \Froxlor\I18N\Lang::getAll()['customer']['traffic'] . ' (' . \Froxlor\I18N\Lang::getAll()['panel']['used'] . ')' 'c.traffic_used' => $lng['customer']['traffic'] . ' (' . $lng['panel']['used'] . ')'
); );
$paging = new \Froxlor\UI\Paging(\Froxlor\User::getAll(), TABLE_PANEL_CUSTOMERS, $fields); $paging = new \Froxlor\UI\Paging(\Froxlor\User::getAll(), TABLE_PANEL_CUSTOMERS, $fields);
@@ -99,7 +99,7 @@ if ($page == 'customers' && \Froxlor\User::getAll()['customers'] != '0') {
$row['traffic'] = round($row['traffic'] / (1024 * 1024), $dec_places); $row['traffic'] = round($row['traffic'] / (1024 * 1024), $dec_places);
$row['diskspace_used'] = round($row['diskspace_used'] / 1024, $dec_places); $row['diskspace_used'] = round($row['diskspace_used'] / 1024, $dec_places);
$row['diskspace'] = round($row['diskspace'] / 1024, $dec_places); $row['diskspace'] = round($row['diskspace'] / 1024, $dec_places);
$last_login = ((int) $row['lastlogin_succ'] == 0) ? \Froxlor\I18N\Lang::getAll()['panel']['neverloggedin'] : date('d.m.Y', $row['lastlogin_succ']); $last_login = ((int) $row['lastlogin_succ'] == 0) ? $lng['panel']['neverloggedin'] : date('d.m.Y', $row['lastlogin_succ']);
/** /**
* percent-values for progressbar * percent-values for progressbar
@@ -285,19 +285,19 @@ if ($page == 'customers' && \Froxlor\User::getAll()['customers'] != '0') {
$language_options .= \Froxlor\UI\HTML::makeoption($language_name, $language_file, Settings::Get('panel.standardlanguage'), true); $language_options .= \Froxlor\UI\HTML::makeoption($language_name, $language_file, Settings::Get('panel.standardlanguage'), true);
} }
$diskspace_ul = \Froxlor\UI\HTML::makecheckbox('diskspace_ul', \Froxlor\I18N\Lang::getAll()['customer']['unlimited'], '-1', false, '0', true, true); $diskspace_ul = \Froxlor\UI\HTML::makecheckbox('diskspace_ul', $lng['customer']['unlimited'], '-1', false, '0', true, true);
$traffic_ul = \Froxlor\UI\HTML::makecheckbox('traffic_ul', \Froxlor\I18N\Lang::getAll()['customer']['unlimited'], '-1', false, '0', true, true); $traffic_ul = \Froxlor\UI\HTML::makecheckbox('traffic_ul', $lng['customer']['unlimited'], '-1', false, '0', true, true);
$subdomains_ul = \Froxlor\UI\HTML::makecheckbox('subdomains_ul', \Froxlor\I18N\Lang::getAll()['customer']['unlimited'], '-1', false, '0', true, true); $subdomains_ul = \Froxlor\UI\HTML::makecheckbox('subdomains_ul', $lng['customer']['unlimited'], '-1', false, '0', true, true);
$emails_ul = \Froxlor\UI\HTML::makecheckbox('emails_ul', \Froxlor\I18N\Lang::getAll()['customer']['unlimited'], '-1', false, '0', true, true); $emails_ul = \Froxlor\UI\HTML::makecheckbox('emails_ul', $lng['customer']['unlimited'], '-1', false, '0', true, true);
$email_accounts_ul = \Froxlor\UI\HTML::makecheckbox('email_accounts_ul', \Froxlor\I18N\Lang::getAll()['customer']['unlimited'], '-1', false, '0', true, true); $email_accounts_ul = \Froxlor\UI\HTML::makecheckbox('email_accounts_ul', $lng['customer']['unlimited'], '-1', false, '0', true, true);
$email_forwarders_ul = \Froxlor\UI\HTML::makecheckbox('email_forwarders_ul', \Froxlor\I18N\Lang::getAll()['customer']['unlimited'], '-1', false, '0', true, true); $email_forwarders_ul = \Froxlor\UI\HTML::makecheckbox('email_forwarders_ul', $lng['customer']['unlimited'], '-1', false, '0', true, true);
$email_quota_ul = \Froxlor\UI\HTML::makecheckbox('email_quota_ul', \Froxlor\I18N\Lang::getAll()['customer']['unlimited'], '-1', false, '0', true, true); $email_quota_ul = \Froxlor\UI\HTML::makecheckbox('email_quota_ul', $lng['customer']['unlimited'], '-1', false, '0', true, true);
$ftps_ul = \Froxlor\UI\HTML::makecheckbox('ftps_ul', \Froxlor\I18N\Lang::getAll()['customer']['unlimited'], '-1', false, '0', true, true); $ftps_ul = \Froxlor\UI\HTML::makecheckbox('ftps_ul', $lng['customer']['unlimited'], '-1', false, '0', true, true);
$mysqls_ul = \Froxlor\UI\HTML::makecheckbox('mysqls_ul', \Froxlor\I18N\Lang::getAll()['customer']['unlimited'], '-1', false, '0', true, true); $mysqls_ul = \Froxlor\UI\HTML::makecheckbox('mysqls_ul', $lng['customer']['unlimited'], '-1', false, '0', true, true);
$gender_options = \Froxlor\UI\HTML::makeoption(\Froxlor\I18N\Lang::getAll()['gender']['undef'], 0, true, true, true); $gender_options = \Froxlor\UI\HTML::makeoption($lng['gender']['undef'], 0, true, true, true);
$gender_options .= \Froxlor\UI\HTML::makeoption(\Froxlor\I18N\Lang::getAll()['gender']['male'], 1, null, true, true); $gender_options .= \Froxlor\UI\HTML::makeoption($lng['gender']['male'], 1, null, true, true);
$gender_options .= \Froxlor\UI\HTML::makeoption(\Froxlor\I18N\Lang::getAll()['gender']['female'], 2, null, true, true); $gender_options .= \Froxlor\UI\HTML::makeoption($lng['gender']['female'], 2, null, true, true);
$phpconfigs = array(); $phpconfigs = array();
$configs = Database::query(" $configs = Database::query("
@@ -393,56 +393,56 @@ if ($page == 'customers' && \Froxlor\User::getAll()['customers'] != '0') {
$result['diskspace'] = round($result['diskspace'] / 1024, $dec_places); $result['diskspace'] = round($result['diskspace'] / 1024, $dec_places);
$result['email'] = $idna_convert->decode($result['email']); $result['email'] = $idna_convert->decode($result['email']);
$diskspace_ul = \Froxlor\UI\HTML::makecheckbox('diskspace_ul', \Froxlor\I18N\Lang::getAll()['customer']['unlimited'], '-1', false, $result['diskspace'], true, true); $diskspace_ul = \Froxlor\UI\HTML::makecheckbox('diskspace_ul', $lng['customer']['unlimited'], '-1', false, $result['diskspace'], true, true);
if ($result['diskspace'] == '-1') { if ($result['diskspace'] == '-1') {
$result['diskspace'] = ''; $result['diskspace'] = '';
} }
$traffic_ul = \Froxlor\UI\HTML::makecheckbox('traffic_ul', \Froxlor\I18N\Lang::getAll()['customer']['unlimited'], '-1', false, $result['traffic'], true, true); $traffic_ul = \Froxlor\UI\HTML::makecheckbox('traffic_ul', $lng['customer']['unlimited'], '-1', false, $result['traffic'], true, true);
if ($result['traffic'] == '-1') { if ($result['traffic'] == '-1') {
$result['traffic'] = ''; $result['traffic'] = '';
} }
$subdomains_ul = \Froxlor\UI\HTML::makecheckbox('subdomains_ul', \Froxlor\I18N\Lang::getAll()['customer']['unlimited'], '-1', false, $result['subdomains'], true, true); $subdomains_ul = \Froxlor\UI\HTML::makecheckbox('subdomains_ul', $lng['customer']['unlimited'], '-1', false, $result['subdomains'], true, true);
if ($result['subdomains'] == '-1') { if ($result['subdomains'] == '-1') {
$result['subdomains'] = ''; $result['subdomains'] = '';
} }
$emails_ul = \Froxlor\UI\HTML::makecheckbox('emails_ul', \Froxlor\I18N\Lang::getAll()['customer']['unlimited'], '-1', false, $result['emails'], true, true); $emails_ul = \Froxlor\UI\HTML::makecheckbox('emails_ul', $lng['customer']['unlimited'], '-1', false, $result['emails'], true, true);
if ($result['emails'] == '-1') { if ($result['emails'] == '-1') {
$result['emails'] = ''; $result['emails'] = '';
} }
$email_accounts_ul = \Froxlor\UI\HTML::makecheckbox('email_accounts_ul', \Froxlor\I18N\Lang::getAll()['customer']['unlimited'], '-1', false, $result['email_accounts'], true, true); $email_accounts_ul = \Froxlor\UI\HTML::makecheckbox('email_accounts_ul', $lng['customer']['unlimited'], '-1', false, $result['email_accounts'], true, true);
if ($result['email_accounts'] == '-1') { if ($result['email_accounts'] == '-1') {
$result['email_accounts'] = ''; $result['email_accounts'] = '';
} }
$email_forwarders_ul = \Froxlor\UI\HTML::makecheckbox('email_forwarders_ul', \Froxlor\I18N\Lang::getAll()['customer']['unlimited'], '-1', false, $result['email_forwarders'], true, true); $email_forwarders_ul = \Froxlor\UI\HTML::makecheckbox('email_forwarders_ul', $lng['customer']['unlimited'], '-1', false, $result['email_forwarders'], true, true);
if ($result['email_forwarders'] == '-1') { if ($result['email_forwarders'] == '-1') {
$result['email_forwarders'] = ''; $result['email_forwarders'] = '';
} }
$email_quota_ul = \Froxlor\UI\HTML::makecheckbox('email_quota_ul', \Froxlor\I18N\Lang::getAll()['customer']['unlimited'], '-1', false, $result['email_quota'], true, true); $email_quota_ul = \Froxlor\UI\HTML::makecheckbox('email_quota_ul', $lng['customer']['unlimited'], '-1', false, $result['email_quota'], true, true);
if ($result['email_quota'] == '-1') { if ($result['email_quota'] == '-1') {
$result['email_quota'] = ''; $result['email_quota'] = '';
} }
$ftps_ul = \Froxlor\UI\HTML::makecheckbox('ftps_ul', \Froxlor\I18N\Lang::getAll()['customer']['unlimited'], '-1', false, $result['ftps'], true, true); $ftps_ul = \Froxlor\UI\HTML::makecheckbox('ftps_ul', $lng['customer']['unlimited'], '-1', false, $result['ftps'], true, true);
if ($result['ftps'] == '-1') { if ($result['ftps'] == '-1') {
$result['ftps'] = ''; $result['ftps'] = '';
} }
$mysqls_ul = \Froxlor\UI\HTML::makecheckbox('mysqls_ul', \Froxlor\I18N\Lang::getAll()['customer']['unlimited'], '-1', false, $result['mysqls'], true, true); $mysqls_ul = \Froxlor\UI\HTML::makecheckbox('mysqls_ul', $lng['customer']['unlimited'], '-1', false, $result['mysqls'], true, true);
if ($result['mysqls'] == '-1') { if ($result['mysqls'] == '-1') {
$result['mysqls'] = ''; $result['mysqls'] = '';
} }
$result = \Froxlor\PhpHelper::htmlentities_array($result); $result = \Froxlor\PhpHelper::htmlentities_array($result);
$gender_options = \Froxlor\UI\HTML::makeoption(\Froxlor\I18N\Lang::getAll()['gender']['undef'], 0, ($result['gender'] == '0' ? true : false), true, true); $gender_options = \Froxlor\UI\HTML::makeoption($lng['gender']['undef'], 0, ($result['gender'] == '0' ? true : false), true, true);
$gender_options .= \Froxlor\UI\HTML::makeoption(\Froxlor\I18N\Lang::getAll()['gender']['male'], 1, ($result['gender'] == '1' ? true : false), true, true); $gender_options .= \Froxlor\UI\HTML::makeoption($lng['gender']['male'], 1, ($result['gender'] == '1' ? true : false), true, true);
$gender_options .= \Froxlor\UI\HTML::makeoption(\Froxlor\I18N\Lang::getAll()['gender']['female'], 2, ($result['gender'] == '2' ? true : false), true, true); $gender_options .= \Froxlor\UI\HTML::makeoption($lng['gender']['female'], 2, ($result['gender'] == '2' ? true : false), true, true);
$phpconfigs = array(); $phpconfigs = array();
$configs = Database::query(" $configs = Database::query("

View File

@@ -44,12 +44,12 @@ if ($page == 'domains' || $page == 'overview') {
$log->logAction(ADM_ACTION, LOG_NOTICE, "viewed admin_domains"); $log->logAction(ADM_ACTION, LOG_NOTICE, "viewed admin_domains");
$fields = array( $fields = array(
'd.domain' => \Froxlor\I18N\Lang::getAll()['domains']['domainname'], 'd.domain' => $lng['domains']['domainname'],
'c.name' => \Froxlor\I18N\Lang::getAll()['customer']['name'], 'c.name' => $lng['customer']['name'],
'c.firstname' => \Froxlor\I18N\Lang::getAll()['customer']['firstname'], 'c.firstname' => $lng['customer']['firstname'],
'c.company' => \Froxlor\I18N\Lang::getAll()['customer']['company'], 'c.company' => $lng['customer']['company'],
'c.loginname' => \Froxlor\I18N\Lang::getAll()['login']['username'], 'c.loginname' => $lng['login']['username'],
'd.aliasdomain' => \Froxlor\I18N\Lang::getAll()['domains']['aliasdomain'] 'd.aliasdomain' => $lng['domains']['aliasdomain']
); );
$paging = new \Froxlor\UI\Paging(\Froxlor\User::getAll(), TABLE_PANEL_DOMAINS, $fields); $paging = new \Froxlor\UI\Paging(\Froxlor\User::getAll(), TABLE_PANEL_DOMAINS, $fields);
$domains = ""; $domains = "";
@@ -180,7 +180,7 @@ if ($page == 'domains' || $page == 'overview') {
)); ));
} else { } else {
$customers = \Froxlor\UI\HTML::makeoption(\Froxlor\I18N\Lang::getAll()['panel']['please_choose'], 0, 0, true); $customers = \Froxlor\UI\HTML::makeoption($lng['panel']['please_choose'], 0, 0, true);
$result_customers_stmt = Database::prepare(" $result_customers_stmt = Database::prepare("
SELECT `customerid`, `loginname`, `name`, `firstname`, `company` SELECT `customerid`, `loginname`, `name`, `firstname`, `company`
FROM `" . TABLE_PANEL_CUSTOMERS . "` " . (\Froxlor\User::getAll()['customers_see_all'] ? '' : " WHERE `adminid` = '" . (int) \Froxlor\User::getAll()['adminid'] . "' ") . " ORDER BY COALESCE(NULLIF(`name`,''), `company`) ASC"); FROM `" . TABLE_PANEL_CUSTOMERS . "` " . (\Froxlor\User::getAll()['customers_see_all'] ? '' : " WHERE `adminid` = '" . (int) \Froxlor\User::getAll()['adminid'] . "' ") . " ORDER BY COALESCE(NULLIF(`name`,''), `company`) ASC");
@@ -279,7 +279,7 @@ if ($page == 'domains' || $page == 'overview') {
$standardsubdomains = ''; $standardsubdomains = '';
} }
$domains = \Froxlor\UI\HTML::makeoption(\Froxlor\I18N\Lang::getAll()['domains']['noaliasdomain'], 0, NULL, true); $domains = \Froxlor\UI\HTML::makeoption($lng['domains']['noaliasdomain'], 0, NULL, true);
$result_domains_stmt = Database::prepare(" $result_domains_stmt = Database::prepare("
SELECT `d`.`id`, `d`.`domain`, `c`.`loginname` FROM `" . TABLE_PANEL_DOMAINS . "` `d`, `" . TABLE_PANEL_CUSTOMERS . "` `c` SELECT `d`.`id`, `d`.`domain`, `c`.`loginname` FROM `" . TABLE_PANEL_DOMAINS . "` `d`, `" . TABLE_PANEL_CUSTOMERS . "` `c`
WHERE `d`.`aliasdomain` IS NULL AND `d`.`parentdomainid` = 0" . $standardsubdomains . (\Froxlor\User::getAll()['customers_see_all'] ? '' : " AND `d`.`adminid` = :adminid") . " WHERE `d`.`aliasdomain` IS NULL AND `d`.`parentdomainid` = 0" . $standardsubdomains . (\Froxlor\User::getAll()['customers_see_all'] ? '' : " AND `d`.`adminid` = :adminid") . "
@@ -295,7 +295,7 @@ if ($page == 'domains' || $page == 'overview') {
$domains .= \Froxlor\UI\HTML::makeoption($idna_convert->decode($row_domain['domain']) . ' (' . $row_domain['loginname'] . ')', $row_domain['id']); $domains .= \Froxlor\UI\HTML::makeoption($idna_convert->decode($row_domain['domain']) . ' (' . $row_domain['loginname'] . ')', $row_domain['id']);
} }
$subtodomains = \Froxlor\UI\HTML::makeoption(\Froxlor\I18N\Lang::getAll()['domains']['nosubtomaindomain'], 0, NULL, true); $subtodomains = \Froxlor\UI\HTML::makeoption($lng['domains']['nosubtomaindomain'], 0, NULL, true);
$result_domains_stmt = Database::prepare(" $result_domains_stmt = Database::prepare("
SELECT `d`.`id`, `d`.`domain`, `c`.`loginname` FROM `" . TABLE_PANEL_DOMAINS . "` `d`, `" . TABLE_PANEL_CUSTOMERS . "` `c` SELECT `d`.`id`, `d`.`domain`, `c`.`loginname` FROM `" . TABLE_PANEL_DOMAINS . "` `d`, `" . TABLE_PANEL_CUSTOMERS . "` `c`
WHERE `d`.`aliasdomain` IS NULL AND `d`.`parentdomainid` = 0 AND `d`.`ismainbutsubto` = 0 " . $standardsubdomains . (\Froxlor\User::getAll()['customers_see_all'] ? '' : " AND `d`.`adminid` = :adminid") . " WHERE `d`.`aliasdomain` IS NULL AND `d`.`parentdomainid` = 0 AND `d`.`ismainbutsubto` = 0 " . $standardsubdomains . (\Froxlor\User::getAll()['customers_see_all'] ? '' : " AND `d`.`adminid` = :adminid") . "
@@ -325,14 +325,14 @@ if ($page == 'domains' || $page == 'overview') {
// create serveralias options // create serveralias options
$serveraliasoptions = ""; $serveraliasoptions = "";
$serveraliasoptions .= \Froxlor\UI\HTML::makeoption(\Froxlor\I18N\Lang::getAll()['domains']['serveraliasoption_wildcard'], '0', '0', true, true); $serveraliasoptions .= \Froxlor\UI\HTML::makeoption($lng['domains']['serveraliasoption_wildcard'], '0', '0', true, true);
$serveraliasoptions .= \Froxlor\UI\HTML::makeoption(\Froxlor\I18N\Lang::getAll()['domains']['serveraliasoption_www'], '1', '0', true, true); $serveraliasoptions .= \Froxlor\UI\HTML::makeoption($lng['domains']['serveraliasoption_www'], '1', '0', true, true);
$serveraliasoptions .= \Froxlor\UI\HTML::makeoption(\Froxlor\I18N\Lang::getAll()['domains']['serveraliasoption_none'], '2', '0', true, true); $serveraliasoptions .= \Froxlor\UI\HTML::makeoption($lng['domains']['serveraliasoption_none'], '2', '0', true, true);
$subcanemaildomain = \Froxlor\UI\HTML::makeoption(\Froxlor\I18N\Lang::getAll()['admin']['subcanemaildomain']['never'], '0', '0', true, true); $subcanemaildomain = \Froxlor\UI\HTML::makeoption($lng['admin']['subcanemaildomain']['never'], '0', '0', true, true);
$subcanemaildomain .= \Froxlor\UI\HTML::makeoption(\Froxlor\I18N\Lang::getAll()['admin']['subcanemaildomain']['choosableno'], '1', '0', true, true); $subcanemaildomain .= \Froxlor\UI\HTML::makeoption($lng['admin']['subcanemaildomain']['choosableno'], '1', '0', true, true);
$subcanemaildomain .= \Froxlor\UI\HTML::makeoption(\Froxlor\I18N\Lang::getAll()['admin']['subcanemaildomain']['choosableyes'], '2', '0', true, true); $subcanemaildomain .= \Froxlor\UI\HTML::makeoption($lng['admin']['subcanemaildomain']['choosableyes'], '2', '0', true, true);
$subcanemaildomain .= \Froxlor\UI\HTML::makeoption(\Froxlor\I18N\Lang::getAll()['admin']['subcanemaildomain']['always'], '3', '0', true, true); $subcanemaildomain .= \Froxlor\UI\HTML::makeoption($lng['admin']['subcanemaildomain']['always'], '3', '0', true, true);
$add_date = date('Y-m-d'); $add_date = date('Y-m-d');
@@ -489,7 +489,7 @@ if ($page == 'domains' || $page == 'overview') {
} }
$result['domain'] = $idna_convert->decode($result['domain']); $result['domain'] = $idna_convert->decode($result['domain']);
$domains = \Froxlor\UI\HTML::makeoption(\Froxlor\I18N\Lang::getAll()['domains']['noaliasdomain'], 0, null, true); $domains = \Froxlor\UI\HTML::makeoption($lng['domains']['noaliasdomain'], 0, null, true);
$result_domains_stmt = Database::prepare(" $result_domains_stmt = Database::prepare("
SELECT `d`.`id`, `d`.`domain` FROM `" . TABLE_PANEL_DOMAINS . "` `d`, `" . TABLE_PANEL_CUSTOMERS . "` `c` SELECT `d`.`id`, `d`.`domain` FROM `" . TABLE_PANEL_DOMAINS . "` `d`, `" . TABLE_PANEL_CUSTOMERS . "` `c`
@@ -506,7 +506,7 @@ if ($page == 'domains' || $page == 'overview') {
$domains .= \Froxlor\UI\HTML::makeoption($idna_convert->decode($row_domain['domain']), $row_domain['id'], $result['aliasdomain']); $domains .= \Froxlor\UI\HTML::makeoption($idna_convert->decode($row_domain['domain']), $row_domain['id'], $result['aliasdomain']);
} }
$subtodomains = \Froxlor\UI\HTML::makeoption(\Froxlor\I18N\Lang::getAll()['domains']['nosubtomaindomain'], 0, null, true); $subtodomains = \Froxlor\UI\HTML::makeoption($lng['domains']['nosubtomaindomain'], 0, null, true);
$result_domains_stmt = Database::prepare(" $result_domains_stmt = Database::prepare("
SELECT `d`.`id`, `d`.`domain` FROM `" . TABLE_PANEL_DOMAINS . "` `d`, `" . TABLE_PANEL_CUSTOMERS . "` `c` SELECT `d`.`id`, `d`.`domain` FROM `" . TABLE_PANEL_DOMAINS . "` `d`, `" . TABLE_PANEL_CUSTOMERS . "` `c`
WHERE `d`.`aliasdomain` IS NULL AND `d`.`parentdomainid` = '0' AND `d`.`id` <> :id WHERE `d`.`aliasdomain` IS NULL AND `d`.`parentdomainid` = '0' AND `d`.`id` <> :id
@@ -591,15 +591,15 @@ if ($page == 'domains' || $page == 'overview') {
$result['temporary_ssl_redirect'] = $result['ssl_redirect']; $result['temporary_ssl_redirect'] = $result['ssl_redirect'];
$result['ssl_redirect'] = ($result['ssl_redirect'] == 0 ? 0 : 1); $result['ssl_redirect'] = ($result['ssl_redirect'] == 0 ? 0 : 1);
$serveraliasoptions .= \Froxlor\UI\HTML::makeoption(\Froxlor\I18N\Lang::getAll()['domains']['serveraliasoption_wildcard'], '0', $_value, true, true); $serveraliasoptions .= \Froxlor\UI\HTML::makeoption($lng['domains']['serveraliasoption_wildcard'], '0', $_value, true, true);
$serveraliasoptions .= \Froxlor\UI\HTML::makeoption(\Froxlor\I18N\Lang::getAll()['domains']['serveraliasoption_www'], '1', $_value, true, true); $serveraliasoptions .= \Froxlor\UI\HTML::makeoption($lng['domains']['serveraliasoption_www'], '1', $_value, true, true);
$serveraliasoptions .= \Froxlor\UI\HTML::makeoption(\Froxlor\I18N\Lang::getAll()['domains']['serveraliasoption_none'], '2', $_value, true, true); $serveraliasoptions .= \Froxlor\UI\HTML::makeoption($lng['domains']['serveraliasoption_none'], '2', $_value, true, true);
$subcanemaildomain = \Froxlor\UI\HTML::makeoption(\Froxlor\I18N\Lang::getAll()['admin']['subcanemaildomain']['never'], '0', $result['subcanemaildomain'], true, true); $subcanemaildomain = \Froxlor\UI\HTML::makeoption($lng['admin']['subcanemaildomain']['never'], '0', $result['subcanemaildomain'], true, true);
$subcanemaildomain .= \Froxlor\UI\HTML::makeoption(\Froxlor\I18N\Lang::getAll()['admin']['subcanemaildomain']['choosableno'], '1', $result['subcanemaildomain'], true, true); $subcanemaildomain .= \Froxlor\UI\HTML::makeoption($lng['admin']['subcanemaildomain']['choosableno'], '1', $result['subcanemaildomain'], true, true);
$subcanemaildomain .= \Froxlor\UI\HTML::makeoption(\Froxlor\I18N\Lang::getAll()['admin']['subcanemaildomain']['choosableyes'], '2', $result['subcanemaildomain'], true, true); $subcanemaildomain .= \Froxlor\UI\HTML::makeoption($lng['admin']['subcanemaildomain']['choosableyes'], '2', $result['subcanemaildomain'], true, true);
$subcanemaildomain .= \Froxlor\UI\HTML::makeoption(\Froxlor\I18N\Lang::getAll()['admin']['subcanemaildomain']['always'], '3', $result['subcanemaildomain'], true, true); $subcanemaildomain .= \Froxlor\UI\HTML::makeoption($lng['admin']['subcanemaildomain']['always'], '3', $result['subcanemaildomain'], true, true);
$speciallogfile = ($result['speciallogfile'] == 1 ? \Froxlor\I18N\Lang::getAll()['panel']['yes'] : \Froxlor\I18N\Lang::getAll()['panel']['no']); $speciallogfile = ($result['speciallogfile'] == 1 ? $lng['panel']['yes'] : $lng['panel']['no']);
$result['add_date'] = date('Y-m-d', $result['add_date']); $result['add_date'] = date('Y-m-d', $result['add_date']);
$phpconfigs = ''; $phpconfigs = '';
@@ -632,7 +632,7 @@ if ($page == 'domains' || $page == 'overview') {
$title = $domain_edit_data['domain_edit']['title']; $title = $domain_edit_data['domain_edit']['title'];
$image = $domain_edit_data['domain_edit']['image']; $image = $domain_edit_data['domain_edit']['image'];
$speciallogwarning = sprintf(\Froxlor\I18N\Lang::getAll()['admin']['speciallogwarning'], \Froxlor\I18N\Lang::getAll()['admin']['delete_statistics']); $speciallogwarning = sprintf($lng['admin']['speciallogwarning'], $lng['admin']['delete_statistics']);
eval("echo \"" . \Froxlor\UI\Template::getTemplate("domains/domains_edit") . "\";"); eval("echo \"" . \Froxlor\UI\Template::getTemplate("domains/domains_edit") . "\";");
} }
@@ -678,7 +678,7 @@ if ($page == 'domains' || $page == 'overview') {
'page' => 'domains' 'page' => 'domains'
)); ));
} else { } else {
$customers = \Froxlor\UI\HTML::makeoption(\Froxlor\I18N\Lang::getAll()['panel']['please_choose'], 0, 0, true); $customers = \Froxlor\UI\HTML::makeoption($lng['panel']['please_choose'], 0, 0, true);
$result_customers_stmt = Database::prepare(" $result_customers_stmt = Database::prepare("
SELECT `customerid`, `loginname`, `name`, `firstname`, `company` SELECT `customerid`, `loginname`, `name`, `firstname`, `company`
FROM `" . TABLE_PANEL_CUSTOMERS . "` " . (\Froxlor\User::getAll()['customers_see_all'] ? '' : " WHERE `adminid` = '" . (int) \Froxlor\User::getAll()['adminid'] . "' ") . " ORDER BY `name` ASC"); FROM `" . TABLE_PANEL_CUSTOMERS . "` " . (\Froxlor\User::getAll()['customers_see_all'] ? '' : " WHERE `adminid` = '" . (int) \Froxlor\User::getAll()['adminid'] . "' ") . " ORDER BY `name` ASC");

View File

@@ -103,7 +103,7 @@ if ($page == 'overview') {
$lookfornewversion_addinfo = $result['additional_info']; $lookfornewversion_addinfo = $result['additional_info'];
$isnewerversion = $result['isnewerversion']; $isnewerversion = $result['isnewerversion'];
} else { } else {
$lookfornewversion_lable = \Froxlor\I18N\Lang::getAll()['admin']['lookfornewversion']['clickhere']; $lookfornewversion_lable = $lng['admin']['lookfornewversion']['clickhere'];
$lookfornewversion_link = htmlspecialchars($filename . '?s=' . urlencode($s) . '&page=' . urlencode($page) . '&lookfornewversion=yes'); $lookfornewversion_link = htmlspecialchars($filename . '?s=' . urlencode($s) . '&page=' . urlencode($page) . '&lookfornewversion=yes');
$lookfornewversion_message = ''; $lookfornewversion_message = '';
$lookfornewversion_addinfo = ''; $lookfornewversion_addinfo = '';
@@ -115,7 +115,7 @@ if ($page == 'overview') {
\Froxlor\User::getAll()['diskspace_used'] = round(\Froxlor\User::getAll()['diskspace_used'] / 1024, $dec_places); \Froxlor\User::getAll()['diskspace_used'] = round(\Froxlor\User::getAll()['diskspace_used'] / 1024, $dec_places);
\Froxlor\User::getAll()['traffic'] = round(\Froxlor\User::getAll()['traffic'] / (1024 * 1024), $dec_places); \Froxlor\User::getAll()['traffic'] = round(\Froxlor\User::getAll()['traffic'] / (1024 * 1024), $dec_places);
\Froxlor\User::getAll()['traffic_used'] = round(\Froxlor\User::getAll()['traffic_used'] / (1024 * 1024), $dec_places); \Froxlor\User::getAll()['traffic_used'] = round(\Froxlor\User::getAll()['traffic_used'] / (1024 * 1024), $dec_places);
\Froxlor\User::getAll() = \Froxlor\PhpHelper::str_replace_array('-1', \Froxlor\I18N\Lang::getAll()['customer']['unlimited'], \Froxlor\User::getAll(), 'customers domains diskspace traffic mysqls emails email_accounts email_forwarders email_quota ftps subdomains'); \Froxlor\User::getAll() = \Froxlor\PhpHelper::str_replace_array('-1', $lng['customer']['unlimited'], \Froxlor\User::getAll(), 'customers domains diskspace traffic mysqls emails email_accounts email_forwarders email_quota ftps subdomains');
\Froxlor\User::getAll()['custom_notes'] = (\Froxlor\User::getAll()['custom_notes'] != '') ? nl2br(\Froxlor\User::getAll()['custom_notes']) : ''; \Froxlor\User::getAll()['custom_notes'] = (\Froxlor\User::getAll()['custom_notes'] != '') ? nl2br(\Froxlor\User::getAll()['custom_notes']) : '';
@@ -138,7 +138,7 @@ if ($page == 'overview') {
$load = @file_get_contents('/proc/loadavg'); $load = @file_get_contents('/proc/loadavg');
if (! $load) { if (! $load) {
$load = \Froxlor\I18N\Lang::getAll()['admin']['noloadavailable']; $load = $lng['admin']['noloadavailable'];
} }
} }

View File

@@ -40,8 +40,8 @@ if ($page == 'ipsandports' || $page == 'overview') {
$log->logAction(ADM_ACTION, LOG_NOTICE, "viewed admin_ipsandports"); $log->logAction(ADM_ACTION, LOG_NOTICE, "viewed admin_ipsandports");
$fields = array( $fields = array(
'ip' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['ip'], 'ip' => $lng['admin']['ipsandports']['ip'],
'port' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['port'] 'port' => $lng['admin']['ipsandports']['port']
); );
$paging = new \Froxlor\UI\Paging(\Froxlor\User::getAll(), TABLE_PANEL_IPSANDPORTS, $fields); $paging = new \Froxlor\UI\Paging(\Froxlor\User::getAll(), TABLE_PANEL_IPSANDPORTS, $fields);
$ipsandports = ''; $ipsandports = '';

View File

@@ -24,10 +24,10 @@ use Froxlor\Database\Database;
if ($page == 'log' && \Froxlor\User::getAll()['change_serversettings'] == '1') { if ($page == 'log' && \Froxlor\User::getAll()['change_serversettings'] == '1') {
if ($action == '') { if ($action == '') {
$fields = array( $fields = array(
'date' => \Froxlor\I18N\Lang::getAll()['logger']['date'], 'date' => $lng['logger']['date'],
'type' => \Froxlor\I18N\Lang::getAll()['logger']['type'], 'type' => $lng['logger']['type'],
'user' => \Froxlor\I18N\Lang::getAll()['logger']['user'], 'user' => $lng['logger']['user'],
'text' => \Froxlor\I18N\Lang::getAll()['logger']['action'] 'text' => $lng['logger']['action']
); );
$paging = new \Froxlor\UI\Paging(\Froxlor\User::getAll(), TABLE_PANEL_LOG, $fields, null, null, 0, 'desc', 30); $paging = new \Froxlor\UI\Paging(\Froxlor\User::getAll(), TABLE_PANEL_LOG, $fields, null, null, 0, 'desc', 30);
$query = 'SELECT * FROM `' . TABLE_PANEL_LOG . '` ' . $paging->getSqlWhere(false) . ' ' . $paging->getSqlOrderBy(); $query = 'SELECT * FROM `' . TABLE_PANEL_LOG . '` ' . $paging->getSqlWhere(false) . ' ' . $paging->getSqlOrderBy();
@@ -69,25 +69,25 @@ if ($page == 'log' && \Froxlor\User::getAll()['change_serversettings'] == '1') {
if ($_action != $action) { if ($_action != $action) {
switch ($action) { switch ($action) {
case USR_ACTION: case USR_ACTION:
$_action = \Froxlor\I18N\Lang::getAll()['admin']['customer']; $_action = $lng['admin']['customer'];
break; break;
case RES_ACTION: case RES_ACTION:
$_action = \Froxlor\I18N\Lang::getAll()['logger']['reseller']; $_action = $lng['logger']['reseller'];
break; break;
case ADM_ACTION: case ADM_ACTION:
$_action = \Froxlor\I18N\Lang::getAll()['logger']['admin']; $_action = $lng['logger']['admin'];
break; break;
case CRON_ACTION: case CRON_ACTION:
$_action = \Froxlor\I18N\Lang::getAll()['logger']['cron']; $_action = $lng['logger']['cron'];
break; break;
case LOGIN_ACTION: case LOGIN_ACTION:
$_action = \Froxlor\I18N\Lang::getAll()['logger']['login']; $_action = $lng['logger']['login'];
break; break;
case LOG_ERROR: case LOG_ERROR:
$_action = \Froxlor\I18N\Lang::getAll()['logger']['intern']; $_action = $lng['logger']['intern'];
break; break;
default: default:
$_action = \Froxlor\I18N\Lang::getAll()['logger']['unknown']; $_action = $lng['logger']['unknown'];
break; break;
} }

View File

@@ -105,9 +105,9 @@ if ($page == 'message') {
$sentitems = isset($_GET['sentitems']) ? (int) $_GET['sentitems'] : 0; $sentitems = isset($_GET['sentitems']) ? (int) $_GET['sentitems'] : 0;
if ($sentitems == 0) { if ($sentitems == 0) {
$successmessage = \Froxlor\I18N\Lang::getAll()['message']['noreceipients']; $successmessage = $lng['message']['noreceipients'];
} else { } else {
$successmessage = str_replace('%s', $sentitems, \Froxlor\I18N\Lang::getAll()['message']['success']); $successmessage = str_replace('%s', $sentitems, $lng['message']['success']);
} }
} else { } else {
$success = 0; $success = 0;
@@ -119,9 +119,9 @@ if ($page == 'message') {
$receipients = ''; $receipients = '';
if (\Froxlor\User::getAll()['customers_see_all'] == '1') { if (\Froxlor\User::getAll()['customers_see_all'] == '1') {
$receipients .= \Froxlor\UI\HTML::makeoption(\Froxlor\I18N\Lang::getAll()['panel']['reseller'], 0); $receipients .= \Froxlor\UI\HTML::makeoption($lng['panel']['reseller'], 0);
} }
$receipients .= \Froxlor\UI\HTML::makeoption(\Froxlor\I18N\Lang::getAll()['panel']['customer'], 1); $receipients .= \Froxlor\UI\HTML::makeoption($lng['panel']['customer'], 1);
eval("echo \"" . \Froxlor\UI\Template::getTemplate('message/message') . "\";"); eval("echo \"" . \Froxlor\UI\Template::getTemplate('message/message') . "\";");
} }

View File

@@ -31,7 +31,7 @@ if ($action == 'reset' && function_exists('opcache_reset') && \Froxlor\User::get
} }
if (! function_exists('opcache_get_configuration')) { if (! function_exists('opcache_get_configuration')) {
\Froxlor\UI\Response::standard_error(\Froxlor\I18N\Lang::getAll()['error']['no_opcacheinfo']); \Froxlor\UI\Response::standard_error($lng['error']['no_opcacheinfo']);
} }
if ($page == 'showinfo') { if ($page == 'showinfo') {
@@ -52,13 +52,13 @@ if ($page == 'showinfo') {
$value = $value / (1024 * 1024); $value = $value / (1024 * 1024);
} }
if ($value === null || $value === '') { if ($value === null || $value === '') {
$value = \Froxlor\I18N\Lang::getAll()['opcacheinfo']['novalue']; $value = $lng['opcacheinfo']['novalue'];
} }
if ($value === true) { if ($value === true) {
$value = \Froxlor\I18N\Lang::getAll()['opcacheinfo']['true']; $value = $lng['opcacheinfo']['true'];
} }
if ($value === false) { if ($value === false) {
$value = \Froxlor\I18N\Lang::getAll()['opcacheinfo']['false']; $value = $lng['opcacheinfo']['false'];
} }
if (is_integer($value)) { if (is_integer($value)) {
$value = number_format($value, 0, '.', ' '); $value = number_format($value, 0, '.', ' ');
@@ -77,11 +77,11 @@ if ($page == 'showinfo') {
'version' => (isset($opcache_info['version']['opcache_product_name']) ? $opcache_info['version']['opcache_product_name'] . ' ' : '') . $opcache_info['version']['version'], 'version' => (isset($opcache_info['version']['opcache_product_name']) ? $opcache_info['version']['opcache_product_name'] . ' ' : '') . $opcache_info['version']['version'],
'phpversion' => phpversion(), 'phpversion' => phpversion(),
'start_time' => @$opcache_status['opcache_statistics']['start_time'] ? date('Y-m-d H:i:s', $opcache_status['opcache_statistics']['start_time']) : '', 'start_time' => @$opcache_status['opcache_statistics']['start_time'] ? date('Y-m-d H:i:s', $opcache_status['opcache_statistics']['start_time']) : '',
'last_restart_time' => @$opcache_status['opcache_statistics']['last_restart_time'] ? date('Y-m-d H:i:s', $opcache_status['opcache_statistics']['last_restart_time']) : \Froxlor\I18N\Lang::getAll()['opcacheinfo']['never'], 'last_restart_time' => @$opcache_status['opcache_statistics']['last_restart_time'] ? date('Y-m-d H:i:s', $opcache_status['opcache_statistics']['last_restart_time']) : $lng['opcacheinfo']['never'],
'oom_restarts' => number_format(@$opcache_status['opcache_statistics']['oom_restarts'] ?: 0, 0, '.', ' '), 'oom_restarts' => number_format(@$opcache_status['opcache_statistics']['oom_restarts'] ?: 0, 0, '.', ' '),
'hash_restarts' => number_format(@$opcache_status['opcache_statistics']['hash_restarts'] ?: 0, 0, '.', ' '), 'hash_restarts' => number_format(@$opcache_status['opcache_statistics']['hash_restarts'] ?: 0, 0, '.', ' '),
'manual_restarts' => number_format(@$opcache_status['opcache_statistics']['manual_restarts'] ?: 0, 0, '.', ' '), 'manual_restarts' => number_format(@$opcache_status['opcache_statistics']['manual_restarts'] ?: 0, 0, '.', ' '),
'status' => (@$opcache_status['restart_in_progress'] ? \Froxlor\I18N\Lang::getAll()['opcacheinfo']['restartinprogress'] : (@$opcache_status['restart_pending'] ? \Froxlor\I18N\Lang::getAll()['opcacheinfo']['restartpending'] : (@$opcache_status['cache_full'] ? \Froxlor\I18N\Lang::getAll()['opcacheinfo']['cachefull'] : (@$opcache_status['opcache_enabled'] ? \Froxlor\I18N\Lang::getAll()['opcacheinfo']['enabled'] : \Froxlor\I18N\Lang::getAll()['opcacheinfo']['novalue'])))), 'status' => (@$opcache_status['restart_in_progress'] ? $lng['opcacheinfo']['restartinprogress'] : (@$opcache_status['restart_pending'] ? $lng['opcacheinfo']['restartpending'] : (@$opcache_status['cache_full'] ? $lng['opcacheinfo']['cachefull'] : (@$opcache_status['opcache_enabled'] ? $lng['opcacheinfo']['enabled'] : $lng['opcacheinfo']['novalue'])))),
'cachedscripts' => number_format(@$opcache_status['opcache_statistics']['num_cached_scripts'] ?: 0, 0, '.', ' '), 'cachedscripts' => number_format(@$opcache_status['opcache_statistics']['num_cached_scripts'] ?: 0, 0, '.', ' '),
'cachehits' => number_format($cachehits, 0, '.', ' ') . ($cachetotal > 0 ? sprintf(" (%.1f %%)", $cachehits / ($cachetotal) * 100) : ''), 'cachehits' => number_format($cachehits, 0, '.', ' ') . ($cachetotal > 0 ? sprintf(" (%.1f %%)", $cachehits / ($cachetotal) * 100) : ''),
'cachemiss' => number_format($cachemiss, 0, '.', ' ') . ($cachetotal > 0 ? sprintf(" (%.1f %%)", $cachemiss / ($cachetotal) * 100) : ''), 'cachemiss' => number_format($cachemiss, 0, '.', ' ') . ($cachetotal > 0 ? sprintf(" (%.1f %%)", $cachemiss / ($cachetotal) * 100) : ''),

View File

@@ -56,7 +56,7 @@ if ($page == 'overview') {
} }
$count ++; $count ++;
if ($subdomains_count == 0 && empty($domains)) { if ($subdomains_count == 0 && empty($domains)) {
$domains = \Froxlor\I18N\Lang::getAll()['admin']['phpsettings']['notused']; $domains = $lng['admin']['phpsettings']['notused'];
} }
eval("\$tablecontent.=\"" . \Froxlor\UI\Template::getTemplate("phpconfig/overview_overview") . "\";"); eval("\$tablecontent.=\"" . \Froxlor\UI\Template::getTemplate("phpconfig/overview_overview") . "\";");
} }

View File

@@ -32,10 +32,10 @@ if ($page == '' || $page == 'overview') {
$log->logAction(ADM_ACTION, LOG_NOTICE, "viewed admin_plans"); $log->logAction(ADM_ACTION, LOG_NOTICE, "viewed admin_plans");
$fields = array( $fields = array(
'p.name' => \Froxlor\I18N\Lang::getAll()['admin']['plans']['name'], 'p.name' => $lng['admin']['plans']['name'],
'p.description' => \Froxlor\I18N\Lang::getAll()['admin']['plans']['description'], 'p.description' => $lng['admin']['plans']['description'],
'adminname' => \Froxlor\I18N\Lang::getAll()['admin']['admin'], 'adminname' => $lng['admin']['admin'],
'p.ts' => \Froxlor\I18N\Lang::getAll()['admin']['plans']['last_update'] 'p.ts' => $lng['admin']['plans']['last_update']
); );
$paging = new \Froxlor\UI\Paging(\Froxlor\User::getAll(), TABLE_PANEL_PLANS, $fields); $paging = new \Froxlor\UI\Paging(\Froxlor\User::getAll(), TABLE_PANEL_PLANS, $fields);
$plans = ''; $plans = '';
@@ -211,15 +211,15 @@ if ($page == '' || $page == 'overview') {
)); ));
} else { } else {
$diskspace_ul = \Froxlor\UI\HTML::makecheckbox('diskspace_ul', \Froxlor\I18N\Lang::getAll()['customer']['unlimited'], '-1', false, '0', true, true); $diskspace_ul = \Froxlor\UI\HTML::makecheckbox('diskspace_ul', $lng['customer']['unlimited'], '-1', false, '0', true, true);
$traffic_ul = \Froxlor\UI\HTML::makecheckbox('traffic_ul', \Froxlor\I18N\Lang::getAll()['customer']['unlimited'], '-1', false, '0', true, true); $traffic_ul = \Froxlor\UI\HTML::makecheckbox('traffic_ul', $lng['customer']['unlimited'], '-1', false, '0', true, true);
$subdomains_ul = \Froxlor\UI\HTML::makecheckbox('subdomains_ul', \Froxlor\I18N\Lang::getAll()['customer']['unlimited'], '-1', false, '0', true, true); $subdomains_ul = \Froxlor\UI\HTML::makecheckbox('subdomains_ul', $lng['customer']['unlimited'], '-1', false, '0', true, true);
$emails_ul = \Froxlor\UI\HTML::makecheckbox('emails_ul', \Froxlor\I18N\Lang::getAll()['customer']['unlimited'], '-1', false, '0', true, true); $emails_ul = \Froxlor\UI\HTML::makecheckbox('emails_ul', $lng['customer']['unlimited'], '-1', false, '0', true, true);
$email_accounts_ul = \Froxlor\UI\HTML::makecheckbox('email_accounts_ul', \Froxlor\I18N\Lang::getAll()['customer']['unlimited'], '-1', false, '0', true, true); $email_accounts_ul = \Froxlor\UI\HTML::makecheckbox('email_accounts_ul', $lng['customer']['unlimited'], '-1', false, '0', true, true);
$email_forwarders_ul = \Froxlor\UI\HTML::makecheckbox('email_forwarders_ul', \Froxlor\I18N\Lang::getAll()['customer']['unlimited'], '-1', false, '0', true, true); $email_forwarders_ul = \Froxlor\UI\HTML::makecheckbox('email_forwarders_ul', $lng['customer']['unlimited'], '-1', false, '0', true, true);
$email_quota_ul = \Froxlor\UI\HTML::makecheckbox('email_quota_ul', \Froxlor\I18N\Lang::getAll()['customer']['unlimited'], '-1', false, '0', true, true); $email_quota_ul = \Froxlor\UI\HTML::makecheckbox('email_quota_ul', $lng['customer']['unlimited'], '-1', false, '0', true, true);
$ftps_ul = \Froxlor\UI\HTML::makecheckbox('ftps_ul', \Froxlor\I18N\Lang::getAll()['customer']['unlimited'], '-1', false, '0', true, true); $ftps_ul = \Froxlor\UI\HTML::makecheckbox('ftps_ul', $lng['customer']['unlimited'], '-1', false, '0', true, true);
$mysqls_ul = \Froxlor\UI\HTML::makecheckbox('mysqls_ul', \Froxlor\I18N\Lang::getAll()['customer']['unlimited'], '-1', false, '0', true, true); $mysqls_ul = \Froxlor\UI\HTML::makecheckbox('mysqls_ul', $lng['customer']['unlimited'], '-1', false, '0', true, true);
$phpconfigs = array(); $phpconfigs = array();
$configs = Database::query(" $configs = Database::query("
@@ -390,47 +390,47 @@ if ($page == '' || $page == 'overview') {
)); ));
} else { } else {
$diskspace_ul = \Froxlor\UI\HTML::makecheckbox('diskspace_ul', \Froxlor\I18N\Lang::getAll()['customer']['unlimited'], '-1', false, $result['diskspace'], true, true); $diskspace_ul = \Froxlor\UI\HTML::makecheckbox('diskspace_ul', $lng['customer']['unlimited'], '-1', false, $result['diskspace'], true, true);
if ($result['diskspace'] == '-1') { if ($result['diskspace'] == '-1') {
$result['diskspace'] = ''; $result['diskspace'] = '';
} }
$traffic_ul = \Froxlor\UI\HTML::makecheckbox('traffic_ul', \Froxlor\I18N\Lang::getAll()['customer']['unlimited'], '-1', false, $result['traffic'], true, true); $traffic_ul = \Froxlor\UI\HTML::makecheckbox('traffic_ul', $lng['customer']['unlimited'], '-1', false, $result['traffic'], true, true);
if ($result['traffic'] == '-1') { if ($result['traffic'] == '-1') {
$result['traffic'] = ''; $result['traffic'] = '';
} }
$subdomains_ul = \Froxlor\UI\HTML::makecheckbox('subdomains_ul', \Froxlor\I18N\Lang::getAll()['customer']['unlimited'], '-1', false, $result['subdomains'], true, true); $subdomains_ul = \Froxlor\UI\HTML::makecheckbox('subdomains_ul', $lng['customer']['unlimited'], '-1', false, $result['subdomains'], true, true);
if ($result['subdomains'] == '-1') { if ($result['subdomains'] == '-1') {
$result['subdomains'] = ''; $result['subdomains'] = '';
} }
$emails_ul = \Froxlor\UI\HTML::makecheckbox('emails_ul', \Froxlor\I18N\Lang::getAll()['customer']['unlimited'], '-1', false, $result['emails'], true, true); $emails_ul = \Froxlor\UI\HTML::makecheckbox('emails_ul', $lng['customer']['unlimited'], '-1', false, $result['emails'], true, true);
if ($result['emails'] == '-1') { if ($result['emails'] == '-1') {
$result['emails'] = ''; $result['emails'] = '';
} }
$email_accounts_ul = \Froxlor\UI\HTML::makecheckbox('email_accounts_ul', \Froxlor\I18N\Lang::getAll()['customer']['unlimited'], '-1', false, $result['email_accounts'], true, true); $email_accounts_ul = \Froxlor\UI\HTML::makecheckbox('email_accounts_ul', $lng['customer']['unlimited'], '-1', false, $result['email_accounts'], true, true);
if ($result['email_accounts'] == '-1') { if ($result['email_accounts'] == '-1') {
$result['email_accounts'] = ''; $result['email_accounts'] = '';
} }
$email_forwarders_ul = \Froxlor\UI\HTML::makecheckbox('email_forwarders_ul', \Froxlor\I18N\Lang::getAll()['customer']['unlimited'], '-1', false, $result['email_forwarders'], true, true); $email_forwarders_ul = \Froxlor\UI\HTML::makecheckbox('email_forwarders_ul', $lng['customer']['unlimited'], '-1', false, $result['email_forwarders'], true, true);
if ($result['email_forwarders'] == '-1') { if ($result['email_forwarders'] == '-1') {
$result['email_forwarders'] = ''; $result['email_forwarders'] = '';
} }
$email_quota_ul = \Froxlor\UI\HTML::makecheckbox('email_quota_ul', \Froxlor\I18N\Lang::getAll()['customer']['unlimited'], '-1', false, $result['email_quota'], true, true); $email_quota_ul = \Froxlor\UI\HTML::makecheckbox('email_quota_ul', $lng['customer']['unlimited'], '-1', false, $result['email_quota'], true, true);
if ($result['email_quota'] == '-1') { if ($result['email_quota'] == '-1') {
$result['email_quota'] = ''; $result['email_quota'] = '';
} }
$ftps_ul = \Froxlor\UI\HTML::makecheckbox('ftps_ul', \Froxlor\I18N\Lang::getAll()['customer']['unlimited'], '-1', false, $result['ftps'], true, true); $ftps_ul = \Froxlor\UI\HTML::makecheckbox('ftps_ul', $lng['customer']['unlimited'], '-1', false, $result['ftps'], true, true);
if ($result['ftps'] == '-1') { if ($result['ftps'] == '-1') {
$result['ftps'] = ''; $result['ftps'] = '';
} }
$mysqls_ul = \Froxlor\UI\HTML::makecheckbox('mysqls_ul', \Froxlor\I18N\Lang::getAll()['customer']['unlimited'], '-1', false, $result['mysqls'], true, true); $mysqls_ul = \Froxlor\UI\HTML::makecheckbox('mysqls_ul', $lng['customer']['unlimited'], '-1', false, $result['mysqls'], true, true);
if ($result['mysqls'] == '-1') { if ($result['mysqls'] == '-1') {
$result['mysqls'] = ''; $result['mysqls'] = '';
} }

View File

@@ -56,7 +56,7 @@ if ($page == 'overview' && \Froxlor\User::getAll()['change_serversettings'] == '
// check if the session timeout is too low #815 // check if the session timeout is too low #815
if (isset($_POST['session_sessiontimeout']) && $_POST['session_sessiontimeout'] < 60) { if (isset($_POST['session_sessiontimeout']) && $_POST['session_sessiontimeout'] < 60) {
\Froxlor\UI\Response::standard_error(\Froxlor\I18N\Lang::getAll()['error']['session_timeout'], \Froxlor\I18N\Lang::getAll()['error']['session_timeout_desc']); \Froxlor\UI\Response::standard_error($lng['error']['session_timeout'], $lng['error']['session_timeout_desc']);
} }
if (processFormEx($settings_data, $_POST, array( if (processFormEx($settings_data, $_POST, array(
@@ -136,7 +136,7 @@ if ($page == 'overview' && \Froxlor\User::getAll()['change_serversettings'] == '
} }
$phpinfo = $phpinfohtml; $phpinfo = $phpinfohtml;
} else { } else {
\Froxlor\UI\Response::standard_error(\Froxlor\I18N\Lang::getAll()['error']['no_phpinfo']); \Froxlor\UI\Response::standard_error($lng['error']['no_phpinfo']);
} }
eval("echo \"" . \Froxlor\UI\Template::getTemplate("settings/phpinfo") . "\";"); eval("echo \"" . \Froxlor\UI\Template::getTemplate("settings/phpinfo") . "\";");
} elseif ($page == 'rebuildconfigs' && \Froxlor\User::getAll()['change_serversettings'] == '1') { } elseif ($page == 'rebuildconfigs' && \Froxlor\User::getAll()['change_serversettings'] == '1') {
@@ -267,7 +267,7 @@ if ($page == 'overview' && \Froxlor\User::getAll()['change_serversettings'] == '
foreach ($integrity->available as $id => $check) { foreach ($integrity->available as $id => $check) {
$displayid = $id + 1; $displayid = $id + 1;
$result = $integrity->$check(); $result = $integrity->$check();
$checkdesc = \Froxlor\I18N\Lang::getAll()['integrity_check'][$check]; $checkdesc = $lng['integrity_check'][$check];
eval("\$integritycheck.=\"" . \Froxlor\UI\Template::getTemplate("settings/integritycheck_row") . "\";"); eval("\$integritycheck.=\"" . \Froxlor\UI\Template::getTemplate("settings/integritycheck_row") . "\";");
} }
eval("echo \"" . \Froxlor\UI\Template::getTemplate("settings/integritycheck") . "\";"); eval("echo \"" . \Froxlor\UI\Template::getTemplate("settings/integritycheck") . "\";");

View File

@@ -81,7 +81,7 @@ if ($action == '') {
foreach ($template_defs as $action => $email) { foreach ($template_defs as $action => $email) {
$subjectid = $email['subject']; $subjectid = $email['subject'];
$mailbodyid = $email['mailbody']; $mailbodyid = $email['mailbody'];
$template = \Froxlor\I18N\Lang::getAll()['admin']['templates'][$action]; $template = $lng['admin']['templates'][$action];
eval("\$templates.=\"" . \Froxlor\UI\Template::getTemplate("templates/templates_template") . "\";"); eval("\$templates.=\"" . \Froxlor\UI\Template::getTemplate("templates/templates_template") . "\";");
} }
} }
@@ -148,7 +148,7 @@ if ($action == '') {
'ida' => $subjectid, 'ida' => $subjectid,
'idb' => $mailbodyid 'idb' => $mailbodyid
)); ));
$log->logAction(ADM_ACTION, LOG_INFO, "deleted template '" . $result['language'] . ' - ' . \Froxlor\I18N\Lang::getAll()['admin']['templates'][str_replace('_subject', '', $result['varname'])] . "'"); $log->logAction(ADM_ACTION, LOG_INFO, "deleted template '" . $result['language'] . ' - ' . $lng['admin']['templates'][str_replace('_subject', '', $result['varname'])] . "'");
\Froxlor\UI\Response::redirectTo($filename, array( \Froxlor\UI\Response::redirectTo($filename, array(
'page' => $page, 'page' => $page,
's' => $s 's' => $s
@@ -159,7 +159,7 @@ if ($action == '') {
'mailbodyid' => $mailbodyid, 'mailbodyid' => $mailbodyid,
'page' => $page, 'page' => $page,
'action' => $action 'action' => $action
), $result['language'] . ' - ' . \Froxlor\I18N\Lang::getAll()['admin']['templates'][str_replace('_subject', '', $result['varname'])]); ), $result['language'] . ' - ' . $lng['admin']['templates'][str_replace('_subject', '', $result['varname'])]);
} }
} }
} elseif ($action == 'deletef' && $id != 0) { } elseif ($action == 'deletef' && $id != 0) {
@@ -184,7 +184,7 @@ if ($action == '') {
'adminid' => \Froxlor\User::getAll()['adminid'], 'adminid' => \Froxlor\User::getAll()['adminid'],
'id' => $id 'id' => $id
)); ));
$log->logAction(ADM_ACTION, LOG_INFO, "deleted template '" . \Froxlor\I18N\Lang::getAll()['admin']['templates'][$row['varname']] . "'"); $log->logAction(ADM_ACTION, LOG_INFO, "deleted template '" . $lng['admin']['templates'][$row['varname']] . "'");
\Froxlor\UI\Response::redirectTo($filename, array( \Froxlor\UI\Response::redirectTo($filename, array(
'page' => $page, 'page' => $page,
's' => $s 's' => $s
@@ -194,7 +194,7 @@ if ($action == '') {
'id' => $id, 'id' => $id,
'page' => $page, 'page' => $page,
'action' => $action 'action' => $action
), \Froxlor\I18N\Lang::getAll()['admin']['templates'][$row['varname']]); ), $lng['admin']['templates'][$row['varname']]);
} }
} else { } else {
\Froxlor\UI\Response::standard_error('templatenotfound'); \Froxlor\UI\Response::standard_error('templatenotfound');
@@ -220,8 +220,8 @@ if ($action == '') {
} }
} }
$subject = \Froxlor\I18N\Lang::getAll()['mails'][$template]['subject']; $subject = $lng['mails'][$template]['subject'];
$body = str_replace('\n', "\n", \Froxlor\I18N\Lang::getAll()['mails'][$template]['mailbody']); $body = str_replace('\n', "\n", $lng['mails'][$template]['mailbody']);
$lng = $lng_bak; $lng = $lng_bak;
@@ -342,7 +342,7 @@ if ($action == '') {
$templates = array_diff($available_templates, $templates); $templates = array_diff($available_templates, $templates);
foreach ($templates as $template) { foreach ($templates as $template) {
$template_options .= \Froxlor\UI\HTML::makeoption(\Froxlor\I18N\Lang::getAll()['admin']['templates'][$template], $template, NULL, true, true, $language_file) . "\n"; $template_options .= \Froxlor\UI\HTML::makeoption($lng['admin']['templates'][$template], $template, NULL, true, true, $language_file) . "\n";
} }
} }
} }
@@ -373,7 +373,7 @@ if ($action == '') {
} }
foreach (array_diff($file_templates, $templatesdefined) as $template) { foreach (array_diff($file_templates, $templatesdefined) as $template) {
$free_templates .= \Froxlor\UI\HTML::makeoption(\Froxlor\I18N\Lang::getAll()['admin']['templates'][$template], $template, '', true); $free_templates .= \Froxlor\UI\HTML::makeoption($lng['admin']['templates'][$template], $template, '', true);
} }
$filetemplate_add_data = include_once dirname(__FILE__) . '/lib/formfields/admin/templates/formfield.filetemplate_add.php'; $filetemplate_add_data = include_once dirname(__FILE__) . '/lib/formfields/admin/templates/formfield.filetemplate_add.php';
@@ -427,7 +427,7 @@ if ($action == '') {
} else { } else {
$result = \Froxlor\PhpHelper::htmlentities_array($result); $result = \Froxlor\PhpHelper::htmlentities_array($result);
$template = \Froxlor\I18N\Lang::getAll()['admin']['templates'][str_replace('_subject', '', $result['varname'])]; $template = $lng['admin']['templates'][str_replace('_subject', '', $result['varname'])];
$subject = $result['value']; $subject = $result['value'];
$result_stmt = Database::prepare(" $result_stmt = Database::prepare("
SELECT `language`, `varname`, `value` SELECT `language`, `varname`, `value`

View File

@@ -59,7 +59,7 @@ if ($page == 'overview' || $page == 'customers') {
for ($years = 0; $years <= $maxyears; $years ++) { for ($years = 0; $years <= $maxyears; $years ++) {
$overview['year'] = date("Y") - $years; $overview['year'] = date("Y") - $years;
$overview['type'] = \Froxlor\I18N\Lang::getAll()['traffic']['customer']; $overview['type'] = $lng['traffic']['customer'];
$domain_list = ''; $domain_list = '';
$totals = array( $totals = array(
'jan' => 0, 'jan' => 0,
@@ -122,7 +122,7 @@ if ($page == 'overview' || $page == 'customers') {
} }
// sum up totals // sum up totals
$virtual_host = array( $virtual_host = array(
'name' => \Froxlor\I18N\Lang::getAll()['traffic']['months']['total'] 'name' => $lng['traffic']['months']['total']
); );
foreach ($totals as $month => $bytes) { foreach ($totals as $month => $bytes) {
$virtual_host[$month] = ($bytes == 0 ? '-' : \Froxlor\PhpHelper::size_readable($bytes, 'GiB', 'bi', '%01.' . (int) Settings::Get('panel.decimal_places') . 'f %s')); $virtual_host[$month] = ($bytes == 0 ? '-' : \Froxlor\PhpHelper::size_readable($bytes, 'GiB', 'bi', '%01.' . (int) Settings::Get('panel.decimal_places') . 'f %s'));

View File

@@ -83,7 +83,7 @@ if ($page == 'overview') {
$new_version = $version; $new_version = $version;
$new_db_version = $dbversion; $new_db_version = $dbversion;
$ui_text = \Froxlor\I18N\Lang::getAll()['update']['update_information']['part_a']; $ui_text = $lng['update']['update_information']['part_a'];
if ($version != $current_version) { if ($version != $current_version) {
$ui_text = str_replace('%curversion', $current_version, $ui_text); $ui_text = str_replace('%curversion', $current_version, $ui_text);
$ui_text = str_replace('%newversion', $new_version, $ui_text); $ui_text = str_replace('%newversion', $new_version, $ui_text);
@@ -100,12 +100,12 @@ if ($page == 'overview') {
$update_information .= '<br />' . $preconfig . $message; $update_information .= '<br />' . $preconfig . $message;
} }
$update_information .= \Froxlor\I18N\Lang::getAll()['update']['update_information']['part_b']; $update_information .= $lng['update']['update_information']['part_b'];
eval("echo \"" . \Froxlor\UI\Template::getTemplate('update/index') . "\";"); eval("echo \"" . \Froxlor\UI\Template::getTemplate('update/index') . "\";");
} }
} else { } else {
$success_message = \Froxlor\I18N\Lang::getAll()['update']['noupdatesavail']; $success_message = $lng['update']['noupdatesavail'];
$redirect_url = 'admin_index.php?s=' . $s; $redirect_url = 'admin_index.php?s=' . $s;
eval("echo \"" . \Froxlor\UI\Template::getTemplate('update/noupdatesavail') . "\";"); eval("echo \"" . \Froxlor\UI\Template::getTemplate('update/noupdatesavail') . "\";");
} }

View File

@@ -59,7 +59,7 @@ if ($action == 'delete') {
Database::pexecute($del_stmt, array( Database::pexecute($del_stmt, array(
'id' => $id 'id' => $id
)); ));
$success_message = sprintf(\Froxlor\I18N\Lang::getAll()['apikeys']['apikey_removed'], $id); $success_message = sprintf($lng['apikeys']['apikey_removed'], $id);
} }
} }
} elseif ($action == 'add') { } elseif ($action == 'add') {
@@ -81,7 +81,7 @@ if ($action == 'delete') {
'aid' => \Froxlor\User::getAll()['adminid'], 'aid' => \Froxlor\User::getAll()['adminid'],
'cid' => $cid 'cid' => $cid
)); ));
$success_message = \Froxlor\I18N\Lang::getAll()['apikeys']['apikey_added']; $success_message = $lng['apikeys']['apikey_added'];
} elseif ($action == 'jqEditApiKey') { } elseif ($action == 'jqEditApiKey') {
$keyid = isset($_POST['id']) ? (int) $_POST['id'] : 0; $keyid = isset($_POST['id']) ? (int) $_POST['id'] : 0;
$allowed_from = isset($_POST['allowed_from']) ? $_POST['allowed_from'] : ""; $allowed_from = isset($_POST['allowed_from']) ? $_POST['allowed_from'] : "";
@@ -138,20 +138,20 @@ if (AREA == 'admin' && \Froxlor\User::getAll()['customers_see_all'] == '0') {
$keys_stmt_query .= "ak.adminid = :adminid "; $keys_stmt_query .= "ak.adminid = :adminid ";
$qry_params['adminid'] = \Froxlor\User::getAll()['adminid']; $qry_params['adminid'] = \Froxlor\User::getAll()['adminid'];
$fields = array( $fields = array(
'a.loginname' => \Froxlor\I18N\Lang::getAll()['login']['username'] 'a.loginname' => $lng['login']['username']
); );
} elseif (AREA == 'customer') { } elseif (AREA == 'customer') {
// customer-area // customer-area
$keys_stmt_query .= "ak.customerid = :cid "; $keys_stmt_query .= "ak.customerid = :cid ";
$qry_params['cid'] = \Froxlor\User::getAll()['customerid']; $qry_params['cid'] = \Froxlor\User::getAll()['customerid'];
$fields = array( $fields = array(
'c.loginname' => \Froxlor\I18N\Lang::getAll()['login']['username'] 'c.loginname' => $lng['login']['username']
); );
} else { } else {
// admin who can see all customers / reseller / admins // admin who can see all customers / reseller / admins
$keys_stmt_query .= "1 "; $keys_stmt_query .= "1 ";
$fields = array( $fields = array(
'a.loginname' => \Froxlor\I18N\Lang::getAll()['login']['username'] 'a.loginname' => $lng['login']['username']
); );
} }
@@ -165,7 +165,7 @@ $apikeys = "";
if (count($all_keys) == 0) { if (count($all_keys) == 0) {
$count = 0; $count = 0;
$message = \Froxlor\I18N\Lang::getAll()['apikeys']['no_api_keys']; $message = $lng['apikeys']['no_api_keys'];
$sortcode = ""; $sortcode = "";
$searchcode = ""; $searchcode = "";
$pagingcode = ""; $pagingcode = "";

View File

@@ -42,7 +42,7 @@ if ($page == 'overview') {
if ($action == '') { if ($action == '') {
$log->logAction(USR_ACTION, LOG_NOTICE, "viewed customer_domains::domains"); $log->logAction(USR_ACTION, LOG_NOTICE, "viewed customer_domains::domains");
$fields = array( $fields = array(
'd.domain' => \Froxlor\I18N\Lang::getAll()['domains']['domainname'] 'd.domain' => $lng['domains']['domainname']
); );
$paging = new \Froxlor\UI\Paging(\Froxlor\User::getAll(), TABLE_PANEL_DOMAINS, $fields); $paging = new \Froxlor\UI\Paging(\Froxlor\User::getAll(), TABLE_PANEL_DOMAINS, $fields);
$domains_stmt = Database::prepare("SELECT `d`.`id`, `d`.`customerid`, `d`.`domain`, `d`.`documentroot`, `d`.`isbinddomain`, `d`.`isemaildomain`, `d`.`caneditdomain`, `d`.`iswildcarddomain`, `d`.`parentdomainid`, `d`.`letsencrypt`, `d`.`registration_date`, `d`.`termination_date`, `ad`.`id` AS `aliasdomainid`, `ad`.`domain` AS `aliasdomain`, `da`.`id` AS `domainaliasid`, `da`.`domain` AS `domainalias` FROM `" . TABLE_PANEL_DOMAINS . "` `d` $domains_stmt = Database::prepare("SELECT `d`.`id`, `d`.`customerid`, `d`.`domain`, `d`.`documentroot`, `d`.`isbinddomain`, `d`.`isemaildomain`, `d`.`caneditdomain`, `d`.`iswildcarddomain`, `d`.`parentdomainid`, `d`.`letsencrypt`, `d`.`registration_date`, `d`.`termination_date`, `ad`.`id` AS `aliasdomainid`, `ad`.`domain` AS `aliasdomain`, `da`.`id` AS `domainaliasid`, `da`.`domain` AS `domainalias` FROM `" . TABLE_PANEL_DOMAINS . "` `d`
@@ -249,7 +249,7 @@ if ($page == 'overview') {
$domains .= \Froxlor\UI\HTML::makeoption($idna_convert->decode($row['domain']), $row['domain']); $domains .= \Froxlor\UI\HTML::makeoption($idna_convert->decode($row['domain']), $row['domain']);
} }
$aliasdomains = \Froxlor\UI\HTML::makeoption(\Froxlor\I18N\Lang::getAll()['domains']['noaliasdomain'], 0, NULL, true); $aliasdomains = \Froxlor\UI\HTML::makeoption($lng['domains']['noaliasdomain'], 0, NULL, true);
$domains_stmt = Database::prepare("SELECT `d`.`id`, `d`.`domain` FROM `" . TABLE_PANEL_DOMAINS . "` `d`, `" . TABLE_PANEL_CUSTOMERS . "` `c` $domains_stmt = Database::prepare("SELECT `d`.`id`, `d`.`domain` FROM `" . TABLE_PANEL_DOMAINS . "` `d`, `" . TABLE_PANEL_CUSTOMERS . "` `c`
WHERE `d`.`aliasdomain` IS NULL WHERE `d`.`aliasdomain` IS NULL
AND `d`.`id` <> `c`.`standardsubdomain` AND `d`.`id` <> `c`.`standardsubdomain`
@@ -270,7 +270,7 @@ if ($page == 'overview') {
if (Settings::Get('customredirect.enabled') == '1') { if (Settings::Get('customredirect.enabled') == '1') {
$codes = \Froxlor\Domain\Domain::getRedirectCodesArray(); $codes = \Froxlor\Domain\Domain::getRedirectCodesArray();
foreach ($codes as $rc) { foreach ($codes as $rc) {
$redirectcode .= \Froxlor\UI\HTML::makeoption($rc['code'] . ' (' . \Froxlor\I18N\Lang::getAll()['redirect_desc'][$rc['desc']] . ')', $rc['id']); $redirectcode .= \Froxlor\UI\HTML::makeoption($rc['code'] . ' (' . $lng['redirect_desc'][$rc['desc']] . ')', $rc['id']);
} }
} }
@@ -288,7 +288,7 @@ if ($page == 'overview') {
$ssl_ipsandports = 'notempty'; $ssl_ipsandports = 'notempty';
} }
$openbasedir = \Froxlor\UI\HTML::makeoption(\Froxlor\I18N\Lang::getAll()['domain']['docroot'], 0, NULL, true) . \Froxlor\UI\HTML::makeoption(\Froxlor\I18N\Lang::getAll()['domain']['homedir'], 1, NULL, true); $openbasedir = \Froxlor\UI\HTML::makeoption($lng['domain']['docroot'], 0, NULL, true) . \Froxlor\UI\HTML::makeoption($lng['domain']['homedir'], 1, NULL, true);
$pathSelect = \Froxlor\FileDir::makePathfield(\Froxlor\User::getAll()['documentroot'], \Froxlor\User::getAll()['guid'], \Froxlor\User::getAll()['guid']); $pathSelect = \Froxlor\FileDir::makePathfield(\Froxlor\User::getAll()['documentroot'], \Froxlor\User::getAll()['guid'], \Froxlor\User::getAll()['guid']);
$phpconfigs = ''; $phpconfigs = '';
@@ -345,7 +345,7 @@ if ($page == 'overview') {
} else { } else {
$result['domain'] = $idna_convert->decode($result['domain']); $result['domain'] = $idna_convert->decode($result['domain']);
$domains = \Froxlor\UI\HTML::makeoption(\Froxlor\I18N\Lang::getAll()['domains']['noaliasdomain'], 0, $result['aliasdomain'], true); $domains = \Froxlor\UI\HTML::makeoption($lng['domains']['noaliasdomain'], 0, $result['aliasdomain'], true);
// also check ip/port combination to be the same, #176 // also check ip/port combination to be the same, #176
$domains_stmt = Database::prepare("SELECT `d`.`id`, `d`.`domain` FROM `" . TABLE_PANEL_DOMAINS . "` `d` , `" . TABLE_PANEL_CUSTOMERS . "` `c` , `" . TABLE_DOMAINTOIP . "` `dip` $domains_stmt = Database::prepare("SELECT `d`.`id`, `d`.`domain` FROM `" . TABLE_PANEL_DOMAINS . "` `d` , `" . TABLE_PANEL_CUSTOMERS . "` `c` , `" . TABLE_DOMAINTOIP . "` `dip`
WHERE `d`.`aliasdomain` IS NULL WHERE `d`.`aliasdomain` IS NULL
@@ -387,7 +387,7 @@ if ($page == 'overview') {
$def_code = \Froxlor\Domain\Domain::getDomainRedirectId($id); $def_code = \Froxlor\Domain\Domain::getDomainRedirectId($id);
$codes = \Froxlor\Domain\Domain::getRedirectCodesArray(); $codes = \Froxlor\Domain\Domain::getRedirectCodesArray();
foreach ($codes as $rc) { foreach ($codes as $rc) {
$redirectcode .= \Froxlor\UI\HTML::makeoption($rc['code'] . ' (' . \Froxlor\I18N\Lang::getAll()['redirect_desc'][$rc['desc']] . ')', $rc['id'], $def_code); $redirectcode .= \Froxlor\UI\HTML::makeoption($rc['code'] . ' (' . $lng['redirect_desc'][$rc['desc']] . ')', $rc['id'], $def_code);
} }
} }
@@ -411,7 +411,7 @@ if ($page == 'overview') {
$result['temporary_ssl_redirect'] = $result['ssl_redirect']; $result['temporary_ssl_redirect'] = $result['ssl_redirect'];
$result['ssl_redirect'] = ($result['ssl_redirect'] == 0 ? 0 : 1); $result['ssl_redirect'] = ($result['ssl_redirect'] == 0 ? 0 : 1);
$openbasedir = \Froxlor\UI\HTML::makeoption(\Froxlor\I18N\Lang::getAll()['domain']['docroot'], 0, $result['openbasedir_path'], true) . \Froxlor\UI\HTML::makeoption(\Froxlor\I18N\Lang::getAll()['domain']['homedir'], 1, $result['openbasedir_path'], true); $openbasedir = \Froxlor\UI\HTML::makeoption($lng['domain']['docroot'], 0, $result['openbasedir_path'], true) . \Froxlor\UI\HTML::makeoption($lng['domain']['homedir'], 1, $result['openbasedir_path'], true);
// create serveralias options // create serveralias options
$serveraliasoptions = ""; $serveraliasoptions = "";
@@ -421,9 +421,9 @@ if ($page == 'overview') {
} elseif ($result['wwwserveralias'] == '1') { } elseif ($result['wwwserveralias'] == '1') {
$_value = '1'; $_value = '1';
} }
$serveraliasoptions .= \Froxlor\UI\HTML::makeoption(\Froxlor\I18N\Lang::getAll()['domains']['serveraliasoption_wildcard'], '0', $_value, true, true); $serveraliasoptions .= \Froxlor\UI\HTML::makeoption($lng['domains']['serveraliasoption_wildcard'], '0', $_value, true, true);
$serveraliasoptions .= \Froxlor\UI\HTML::makeoption(\Froxlor\I18N\Lang::getAll()['domains']['serveraliasoption_www'], '1', $_value, true, true); $serveraliasoptions .= \Froxlor\UI\HTML::makeoption($lng['domains']['serveraliasoption_www'], '1', $_value, true, true);
$serveraliasoptions .= \Froxlor\UI\HTML::makeoption(\Froxlor\I18N\Lang::getAll()['domains']['serveraliasoption_none'], '2', $_value, true, true); $serveraliasoptions .= \Froxlor\UI\HTML::makeoption($lng['domains']['serveraliasoption_none'], '2', $_value, true, true);
$ips_stmt = Database::prepare("SELECT `p`.`ip` AS `ip` FROM `" . TABLE_PANEL_IPSANDPORTS . "` `p` $ips_stmt = Database::prepare("SELECT `p`.`ip` AS `ip` FROM `" . TABLE_PANEL_IPSANDPORTS . "` `p`
LEFT JOIN `" . TABLE_DOMAINTOIP . "` `dip` LEFT JOIN `" . TABLE_DOMAINTOIP . "` `dip`

View File

@@ -43,9 +43,9 @@ if ($page == 'overview') {
if ($action == '') { if ($action == '') {
$log->logAction(USR_ACTION, LOG_NOTICE, "viewed customer_email::emails"); $log->logAction(USR_ACTION, LOG_NOTICE, "viewed customer_email::emails");
$fields = array( $fields = array(
'd.domain' => \Froxlor\I18N\Lang::getAll()['domains']['domainname'], 'd.domain' => $lng['domains']['domainname'],
'm.email_full' => \Froxlor\I18N\Lang::getAll()['emails']['emailaddress'], 'm.email_full' => $lng['emails']['emailaddress'],
'm.destination' => \Froxlor\I18N\Lang::getAll()['emails']['forwarders'] 'm.destination' => $lng['emails']['forwarders']
); );
$paging = new \Froxlor\UI\Paging(\Froxlor\User::getAll(), TABLE_MAIL_VIRTUAL, $fields); $paging = new \Froxlor\UI\Paging(\Froxlor\User::getAll(), TABLE_MAIL_VIRTUAL, $fields);
$result_stmt = Database::prepare('SELECT `m`.`id`, `m`.`domainid`, `m`.`email`, `m`.`email_full`, `m`.`iscatchall`, `u`.`quota`, `m`.`destination`, `m`.`popaccountid`, `d`.`domain`, `u`.`mboxsize` FROM `' . TABLE_MAIL_VIRTUAL . '` `m` $result_stmt = Database::prepare('SELECT `m`.`id`, `m`.`domainid`, `m`.`email`, `m`.`email_full`, `m`.`iscatchall`, `u`.`quota`, `m`.`destination`, `m`.`popaccountid`, `d`.`domain`, `u`.`mboxsize` FROM `' . TABLE_MAIL_VIRTUAL . '` `m`

View File

@@ -49,8 +49,8 @@ if ($page == 'overview') {
if ($action == '') { if ($action == '') {
$log->logAction(USR_ACTION, LOG_NOTICE, "viewed customer_extras::htpasswds"); $log->logAction(USR_ACTION, LOG_NOTICE, "viewed customer_extras::htpasswds");
$fields = array( $fields = array(
'username' => \Froxlor\I18N\Lang::getAll()['login']['username'], 'username' => $lng['login']['username'],
'path' => \Froxlor\I18N\Lang::getAll()['panel']['path'] 'path' => $lng['panel']['path']
); );
$paging = new \Froxlor\UI\Paging(\Froxlor\User::getAll(), TABLE_PANEL_HTPASSWDS, $fields); $paging = new \Froxlor\UI\Paging(\Froxlor\User::getAll(), TABLE_PANEL_HTPASSWDS, $fields);
$result_stmt = Database::prepare("SELECT * FROM `" . TABLE_PANEL_HTPASSWDS . "` $result_stmt = Database::prepare("SELECT * FROM `" . TABLE_PANEL_HTPASSWDS . "`
@@ -185,12 +185,12 @@ if ($page == 'overview') {
if ($action == '') { if ($action == '') {
$log->logAction(USR_ACTION, LOG_NOTICE, "viewed customer_extras::htaccess"); $log->logAction(USR_ACTION, LOG_NOTICE, "viewed customer_extras::htaccess");
$fields = array( $fields = array(
'path' => \Froxlor\I18N\Lang::getAll()['panel']['path'], 'path' => $lng['panel']['path'],
'options_indexes' => \Froxlor\I18N\Lang::getAll()['extras']['view_directory'], 'options_indexes' => $lng['extras']['view_directory'],
'error404path' => \Froxlor\I18N\Lang::getAll()['extras']['error404path'], 'error404path' => $lng['extras']['error404path'],
'error403path' => \Froxlor\I18N\Lang::getAll()['extras']['error403path'], 'error403path' => $lng['extras']['error403path'],
'error500path' => \Froxlor\I18N\Lang::getAll()['extras']['error500path'], 'error500path' => $lng['extras']['error500path'],
'options_cgi' => \Froxlor\I18N\Lang::getAll()['extras']['execute_perl'] 'options_cgi' => $lng['extras']['execute_perl']
); );
$paging = new \Froxlor\UI\Paging(\Froxlor\User::getAll(), TABLE_PANEL_HTACCESS, $fields); $paging = new \Froxlor\UI\Paging(\Froxlor\User::getAll(), TABLE_PANEL_HTACCESS, $fields);
$result_stmt = Database::prepare("SELECT * FROM `" . TABLE_PANEL_HTACCESS . "` $result_stmt = Database::prepare("SELECT * FROM `" . TABLE_PANEL_HTACCESS . "`
@@ -215,10 +215,10 @@ if ($page == 'overview') {
$row['path'] = str_replace(\Froxlor\User::getAll()['documentroot'], "/", $row['path']); $row['path'] = str_replace(\Froxlor\User::getAll()['documentroot'], "/", $row['path']);
} }
$row['path'] = \Froxlor\FileDir::makeCorrectDir($row['path']); $row['path'] = \Froxlor\FileDir::makeCorrectDir($row['path']);
$row['options_indexes'] = str_replace('1', \Froxlor\I18N\Lang::getAll()['panel']['yes'], $row['options_indexes']); $row['options_indexes'] = str_replace('1', $lng['panel']['yes'], $row['options_indexes']);
$row['options_indexes'] = str_replace('0', \Froxlor\I18N\Lang::getAll()['panel']['no'], $row['options_indexes']); $row['options_indexes'] = str_replace('0', $lng['panel']['no'], $row['options_indexes']);
$row['options_cgi'] = str_replace('1', \Froxlor\I18N\Lang::getAll()['panel']['yes'], $row['options_cgi']); $row['options_cgi'] = str_replace('1', $lng['panel']['yes'], $row['options_cgi']);
$row['options_cgi'] = str_replace('0', \Froxlor\I18N\Lang::getAll()['panel']['no'], $row['options_cgi']); $row['options_cgi'] = str_replace('0', $lng['panel']['no'], $row['options_cgi']);
$row = \Froxlor\PhpHelper::htmlentities_array($row); $row = \Froxlor\PhpHelper::htmlentities_array($row);
eval("\$htaccess.=\"" . \Froxlor\UI\Template::getTemplate("extras/htaccess_htaccess") . "\";"); eval("\$htaccess.=\"" . \Froxlor\UI\Template::getTemplate("extras/htaccess_htaccess") . "\";");
$count ++; $count ++;
@@ -377,9 +377,9 @@ if ($page == 'overview') {
$row = $existing_backupJob['data']; $row = $existing_backupJob['data'];
$row['path'] = \Froxlor\FileDir::makeCorrectDir(str_replace(\Froxlor\User::getAll()['documentroot'], "/", $row['destdir'])); $row['path'] = \Froxlor\FileDir::makeCorrectDir(str_replace(\Froxlor\User::getAll()['documentroot'], "/", $row['destdir']));
$row['backup_web'] = ($row['backup_web'] == '1') ? \Froxlor\I18N\Lang::getAll()['panel']['yes'] : \Froxlor\I18N\Lang::getAll()['panel']['no']; $row['backup_web'] = ($row['backup_web'] == '1') ? $lng['panel']['yes'] : $lng['panel']['no'];
$row['backup_mail'] = ($row['backup_mail'] == '1') ? \Froxlor\I18N\Lang::getAll()['panel']['yes'] : \Froxlor\I18N\Lang::getAll()['panel']['no']; $row['backup_mail'] = ($row['backup_mail'] == '1') ? $lng['panel']['yes'] : $lng['panel']['no'];
$row['backup_dbs'] = ($row['backup_dbs'] == '1') ? \Froxlor\I18N\Lang::getAll()['panel']['yes'] : \Froxlor\I18N\Lang::getAll()['panel']['no']; $row['backup_dbs'] = ($row['backup_dbs'] == '1') ? $lng['panel']['yes'] : $lng['panel']['no'];
} }
$pathSelect = \Froxlor\FileDir::makePathfield(\Froxlor\User::getAll()['documentroot'], \Froxlor\User::getAll()['guid'], \Froxlor\User::getAll()['guid']); $pathSelect = \Froxlor\FileDir::makePathfield(\Froxlor\User::getAll()['documentroot'], \Froxlor\User::getAll()['guid'], \Froxlor\User::getAll()['guid']);
$backup_data = include_once dirname(__FILE__) . '/lib/formfields/customer/extras/formfield.backup.php'; $backup_data = include_once dirname(__FILE__) . '/lib/formfields/customer/extras/formfield.backup.php';

View File

@@ -42,9 +42,9 @@ if ($page == 'overview') {
if ($action == '') { if ($action == '') {
$log->logAction(USR_ACTION, LOG_NOTICE, "viewed customer_ftp::accounts"); $log->logAction(USR_ACTION, LOG_NOTICE, "viewed customer_ftp::accounts");
$fields = array( $fields = array(
'username' => \Froxlor\I18N\Lang::getAll()['login']['username'], 'username' => $lng['login']['username'],
'homedir' => \Froxlor\I18N\Lang::getAll()['panel']['path'], 'homedir' => $lng['panel']['path'],
'description' => \Froxlor\I18N\Lang::getAll()['panel']['ftpdesc'] 'description' => $lng['panel']['ftpdesc']
); );
$paging = new \Froxlor\UI\Paging(\Froxlor\User::getAll(), TABLE_FTP_USERS, $fields); $paging = new \Froxlor\UI\Paging(\Froxlor\User::getAll(), TABLE_FTP_USERS, $fields);

View File

@@ -100,7 +100,7 @@ if ($page == 'overview') {
\Froxlor\User::getAll()['traffic'] = round(\Froxlor\User::getAll()['traffic'] / (1024 * 1024), Settings::Get('panel.decimal_places')); \Froxlor\User::getAll()['traffic'] = round(\Froxlor\User::getAll()['traffic'] / (1024 * 1024), Settings::Get('panel.decimal_places'));
\Froxlor\User::getAll()['traffic_used'] = round(\Froxlor\User::getAll()['traffic_used'] / (1024 * 1024), Settings::Get('panel.decimal_places')); \Froxlor\User::getAll()['traffic_used'] = round(\Froxlor\User::getAll()['traffic_used'] / (1024 * 1024), Settings::Get('panel.decimal_places'));
\Froxlor\User::getAll() = \Froxlor\PhpHelper::str_replace_array('-1', \Froxlor\I18N\Lang::getAll()['customer']['unlimited'], \Froxlor\User::getAll(), 'diskspace traffic mysqls emails email_accounts email_forwarders email_quota ftps subdomains'); \Froxlor\User::getAll() = \Froxlor\PhpHelper::str_replace_array('-1', $lng['customer']['unlimited'], \Froxlor\User::getAll(), 'diskspace traffic mysqls emails email_accounts email_forwarders email_quota ftps subdomains');
\Froxlor\User::getAll()['custom_notes'] = (\Froxlor\User::getAll()['custom_notes'] != '') ? nl2br(\Froxlor\User::getAll()['custom_notes']) : ''; \Froxlor\User::getAll()['custom_notes'] = (\Froxlor\User::getAll()['custom_notes'] != '') ? nl2br(\Froxlor\User::getAll()['custom_notes']) : '';

View File

@@ -30,10 +30,10 @@ if (Settings::IsInList('panel.customer_hide_options', 'extras.logger')) {
if ($page == 'log') { if ($page == 'log') {
if ($action == '') { if ($action == '') {
$fields = array( $fields = array(
'date' => \Froxlor\I18N\Lang::getAll()['logger']['date'], 'date' => $lng['logger']['date'],
'type' => \Froxlor\I18N\Lang::getAll()['logger']['type'], 'type' => $lng['logger']['type'],
'user' => \Froxlor\I18N\Lang::getAll()['logger']['user'], 'user' => $lng['logger']['user'],
'text' => \Froxlor\I18N\Lang::getAll()['logger']['action'] 'text' => $lng['logger']['action']
); );
$paging = new \Froxlor\UI\Paging(\Froxlor\User::getAll(), TABLE_PANEL_LOG, $fields, null, null, 0, 'desc', 30); $paging = new \Froxlor\UI\Paging(\Froxlor\User::getAll(), TABLE_PANEL_LOG, $fields, null, null, 0, 'desc', 30);
$query = 'SELECT * FROM `' . TABLE_PANEL_LOG . '` WHERE `user` = :loginname ' . $paging->getSqlWhere(true) . ' ' . $paging->getSqlOrderBy(); $query = 'SELECT * FROM `' . TABLE_PANEL_LOG . '` WHERE `user` = :loginname ' . $paging->getSqlWhere(true) . ' ' . $paging->getSqlOrderBy();
@@ -82,25 +82,25 @@ if ($page == 'log') {
if ($_action != $action) { if ($_action != $action) {
switch ($action) { switch ($action) {
case USR_ACTION: case USR_ACTION:
$_action = \Froxlor\I18N\Lang::getAll()['admin']['customer']; $_action = $lng['admin']['customer'];
break; break;
case RES_ACTION: case RES_ACTION:
$_action = \Froxlor\I18N\Lang::getAll()['logger']['reseller']; $_action = $lng['logger']['reseller'];
break; break;
case ADM_ACTION: case ADM_ACTION:
$_action = \Froxlor\I18N\Lang::getAll()['logger']['admin']; $_action = $lng['logger']['admin'];
break; break;
case CRON_ACTION: case CRON_ACTION:
$_action = \Froxlor\I18N\Lang::getAll()['logger']['cron']; $_action = $lng['logger']['cron'];
break; break;
case LOGIN_ACTION: case LOGIN_ACTION:
$_action = \Froxlor\I18N\Lang::getAll()['logger']['login']; $_action = $lng['logger']['login'];
break; break;
case LOG_ERROR: case LOG_ERROR:
$_action = \Froxlor\I18N\Lang::getAll()['logger']['intern']; $_action = $lng['logger']['intern'];
break; break;
default: default:
$_action = \Froxlor\I18N\Lang::getAll()['logger']['unknown']; $_action = $lng['logger']['unknown'];
break; break;
} }

View File

@@ -44,14 +44,14 @@ if ($page == 'overview') {
$log->logAction(USR_ACTION, LOG_NOTICE, "viewed customer_mysql"); $log->logAction(USR_ACTION, LOG_NOTICE, "viewed customer_mysql");
Database::needSqlData(); Database::needSqlData();
$sql = Database::getSqlData(); $sql = Database::getSqlData();
\Froxlor\I18N\Lang::getAll()['mysql']['description'] = str_replace('<SQL_HOST>', $sql['host'], \Froxlor\I18N\Lang::getAll()['mysql']['description']); $lng['mysql']['description'] = str_replace('<SQL_HOST>', $sql['host'], $lng['mysql']['description']);
eval("echo \"" . \Froxlor\UI\Template::getTemplate('mysql/mysql') . "\";"); eval("echo \"" . \Froxlor\UI\Template::getTemplate('mysql/mysql') . "\";");
} elseif ($page == 'mysqls') { } elseif ($page == 'mysqls') {
if ($action == '') { if ($action == '') {
$log->logAction(USR_ACTION, LOG_NOTICE, "viewed customer_mysql::mysqls"); $log->logAction(USR_ACTION, LOG_NOTICE, "viewed customer_mysql::mysqls");
$fields = array( $fields = array(
'databasename' => \Froxlor\I18N\Lang::getAll()['mysql']['databasename'], 'databasename' => $lng['mysql']['databasename'],
'description' => \Froxlor\I18N\Lang::getAll()['mysql']['databasedescription'] 'description' => $lng['mysql']['databasedescription']
); );
$paging = new \Froxlor\UI\Paging(\Froxlor\User::getAll(), TABLE_PANEL_DATABASES, $fields); $paging = new \Froxlor\UI\Paging(\Froxlor\User::getAll(), TABLE_PANEL_DATABASES, $fields);
$result_stmt = Database::prepare("SELECT * FROM `" . TABLE_PANEL_DATABASES . "` $result_stmt = Database::prepare("SELECT * FROM `" . TABLE_PANEL_DATABASES . "`

View File

@@ -103,7 +103,7 @@ if (! is_null($month) && ! is_null($year)) {
} }
eval("\$traffic.=\"" . \Froxlor\UI\Template::getTemplate('traffic/traffic_month') . "\";"); eval("\$traffic.=\"" . \Froxlor\UI\Template::getTemplate('traffic/traffic_month') . "\";");
$show = \Froxlor\I18N\Lang::getAll()['traffic']['months'][intval($row['month'])] . ' ' . $row['year']; $show = $lng['traffic']['months'][intval($row['month'])] . ' ' . $row['year'];
} }
$traffic_complete['http'] = \Froxlor\PhpHelper::size_readable($traffic_complete['http'] * 1024, 'GiB', 'bi', '%01.' . (int) Settings::Get('panel.decimal_places') . 'f %s'); $traffic_complete['http'] = \Froxlor\PhpHelper::size_readable($traffic_complete['http'] * 1024, 'GiB', 'bi', '%01.' . (int) Settings::Get('panel.decimal_places') . 'f %s');
@@ -134,7 +134,7 @@ if (! is_null($month) && ! is_null($year)) {
$traffic_complete['mail'] += $mail; $traffic_complete['mail'] += $mail;
$traf['month'] = $row['month']; $traf['month'] = $row['month'];
$traf['year'] = $row['year']; $traf['year'] = $row['year'];
$traf['monthname'] = \Froxlor\I18N\Lang::getAll()['traffic']['months'][intval($row['month'])] . " " . $row['year']; $traf['monthname'] = $lng['traffic']['months'][intval($row['month'])] . " " . $row['year'];
$traf['byte'] = $http + $ftp_up + $ftp_down + $mail; $traf['byte'] = $http + $ftp_up + $ftp_down + $mail;
if (extension_loaded('bcmath')) { if (extension_loaded('bcmath')) {

View File

@@ -57,7 +57,7 @@ if ($action == 'add_record' && ! empty($_POST)) {
'content' => $content, 'content' => $content,
'ttl' => $ttl 'ttl' => $ttl
))->add(); ))->add();
$success_message = \Froxlor\I18N\Lang::getAll()['success']['dns_record_added']; $success_message = $lng['success']['dns_record_added'];
} catch (Exception $e) { } catch (Exception $e) {
\Froxlor\UI\Response::dynamic_error($e->getMessage()); \Froxlor\UI\Response::dynamic_error($e->getMessage());
} }
@@ -85,7 +85,7 @@ if ($action == 'add_record' && ! empty($_POST)) {
} }
unset($_t); unset($_t);
// success message (inline) // success message (inline)
$success_message = \Froxlor\I18N\Lang::getAll()['success']['dns_record_deleted']; $success_message = $lng['success']['dns_record_deleted'];
} }
} }
} }

View File

@@ -281,10 +281,10 @@ if ($action == '2fa_entercode') {
$replace_arr = array( $replace_arr = array(
'CODE' => $code 'CODE' => $code
); );
$mail_body = html_entity_decode(\Froxlor\PhpHelper::replace_variables(\Froxlor\I18N\Lang::getAll()['mails']['2fa']['mailbody'], $replace_arr)); $mail_body = html_entity_decode(\Froxlor\PhpHelper::replace_variables($lng['mails']['2fa']['mailbody'], $replace_arr));
try { try {
$mail->Subject = \Froxlor\I18N\Lang::getAll()['mails']['2fa']['subject']; $mail->Subject = $lng['mails']['2fa']['subject'];
$mail->AltBody = $mail_body; $mail->AltBody = $mail_body;
$mail->MsgHTML(str_replace("\n", "<br />", $mail_body)); $mail->MsgHTML(str_replace("\n", "<br />", $mail_body));
$mail->AddAddress(\Froxlor\User::getAll()['email'], \Froxlor\User::getCorrectUserSalutation(\Froxlor\User::getAll())); $mail->AddAddress(\Froxlor\User::getAll()['email'], \Froxlor\User::getCorrectUserSalutation(\Froxlor\User::getAll()));
@@ -325,7 +325,7 @@ if ($action == '2fa_entercode') {
exit(); exit();
} else { } else {
$language_options = ''; $language_options = '';
$language_options .= \Froxlor\UI\HTML::makeoption(\Froxlor\I18N\Lang::getAll()['login']['profile_lng'], 'profile', 'profile', true, true); $language_options .= \Froxlor\UI\HTML::makeoption($lng['login']['profile_lng'], 'profile', 'profile', true, true);
foreach ($languages as $language_file => $language_name) { foreach ($languages as $language_file => $language_name) {
$language_options .= \Froxlor\UI\HTML::makeoption($language_name, $language_file, 'profile', true); $language_options .= \Froxlor\UI\HTML::makeoption($language_name, $language_file, 'profile', true);
@@ -337,35 +337,35 @@ if ($action == '2fa_entercode') {
switch ($smessage) { switch ($smessage) {
case 1: case 1:
$successmessage = \Froxlor\I18N\Lang::getAll()['pwdreminder']['success']; $successmessage = $lng['pwdreminder']['success'];
break; break;
case 2: case 2:
$message = \Froxlor\I18N\Lang::getAll()['error']['login']; $message = $lng['error']['login'];
break; break;
case 3: case 3:
$message = sprintf(\Froxlor\I18N\Lang::getAll()['error']['login_blocked'], Settings::Get('login.deactivatetime')); $message = sprintf($lng['error']['login_blocked'], Settings::Get('login.deactivatetime'));
break; break;
case 4: case 4:
$cmail = isset($_GET['customermail']) ? $_GET['customermail'] : 'unknown'; $cmail = isset($_GET['customermail']) ? $_GET['customermail'] : 'unknown';
$message = str_replace('%s', $cmail, \Froxlor\I18N\Lang::getAll()['error']['errorsendingmail']); $message = str_replace('%s', $cmail, $lng['error']['errorsendingmail']);
break; break;
case 5: case 5:
$message = \Froxlor\I18N\Lang::getAll()['error']['user_banned']; $message = $lng['error']['user_banned'];
break; break;
case 6: case 6:
$successmessage = \Froxlor\I18N\Lang::getAll()['pwdreminder']['changed']; $successmessage = $lng['pwdreminder']['changed'];
break; break;
case 7: case 7:
$message = \Froxlor\I18N\Lang::getAll()['pwdreminder']['wrongcode']; $message = $lng['pwdreminder']['wrongcode'];
break; break;
case 8: case 8:
$message = \Froxlor\I18N\Lang::getAll()['pwdreminder']['notallowed']; $message = $lng['pwdreminder']['notallowed'];
break; break;
} }
$update_in_progress = ''; $update_in_progress = '';
if (\Froxlor\Froxlor::hasUpdates() || \Froxlor\Froxlor::hasDbUpdates()) { if (\Froxlor\Froxlor::hasUpdates() || \Froxlor\Froxlor::hasDbUpdates()) {
$update_in_progress = \Froxlor\I18N\Lang::getAll()['update']['updateinprogress_onlyadmincanlogin']; $update_in_progress = $lng['update']['updateinprogress_onlyadmincanlogin'];
} }
// Pass the last used page if needed // Pass the last used page if needed
@@ -496,7 +496,7 @@ if ($action == 'forgotpwd') {
"lang" => $def_language "lang" => $def_language
)); ));
$result = $result_stmt->fetch(PDO::FETCH_ASSOC); $result = $result_stmt->fetch(PDO::FETCH_ASSOC);
$mail_subject = html_entity_decode(\Froxlor\PhpHelper::replace_variables((($result['value'] != '') ? $result['value'] : \Froxlor\I18N\Lang::getAll()['mails']['password_reset']['subject']), $replace_arr)); $mail_subject = html_entity_decode(\Froxlor\PhpHelper::replace_variables((($result['value'] != '') ? $result['value'] : $lng['mails']['password_reset']['subject']), $replace_arr));
$result_stmt = Database::prepare('SELECT `value` FROM `' . TABLE_PANEL_TEMPLATES . '` $result_stmt = Database::prepare('SELECT `value` FROM `' . TABLE_PANEL_TEMPLATES . '`
WHERE `adminid`= :adminid WHERE `adminid`= :adminid
@@ -508,7 +508,7 @@ if ($action == 'forgotpwd') {
"lang" => $def_language "lang" => $def_language
)); ));
$result = $result_stmt->fetch(PDO::FETCH_ASSOC); $result = $result_stmt->fetch(PDO::FETCH_ASSOC);
$mail_body = html_entity_decode(\Froxlor\PhpHelper::replace_variables((($result['value'] != '') ? $result['value'] : \Froxlor\I18N\Lang::getAll()['mails']['password_reset']['mailbody']), $replace_arr)); $mail_body = html_entity_decode(\Froxlor\PhpHelper::replace_variables((($result['value'] != '') ? $result['value'] : $lng['mails']['password_reset']['mailbody']), $replace_arr));
$_mailerror = false; $_mailerror = false;
$mailerr_msg = ""; $mailerr_msg = "";
@@ -548,24 +548,24 @@ if ($action == 'forgotpwd') {
'loginname' => 'password_reset' 'loginname' => 'password_reset'
)); ));
$rstlog->logAction(USR_ACTION, LOG_WARNING, "User '" . $loginname . "' requested to set a new password, but was not found in database!"); $rstlog->logAction(USR_ACTION, LOG_WARNING, "User '" . $loginname . "' requested to set a new password, but was not found in database!");
$message = \Froxlor\I18N\Lang::getAll()['login']['combination_not_found']; $message = $lng['login']['combination_not_found'];
} }
unset($user); unset($user);
} }
} else { } else {
$message = \Froxlor\I18N\Lang::getAll()['login']['usernotfound']; $message = $lng['login']['usernotfound'];
} }
} }
if ($adminchecked) { if ($adminchecked) {
if (Settings::Get('panel.allow_preset_admin') != '1') { if (Settings::Get('panel.allow_preset_admin') != '1') {
$message = \Froxlor\I18N\Lang::getAll()['pwdreminder']['notallowed']; $message = $lng['pwdreminder']['notallowed'];
unset($adminchecked); unset($adminchecked);
} }
} else { } else {
if (Settings::Get('panel.allow_preset') != '1') { if (Settings::Get('panel.allow_preset') != '1') {
$message = \Froxlor\I18N\Lang::getAll()['pwdreminder']['notallowed']; $message = $lng['pwdreminder']['notallowed'];
} }
} }

View File

@@ -42,7 +42,7 @@ function parseAndOutputPreconfig(&$has_preconfig, &$return, $current_version, $c
$question = '<strong>Do you want to use wildcard-entries for existing domains?:</strong>&nbsp;'; $question = '<strong>Do you want to use wildcard-entries for existing domains?:</strong>&nbsp;';
$question .= \Froxlor\UI\HTML::makeyesno('update_domainwildcardentry', '1', '0', '1'); $question .= \Froxlor\UI\HTML::makeyesno('update_domainwildcardentry', '1', '0', '1');
eval("\$return.=\"" . \Froxlor\UI\Template::getTemplate("update/preconfigitem") . "\";"); eval("\$return.=\"" . getTemplate("update/preconfigitem") . "\";");
} }
if (versionInUpdate($current_version, '0.9.6-svn2')) { if (versionInUpdate($current_version, '0.9.6-svn2')) {
@@ -50,7 +50,7 @@ function parseAndOutputPreconfig(&$has_preconfig, &$return, $current_version, $c
$has_preconfig = true; $has_preconfig = true;
$description = 'Froxlor uses a newer version of the phpMailerClass and determined that your current admin-mail address is invalid.'; $description = 'Froxlor uses a newer version of the phpMailerClass and determined that your current admin-mail address is invalid.';
$question = '<strong>Please specify a new admin-email address:</strong>&nbsp;<input type="text" class="text" name="update_adminmail" value="' . Settings::Get('panel.adminmail') . '" />'; $question = '<strong>Please specify a new admin-email address:</strong>&nbsp;<input type="text" class="text" name="update_adminmail" value="' . Settings::Get('panel.adminmail') . '" />';
eval("\$return.=\"" . \Froxlor\UI\Template::getTemplate("update/preconfigitem") . "\";"); eval("\$return.=\"" . getTemplate("update/preconfigitem") . "\";");
} }
} }
@@ -65,7 +65,7 @@ function parseAndOutputPreconfig(&$has_preconfig, &$return, $current_version, $c
$question .= 'Path/URL for error 403:&nbsp;<input type="text" class="text" name="update_deferr_403" /><br /><br />'; $question .= 'Path/URL for error 403:&nbsp;<input type="text" class="text" name="update_deferr_403" /><br /><br />';
} }
$question .= 'Path/URL for error 404:&nbsp;<input type="text" class="text" name="update_deferr_404" />'; $question .= 'Path/URL for error 404:&nbsp;<input type="text" class="text" name="update_deferr_404" />';
eval("\$return.=\"" . \Froxlor\UI\Template::getTemplate("update/preconfigitem") . "\";"); eval("\$return.=\"" . getTemplate("update/preconfigitem") . "\";");
} }
if (versionInUpdate($current_version, '0.9.6-svn4')) { if (versionInUpdate($current_version, '0.9.6-svn4')) {
@@ -73,11 +73,11 @@ function parseAndOutputPreconfig(&$has_preconfig, &$return, $current_version, $c
$description = 'You can define a default support-ticket priority level which is pre-selected for new support-tickets.'; $description = 'You can define a default support-ticket priority level which is pre-selected for new support-tickets.';
$question = '<strong>Which should be the default ticket-priority?:</strong>&nbsp;'; $question = '<strong>Which should be the default ticket-priority?:</strong>&nbsp;';
$question .= '<select name="update_deftic_priority">'; $question .= '<select name="update_deftic_priority">';
$priorities = \Froxlor\UI\HTML::makeoption(\Froxlor\I18N\Lang::getAll()['ticket']['high'], '1', '2'); $priorities = makeoption($lng['ticket']['high'], '1', '2');
$priorities .= \Froxlor\UI\HTML::makeoption(\Froxlor\I18N\Lang::getAll()['ticket']['normal'], '2', '2'); $priorities .= makeoption($lng['ticket']['normal'], '2', '2');
$priorities .= \Froxlor\UI\HTML::makeoption(\Froxlor\I18N\Lang::getAll()['ticket']['low'], '3', '2'); $priorities .= makeoption($lng['ticket']['low'], '3', '2');
$question .= $priorities . '</select>'; $question .= $priorities . '</select>';
eval("\$return.=\"" . \Froxlor\UI\Template::getTemplate("update/preconfigitem") . "\";"); eval("\$return.=\"" . getTemplate("update/preconfigitem") . "\";");
} }
if (versionInUpdate($current_version, '0.9.6-svn5')) { if (versionInUpdate($current_version, '0.9.6-svn5')) {
@@ -88,10 +88,10 @@ function parseAndOutputPreconfig(&$has_preconfig, &$return, $current_version, $c
$configs_array = getPhpConfigs(); $configs_array = getPhpConfigs();
$configs = ''; $configs = '';
foreach ($configs_array as $idx => $desc) { foreach ($configs_array as $idx => $desc) {
$configs .= \Froxlor\UI\HTML::makeoption($desc, $idx, '1'); $configs .= makeoption($desc, $idx, '1');
} }
$question .= $configs . '</select>'; $question .= $configs . '</select>';
eval("\$return.=\"" . \Froxlor\UI\Template::getTemplate("update/preconfigitem") . "\";"); eval("\$return.=\"" . getTemplate("update/preconfigitem") . "\";");
} }
if (versionInUpdate($current_version, '0.9.6-svn6')) { if (versionInUpdate($current_version, '0.9.6-svn6')) {
@@ -99,10 +99,10 @@ function parseAndOutputPreconfig(&$has_preconfig, &$return, $current_version, $c
$description = 'For the new FTP-quota feature, you can now chose the currently used ftpd-software.'; $description = 'For the new FTP-quota feature, you can now chose the currently used ftpd-software.';
$question = '<strong>Used FTPd-software:</strong>&nbsp;'; $question = '<strong>Used FTPd-software:</strong>&nbsp;';
$question .= '<select name="update_defsys_ftpserver">'; $question .= '<select name="update_defsys_ftpserver">';
$question .= \Froxlor\UI\HTML::makeoption('ProFTPd', 'proftpd', 'proftpd'); $question .= makeoption('ProFTPd', 'proftpd', 'proftpd');
$question .= \Froxlor\UI\HTML::makeoption('PureFTPd', 'pureftpd', 'proftpd'); $question .= makeoption('PureFTPd', 'pureftpd', 'proftpd');
$question .= '</select>'; $question .= '</select>';
eval("\$return.=\"" . \Froxlor\UI\Template::getTemplate("update/preconfigitem") . "\";"); eval("\$return.=\"" . getTemplate("update/preconfigitem") . "\";");
} }
if (versionInUpdate($current_version, '0.9.7-svn1')) { if (versionInUpdate($current_version, '0.9.7-svn1')) {
@@ -112,13 +112,13 @@ function parseAndOutputPreconfig(&$has_preconfig, &$return, $current_version, $c
$question .= \Froxlor\UI\HTML::makeyesno('update_customredirect_enable', '1', '0', '1') . '<br /><br />'; $question .= \Froxlor\UI\HTML::makeyesno('update_customredirect_enable', '1', '0', '1') . '<br /><br />';
$question .= '<strong>Select default redirect code (default: empty):</strong>&nbsp;'; $question .= '<strong>Select default redirect code (default: empty):</strong>&nbsp;';
$question .= '<select name="update_customredirect_default">'; $question .= '<select name="update_customredirect_default">';
$redirects = \Froxlor\UI\HTML::makeoption('--- (' . \Froxlor\I18N\Lang::getAll()['redirect_desc']['rc_default'] . ')', 1, '1'); $redirects = makeoption('--- (' . $lng['redirect_desc']['rc_default'] . ')', 1, '1');
$redirects .= \Froxlor\UI\HTML::makeoption('301 (' . \Froxlor\I18N\Lang::getAll()['redirect_desc']['rc_movedperm'] . ')', 2, '1'); $redirects .= makeoption('301 (' . $lng['redirect_desc']['rc_movedperm'] . ')', 2, '1');
$redirects .= \Froxlor\UI\HTML::makeoption('302 (' . \Froxlor\I18N\Lang::getAll()['redirect_desc']['rc_found'] . ')', 3, '1'); $redirects .= makeoption('302 (' . $lng['redirect_desc']['rc_found'] . ')', 3, '1');
$redirects .= \Froxlor\UI\HTML::makeoption('303 (' . \Froxlor\I18N\Lang::getAll()['redirect_desc']['rc_seeother'] . ')', 4, '1'); $redirects .= makeoption('303 (' . $lng['redirect_desc']['rc_seeother'] . ')', 4, '1');
$redirects .= \Froxlor\UI\HTML::makeoption('307 (' . \Froxlor\I18N\Lang::getAll()['redirect_desc']['rc_tempred'] . ')', 5, '1'); $redirects .= makeoption('307 (' . $lng['redirect_desc']['rc_tempred'] . ')', 5, '1');
$question .= $redirects . '</select>'; $question .= $redirects . '</select>';
eval("\$return.=\"" . \Froxlor\UI\Template::getTemplate("update/preconfigitem") . "\";"); eval("\$return.=\"" . getTemplate("update/preconfigitem") . "\";");
} }
if (versionInUpdate($current_version, '0.9.7-svn2')) { if (versionInUpdate($current_version, '0.9.7-svn2')) {
@@ -138,7 +138,7 @@ function parseAndOutputPreconfig(&$has_preconfig, &$return, $current_version, $c
$question .= '<li>' . $idna_convert->decode($domain) . '</li>'; $question .= '<li>' . $idna_convert->decode($domain) . '</li>';
} }
$question .= '</ul>'; $question .= '</ul>';
eval("\$return.=\"" . \Froxlor\UI\Template::getTemplate("update/preconfigitem") . "\";"); eval("\$return.=\"" . getTemplate("update/preconfigitem") . "\";");
} }
} }
@@ -147,7 +147,7 @@ function parseAndOutputPreconfig(&$has_preconfig, &$return, $current_version, $c
$description = 'When entering MX servers to Froxlor there was no mail-, imap-, pop3- and smtp-"A record" created. You can now chose whether this should be done or not.'; $description = 'When entering MX servers to Froxlor there was no mail-, imap-, pop3- and smtp-"A record" created. You can now chose whether this should be done or not.';
$question = '<strong>Do you want these A-records to be created even with MX servers given?:</strong>&nbsp;'; $question = '<strong>Do you want these A-records to be created even with MX servers given?:</strong>&nbsp;';
$question .= \Froxlor\UI\HTML::makeyesno('update_defdns_mailentry', '1', '0', '0'); $question .= \Froxlor\UI\HTML::makeyesno('update_defdns_mailentry', '1', '0', '0');
eval("\$return.=\"" . \Froxlor\UI\Template::getTemplate("update/preconfigitem") . "\";"); eval("\$return.=\"" . getTemplate("update/preconfigitem") . "\";");
} }
if (versionInUpdate($current_version, '0.9.10-svn1')) { if (versionInUpdate($current_version, '0.9.10-svn1')) {
@@ -192,7 +192,7 @@ function parseAndOutputPreconfig(&$has_preconfig, &$return, $current_version, $c
$question = $question2; $question = $question2;
} }
} }
eval("\$return.=\"" . \Froxlor\UI\Template::getTemplate("update/preconfigitem") . "\";"); eval("\$return.=\"" . getTemplate("update/preconfigitem") . "\";");
} }
} }
@@ -201,7 +201,7 @@ function parseAndOutputPreconfig(&$has_preconfig, &$return, $current_version, $c
$description = 'you can now decide whether Froxlor should be reached via hostname/froxlor or directly via the hostname.'; $description = 'you can now decide whether Froxlor should be reached via hostname/froxlor or directly via the hostname.';
$question = '<strong>Do you want Froxlor to be reached directly via the hostname?:</strong>&nbsp;'; $question = '<strong>Do you want Froxlor to be reached directly via the hostname?:</strong>&nbsp;';
$question .= \Froxlor\UI\HTML::makeyesno('update_directlyviahostname', '1', '0', '0'); $question .= \Froxlor\UI\HTML::makeyesno('update_directlyviahostname', '1', '0', '0');
eval("\$return.=\"" . \Froxlor\UI\Template::getTemplate("update/preconfigitem") . "\";"); eval("\$return.=\"" . getTemplate("update/preconfigitem") . "\";");
} }
if (versionInUpdate($current_version, '0.9.11-svn1')) { if (versionInUpdate($current_version, '0.9.11-svn1')) {
@@ -209,7 +209,7 @@ function parseAndOutputPreconfig(&$has_preconfig, &$return, $current_version, $c
$description = 'It is possible to enhance security with setting a regular expression to force your customers to enter more complex passwords.'; $description = 'It is possible to enhance security with setting a regular expression to force your customers to enter more complex passwords.';
$question = '<strong>Enter a regular expression to force a higher password complexity (leave empty for none):</strong>&nbsp;'; $question = '<strong>Enter a regular expression to force a higher password complexity (leave empty for none):</strong>&nbsp;';
$question .= '<input type="text" class="text" name="update_pwdregex" value="" />'; $question .= '<input type="text" class="text" name="update_pwdregex" value="" />';
eval("\$return.=\"" . \Froxlor\UI\Template::getTemplate("update/preconfigitem") . "\";"); eval("\$return.=\"" . getTemplate("update/preconfigitem") . "\";");
} }
if (versionInUpdate($current_version, '0.9.11-svn3')) { if (versionInUpdate($current_version, '0.9.11-svn3')) {
@@ -217,7 +217,7 @@ function parseAndOutputPreconfig(&$has_preconfig, &$return, $current_version, $c
$description = 'As Froxlor can now handle perl, you have to specify where the perl executable is (only if you\'re running lighttpd, else just leave empty).'; $description = 'As Froxlor can now handle perl, you have to specify where the perl executable is (only if you\'re running lighttpd, else just leave empty).';
$question = '<strong>Path to perl (default \'/usr/bin/perl\'):</strong>&nbsp;'; $question = '<strong>Path to perl (default \'/usr/bin/perl\'):</strong>&nbsp;';
$question .= '<input type="text" class="text" name="update_perlpath" value="/usr/bin/perl" />'; $question .= '<input type="text" class="text" name="update_perlpath" value="/usr/bin/perl" />';
eval("\$return.=\"" . \Froxlor\UI\Template::getTemplate("update/preconfigitem") . "\";"); eval("\$return.=\"" . getTemplate("update/preconfigitem") . "\";");
} }
if (versionInUpdate($current_version, '0.9.12-svn1')) { if (versionInUpdate($current_version, '0.9.12-svn1')) {
@@ -231,7 +231,7 @@ function parseAndOutputPreconfig(&$has_preconfig, &$return, $current_version, $c
$question .= '<input type="text" class="text" name="update_fcgid_httpuser" value="froxlorlocal" /><br /><br />'; $question .= '<input type="text" class="text" name="update_fcgid_httpuser" value="froxlorlocal" /><br /><br />';
$question .= 'Local group:&nbsp;'; $question .= 'Local group:&nbsp;';
$question .= '<input type="text" class="text" name="update_fcgid_httpgroup" value="froxlorlocal" /><br />'; $question .= '<input type="text" class="text" name="update_fcgid_httpgroup" value="froxlorlocal" /><br />';
eval("\$return.=\"" . \Froxlor\UI\Template::getTemplate("update/preconfigitem") . "\";"); eval("\$return.=\"" . getTemplate("update/preconfigitem") . "\";");
} }
} }
@@ -243,7 +243,7 @@ function parseAndOutputPreconfig(&$has_preconfig, &$return, $current_version, $c
$question .= '<strong>If \'yes\', please specify a path within the suexec path where Froxlor will create symlinks to customer perl-enabled paths:</strong><br /><br />'; $question .= '<strong>If \'yes\', please specify a path within the suexec path where Froxlor will create symlinks to customer perl-enabled paths:</strong><br /><br />';
$question .= 'Path for symlinks (must be within suexec path):&nbsp;'; $question .= 'Path for symlinks (must be within suexec path):&nbsp;';
$question .= '<input type="text" class="text" name="update_perl_suexecpath" value="/var/www/cgi-bin/" /><br />'; $question .= '<input type="text" class="text" name="update_perl_suexecpath" value="/var/www/cgi-bin/" /><br />';
eval("\$return.=\"" . \Froxlor\UI\Template::getTemplate("update/preconfigitem") . "\";"); eval("\$return.=\"" . getTemplate("update/preconfigitem") . "\";");
} }
if (versionInUpdate($current_version, '0.9.12-svn4')) { if (versionInUpdate($current_version, '0.9.12-svn4')) {
@@ -252,7 +252,7 @@ function parseAndOutputPreconfig(&$has_preconfig, &$return, $current_version, $c
$description = 'Due to different paths of awstats_buildstaticpages.pl and awstats.pl you can set a different path for awstats.pl now.'; $description = 'Due to different paths of awstats_buildstaticpages.pl and awstats.pl you can set a different path for awstats.pl now.';
$question = '<strong>Path to \'awstats.pl\'?:</strong>&nbsp;'; $question = '<strong>Path to \'awstats.pl\'?:</strong>&nbsp;';
$question .= '<input type="text" class="text" name="update_awstats_awstatspath" value="' . Settings::Get('system.awstats_path') . '" /><br />'; $question .= '<input type="text" class="text" name="update_awstats_awstatspath" value="' . Settings::Get('system.awstats_path') . '" /><br />';
eval("\$return.=\"" . \Froxlor\UI\Template::getTemplate("update/preconfigitem") . "\";"); eval("\$return.=\"" . getTemplate("update/preconfigitem") . "\";");
} }
} }
@@ -261,8 +261,8 @@ function parseAndOutputPreconfig(&$has_preconfig, &$return, $current_version, $c
$has_preconfig = true; $has_preconfig = true;
$description = 'Froxlor can now limit the number of autoresponder-entries for each user. Here you can set the value which will be available for each customer (Of course you can change the value for each customer separately after the update).'; $description = 'Froxlor can now limit the number of autoresponder-entries for each user. Here you can set the value which will be available for each customer (Of course you can change the value for each customer separately after the update).';
$question = '<strong>How many autoresponders should your customers be able to add?:</strong>&nbsp;'; $question = '<strong>How many autoresponders should your customers be able to add?:</strong>&nbsp;';
$question .= '<input type="text" class="text" name="update_autoresponder_default" value="0" />&nbsp;' . \Froxlor\UI\HTML::makecheckbox('update_autoresponder_default', \Froxlor\I18N\Lang::getAll()['customer']['unlimited'], '-1', false, 0, true, true) . '<br />'; $question .= '<input type="text" class="text" name="update_autoresponder_default" value="0" />&nbsp;' . \Froxlor\UI\HTML::makecheckbox('update_autoresponder_default', $lng['customer']['unlimited'], '-1', false, 0, true, true) . '<br />';
eval("\$return.=\"" . \Froxlor\UI\Template::getTemplate("update/preconfigitem") . "\";"); eval("\$return.=\"" . getTemplate("update/preconfigitem") . "\";");
} }
} }
@@ -275,10 +275,10 @@ function parseAndOutputPreconfig(&$has_preconfig, &$return, $current_version, $c
$configs_array = getPhpConfigs(); $configs_array = getPhpConfigs();
$configs = ''; $configs = '';
foreach ($configs_array as $idx => $desc) { foreach ($configs_array as $idx => $desc) {
$configs .= \Froxlor\UI\HTML::makeoption($desc, $idx, '1'); $configs .= makeoption($desc, $idx, '1');
} }
$question .= $configs . '</select>'; $question .= $configs . '</select>';
eval("\$return.=\"" . \Froxlor\UI\Template::getTemplate("update/preconfigitem") . "\";"); eval("\$return.=\"" . getTemplate("update/preconfigitem") . "\";");
} }
} }
@@ -288,7 +288,7 @@ function parseAndOutputPreconfig(&$has_preconfig, &$return, $current_version, $c
$description = 'To have icons in AWStats statistic-pages please enter the path to AWStats icons folder.'; $description = 'To have icons in AWStats statistic-pages please enter the path to AWStats icons folder.';
$question = '<strong>Path to AWSTats icons folder:</strong>&nbsp;'; $question = '<strong>Path to AWSTats icons folder:</strong>&nbsp;';
$question .= '<input type="text" class="text" name="update_awstats_icons" value="' . Settings::Get('system.awstats_icons') . '" />'; $question .= '<input type="text" class="text" name="update_awstats_icons" value="' . Settings::Get('system.awstats_icons') . '" />';
eval("\$return.=\"" . \Froxlor\UI\Template::getTemplate("update/preconfigitem") . "\";"); eval("\$return.=\"" . getTemplate("update/preconfigitem") . "\";");
} }
} }
@@ -298,7 +298,7 @@ function parseAndOutputPreconfig(&$has_preconfig, &$return, $current_version, $c
$description = 'Froxlor now has the possibility to set \'SSLCertificateChainFile\' for the apache webserver.'; $description = 'Froxlor now has the possibility to set \'SSLCertificateChainFile\' for the apache webserver.';
$question = '<strong>Enter filename (leave empty for none):</strong>&nbsp;'; $question = '<strong>Enter filename (leave empty for none):</strong>&nbsp;';
$question .= '<input type="text" class="text" name="update_ssl_cert_chainfile" value="' . Settings::Get('system.ssl_cert_chainfile') . '" />'; $question .= '<input type="text" class="text" name="update_ssl_cert_chainfile" value="' . Settings::Get('system.ssl_cert_chainfile') . '" />';
eval("\$return.=\"" . \Froxlor\UI\Template::getTemplate("update/preconfigitem") . "\";"); eval("\$return.=\"" . getTemplate("update/preconfigitem") . "\";");
} }
} }
@@ -307,14 +307,14 @@ function parseAndOutputPreconfig(&$has_preconfig, &$return, $current_version, $c
$description = 'You can now allow customers to use any of their domains as username for the login.'; $description = 'You can now allow customers to use any of their domains as username for the login.';
$question = '<strong>Do you want to enable domain-login for all customers?:</strong>&nbsp;'; $question = '<strong>Do you want to enable domain-login for all customers?:</strong>&nbsp;';
$question .= \Froxlor\UI\HTML::makeyesno('update_allow_domain_login', '1', '0', '0'); $question .= \Froxlor\UI\HTML::makeyesno('update_allow_domain_login', '1', '0', '0');
eval("\$return.=\"" . \Froxlor\UI\Template::getTemplate("update/preconfigitem") . "\";"); eval("\$return.=\"" . getTemplate("update/preconfigitem") . "\";");
} }
if (versionInUpdate($current_version, '0.9.14-svn10')) { if (versionInUpdate($current_version, '0.9.14-svn10')) {
$has_preconfig = true; $has_preconfig = true;
$description = '<strong>This update removes the unsupported real-time option. Additionally the deprecated tables for navigation and cronscripts are removed, any modules using these tables need to be updated to the new structure!</strong>'; $description = '<strong>This update removes the unsupported real-time option. Additionally the deprecated tables for navigation and cronscripts are removed, any modules using these tables need to be updated to the new structure!</strong>';
$question = ''; $question = '';
eval("\$return.=\"" . \Froxlor\UI\Template::getTemplate("update/preconfigitem") . "\";"); eval("\$return.=\"" . getTemplate("update/preconfigitem") . "\";");
} }
if (versionInUpdate($current_version, '0.9.16-svn1')) { if (versionInUpdate($current_version, '0.9.16-svn1')) {
@@ -332,8 +332,8 @@ function parseAndOutputPreconfig(&$has_preconfig, &$return, $current_version, $c
$question .= '<input type="text" class="text" name="update_phpfpm_reload" value="/etc/init.d/php-fpm restart" /><br /><br />'; $question .= '<input type="text" class="text" name="update_phpfpm_reload" value="/etc/init.d/php-fpm restart" /><br /><br />';
$question .= 'Please specify the php-fpm rocess manager control:&nbsp;'; $question .= 'Please specify the php-fpm rocess manager control:&nbsp;';
$question .= '<select name="update_phpfpm_pm">'; $question .= '<select name="update_phpfpm_pm">';
$redirects = \Froxlor\UI\HTML::makeoption('static', 'static', 'static'); $redirects = makeoption('static', 'static', 'static');
$redirects .= \Froxlor\UI\HTML::makeoption('dynamic', 'dynamic', 'static'); $redirects .= makeoption('dynamic', 'dynamic', 'static');
$question .= $redirects . '</select><br /><br />'; $question .= $redirects . '</select><br /><br />';
$question .= 'Please specify the number of child processes:&nbsp;'; $question .= 'Please specify the number of child processes:&nbsp;';
$question .= '<input type="text" class="text" name="update_phpfpm_max_children" value="1" /><br /><br />'; $question .= '<input type="text" class="text" name="update_phpfpm_max_children" value="1" /><br /><br />';
@@ -346,7 +346,7 @@ function parseAndOutputPreconfig(&$has_preconfig, &$return, $current_version, $c
$question .= '<input type="text" class="text" name="update_phpfpm_min_spare_servers" value="5" /><br /><br />'; $question .= '<input type="text" class="text" name="update_phpfpm_min_spare_servers" value="5" /><br /><br />';
$question .= 'Please specify the desired maximum number of idle server processes:&nbsp;'; $question .= 'Please specify the desired maximum number of idle server processes:&nbsp;';
$question .= '<input type="text" class="text" name="update_phpfpm_max_spare_servers" value="35" /><br />'; $question .= '<input type="text" class="text" name="update_phpfpm_max_spare_servers" value="35" /><br />';
eval("\$return.=\"" . \Froxlor\UI\Template::getTemplate("update/preconfigitem") . "\";"); eval("\$return.=\"" . getTemplate("update/preconfigitem") . "\";");
} }
if (versionInUpdate($current_version, '0.9.16-svn2')) { if (versionInUpdate($current_version, '0.9.16-svn2')) {
@@ -360,7 +360,7 @@ function parseAndOutputPreconfig(&$has_preconfig, &$return, $current_version, $c
$question .= '<input type="text" class="text" name="update_phpfpm_httpuser" value="' . Settings::Get('system.mod_fcgid_httpuser') . '" /><br /><br />'; $question .= '<input type="text" class="text" name="update_phpfpm_httpuser" value="' . Settings::Get('system.mod_fcgid_httpuser') . '" /><br /><br />';
$question .= 'Local group:&nbsp;'; $question .= 'Local group:&nbsp;';
$question .= '<input type="text" class="text" name="update_phpfpm_httpgroup" value="' . Settings::Get('system.mod_fcgid_httpgroup') . '" /><br />'; $question .= '<input type="text" class="text" name="update_phpfpm_httpgroup" value="' . Settings::Get('system.mod_fcgid_httpgroup') . '" /><br />';
eval("\$return.=\"" . \Froxlor\UI\Template::getTemplate("update/preconfigitem") . "\";"); eval("\$return.=\"" . getTemplate("update/preconfigitem") . "\";");
} }
} }
@@ -374,7 +374,7 @@ function parseAndOutputPreconfig(&$has_preconfig, &$return, $current_version, $c
$question .= '<input type="text" class="text" name="update_system_report_webmax" value="90" /><br /><br />'; $question .= '<input type="text" class="text" name="update_system_report_webmax" value="90" /><br /><br />';
$question .= 'Traffic warning level:&nbsp;'; $question .= 'Traffic warning level:&nbsp;';
$question .= '<input type="text" class="text" name="update_system_report_trafficmax" value="90" /><br />'; $question .= '<input type="text" class="text" name="update_system_report_trafficmax" value="90" /><br />';
eval("\$return.=\"" . \Froxlor\UI\Template::getTemplate("update/preconfigitem") . "\";"); eval("\$return.=\"" . getTemplate("update/preconfigitem") . "\";");
} }
if (versionInUpdate($current_version, '0.9.18-svn2')) { if (versionInUpdate($current_version, '0.9.18-svn2')) {
@@ -385,10 +385,10 @@ function parseAndOutputPreconfig(&$has_preconfig, &$return, $current_version, $c
$themes = getThemes(); $themes = getThemes();
foreach ($themes as $cur_theme) // $theme is already in use foreach ($themes as $cur_theme) // $theme is already in use
{ {
$question .= \Froxlor\UI\HTML::makeoption($cur_theme, $cur_theme, 'Froxlor'); $question .= makeoption($cur_theme, $cur_theme, 'Froxlor');
} }
$question .= '</select>'; $question .= '</select>';
eval("\$return.=\"" . \Froxlor\UI\Template::getTemplate("update/preconfigitem") . "\";"); eval("\$return.=\"" . getTemplate("update/preconfigitem") . "\";");
} }
if (versionInUpdate($current_version, '0.9.28-svn4')) { if (versionInUpdate($current_version, '0.9.28-svn4')) {
@@ -403,11 +403,11 @@ function parseAndOutputPreconfig(&$has_preconfig, &$return, $current_version, $c
$question .= '<select name="classic_theme_replacement">'; $question .= '<select name="classic_theme_replacement">';
$themes = getThemes(); $themes = getThemes();
foreach ($themes as $cur_theme) { foreach ($themes as $cur_theme) {
$question .= \Froxlor\UI\HTML::makeoption($cur_theme, $cur_theme, 'Froxlor'); $question .= makeoption($cur_theme, $cur_theme, 'Froxlor');
} }
$question .= '</select>'; $question .= '</select>';
eval("\$return.=\"" . \Froxlor\UI\Template::getTemplate("update/preconfigitem") . "\";"); eval("\$return.=\"" . getTemplate("update/preconfigitem") . "\";");
} }
if (versionInUpdate($current_version, '0.9.28-svn6')) { if (versionInUpdate($current_version, '0.9.28-svn6')) {
@@ -419,13 +419,13 @@ function parseAndOutputPreconfig(&$has_preconfig, &$return, $current_version, $c
LoadModule authz_host_module modules/mod_authz_host.so</pre><br />'; LoadModule authz_host_module modules/mod_authz_host.so</pre><br />';
$question = '<strong>Do you want to enable the Apache-2.4 modification?:</strong>&nbsp;'; $question = '<strong>Do you want to enable the Apache-2.4 modification?:</strong>&nbsp;';
$question .= \Froxlor\UI\HTML::makeyesno('update_system_apache24', '1', '0', '0'); $question .= \Froxlor\UI\HTML::makeyesno('update_system_apache24', '1', '0', '0');
eval("\$return.=\"" . \Froxlor\UI\Template::getTemplate("update/preconfigitem") . "\";"); eval("\$return.=\"" . getTemplate("update/preconfigitem") . "\";");
} elseif (Settings::Get('system.webserver') == 'nginx') { } elseif (Settings::Get('system.webserver') == 'nginx') {
$has_preconfig = true; $has_preconfig = true;
$description = 'The path to nginx\'s fastcgi_params file is now customizable.<br /><br />'; $description = 'The path to nginx\'s fastcgi_params file is now customizable.<br /><br />';
$question = '<strong>Please enter full path to you nginx/fastcgi_params file (including filename):</strong>&nbsp;'; $question = '<strong>Please enter full path to you nginx/fastcgi_params file (including filename):</strong>&nbsp;';
$question .= '<input type="text" class="text" name="nginx_fastcgi_params" value="/etc/nginx/fastcgi_params" />'; $question .= '<input type="text" class="text" name="nginx_fastcgi_params" value="/etc/nginx/fastcgi_params" />';
eval("\$return.=\"" . \Froxlor\UI\Template::getTemplate("update/preconfigitem") . "\";"); eval("\$return.=\"" . getTemplate("update/preconfigitem") . "\";");
} }
} }
@@ -439,7 +439,7 @@ function parseAndOutputPreconfig(&$has_preconfig, &$return, $current_version, $c
$question = '<strong>Do you want to automatically append the domain-name to the documentroot of newly created domains?:</strong>&nbsp;'; $question = '<strong>Do you want to automatically append the domain-name to the documentroot of newly created domains?:</strong>&nbsp;';
$question .= \Froxlor\UI\HTML::makeyesno('update_system_documentroot_use_default_value', '1', '0', '0'); $question .= \Froxlor\UI\HTML::makeyesno('update_system_documentroot_use_default_value', '1', '0', '0');
eval("\$return.=\"" . \Froxlor\UI\Template::getTemplate("update/preconfigitem") . "\";"); eval("\$return.=\"" . getTemplate("update/preconfigitem") . "\";");
} }
if (versionInUpdate($current_version, '0.9.28')) { if (versionInUpdate($current_version, '0.9.28')) {
@@ -457,7 +457,7 @@ function parseAndOutputPreconfig(&$has_preconfig, &$return, $current_version, $c
} }
$question = ''; $question = '';
eval("\$return.=\"" . \Froxlor\UI\Template::getTemplate("update/preconfigitem") . "\";"); eval("\$return.=\"" . getTemplate("update/preconfigitem") . "\";");
} }
if (versionInUpdate($current_version, '0.9.29-dev1')) { if (versionInUpdate($current_version, '0.9.29-dev1')) {
@@ -467,7 +467,7 @@ function parseAndOutputPreconfig(&$has_preconfig, &$return, $current_version, $c
$description = 'Standard-subdomains can now be hidden from the php-configuration overview.<br />'; $description = 'Standard-subdomains can now be hidden from the php-configuration overview.<br />';
$question = '<strong>Do you want to hide the standard-subdomains (this can be changed in the settings any time)?:</strong>&nbsp;'; $question = '<strong>Do you want to hide the standard-subdomains (this can be changed in the settings any time)?:</strong>&nbsp;';
$question .= \Froxlor\UI\HTML::makeyesno('hide_stdsubdomains', '1', '0', '0'); $question .= \Froxlor\UI\HTML::makeyesno('hide_stdsubdomains', '1', '0', '0');
eval("\$return.=\"" . \Froxlor\UI\Template::getTemplate("update/preconfigitem") . "\";"); eval("\$return.=\"" . getTemplate("update/preconfigitem") . "\";");
} }
} }
@@ -477,7 +477,7 @@ function parseAndOutputPreconfig(&$has_preconfig, &$return, $current_version, $c
$question = '<strong>If you want to disallow theme-changing, select "no" from the dropdowns:</strong>&nbsp;'; $question = '<strong>If you want to disallow theme-changing, select "no" from the dropdowns:</strong>&nbsp;';
$question .= "Admins: " . \Froxlor\UI\HTML::makeyesno('allow_themechange_a', '1', '0', '1') . '&nbsp;&nbsp;'; $question .= "Admins: " . \Froxlor\UI\HTML::makeyesno('allow_themechange_a', '1', '0', '1') . '&nbsp;&nbsp;';
$question .= "Customers: " . \Froxlor\UI\HTML::makeyesno('allow_themechange_c', '1', '0', '1'); $question .= "Customers: " . \Froxlor\UI\HTML::makeyesno('allow_themechange_c', '1', '0', '1');
eval("\$return.=\"" . \Froxlor\UI\Template::getTemplate("update/preconfigitem") . "\";"); eval("\$return.=\"" . getTemplate("update/preconfigitem") . "\";");
} }
if (versionInUpdate($current_version, '0.9.29-dev3')) { if (versionInUpdate($current_version, '0.9.29-dev3')) {
@@ -485,7 +485,7 @@ function parseAndOutputPreconfig(&$has_preconfig, &$return, $current_version, $c
$description = 'There is now a possibility to specify AXFR servers for your bind zone-configuration<br />'; $description = 'There is now a possibility to specify AXFR servers for your bind zone-configuration<br />';
$question = '<strong>Enter a comma-separated list of AXFR servers or leave empty (default):</strong>&nbsp;'; $question = '<strong>Enter a comma-separated list of AXFR servers or leave empty (default):</strong>&nbsp;';
$question .= '<input type="text" class="text" name="system_afxrservers" value="" />'; $question .= '<input type="text" class="text" name="system_afxrservers" value="" />';
eval("\$return.=\"" . \Froxlor\UI\Template::getTemplate("update/preconfigitem") . "\";"); eval("\$return.=\"" . getTemplate("update/preconfigitem") . "\";");
} }
if (versionInUpdate($current_version, '0.9.29-dev4')) { if (versionInUpdate($current_version, '0.9.29-dev4')) {
@@ -493,14 +493,14 @@ function parseAndOutputPreconfig(&$has_preconfig, &$return, $current_version, $c
$description = 'As customers can now specify ssl-certificate data for their domains, you need to specify where the generated files are stored<br />'; $description = 'As customers can now specify ssl-certificate data for their domains, you need to specify where the generated files are stored<br />';
$question = '<strong>Specify the directory for customer ssl-certificates:</strong>&nbsp;'; $question = '<strong>Specify the directory for customer ssl-certificates:</strong>&nbsp;';
$question .= '<input type="text" class="text" name="system_customersslpath" value="/etc/ssl/froxlor-custom/" />'; $question .= '<input type="text" class="text" name="system_customersslpath" value="/etc/ssl/froxlor-custom/" />';
eval("\$return.=\"" . \Froxlor\UI\Template::getTemplate("update/preconfigitem") . "\";"); eval("\$return.=\"" . getTemplate("update/preconfigitem") . "\";");
} }
if (versionInUpdate($current_version, '0.9.29.1-dev3')) { if (versionInUpdate($current_version, '0.9.29.1-dev3')) {
$has_preconfig = true; $has_preconfig = true;
$description = 'The build in logrotation-feature has been removed. Please follow the configuration-instructions for your system to enable logrotating again.'; $description = 'The build in logrotation-feature has been removed. Please follow the configuration-instructions for your system to enable logrotating again.';
$question = ''; $question = '';
eval("\$return.=\"" . \Froxlor\UI\Template::getTemplate("update/preconfigitem") . "\";"); eval("\$return.=\"" . getTemplate("update/preconfigitem") . "\";");
} }
// let the apache+fpm users know that they MUST change their config // let the apache+fpm users know that they MUST change their config
@@ -519,7 +519,7 @@ function parseAndOutputPreconfig(&$has_preconfig, &$return, $current_version, $c
&lt;/Location&gt; &lt;/Location&gt;
&lt;/IfModule&gt;</pre>'; &lt;/IfModule&gt;</pre>';
$question = ''; $question = '';
eval("\$return.=\"" . \Froxlor\UI\Template::getTemplate("update/preconfigitem") . "\";"); eval("\$return.=\"" . getTemplate("update/preconfigitem") . "\";");
} }
} }
@@ -528,7 +528,7 @@ function parseAndOutputPreconfig(&$has_preconfig, &$return, $current_version, $c
$has_preconfig = true; $has_preconfig = true;
$description = 'The FPM socket directory is now a setting in froxlor. Its default is <b>/var/lib/apache2/fastcgi/</b>.<br/>If you are using <b>/var/run/apache2</b> in the "<b>fastcgi.conf</b>" (Debian/Ubuntu) or "<b>70_fastcgi.conf</b>" (Gentoo) please correct this path accordingly<br />'; $description = 'The FPM socket directory is now a setting in froxlor. Its default is <b>/var/lib/apache2/fastcgi/</b>.<br/>If you are using <b>/var/run/apache2</b> in the "<b>fastcgi.conf</b>" (Debian/Ubuntu) or "<b>70_fastcgi.conf</b>" (Gentoo) please correct this path accordingly<br />';
$question = ''; $question = '';
eval("\$return.=\"" . \Froxlor\UI\Template::getTemplate("update/preconfigitem") . "\";"); eval("\$return.=\"" . getTemplate("update/preconfigitem") . "\";");
} }
} }
@@ -536,7 +536,7 @@ function parseAndOutputPreconfig(&$has_preconfig, &$return, $current_version, $c
$has_preconfig = true; $has_preconfig = true;
$description = 'The template-variable {PASSWORD} has been replaced with {LINK}. Please update your password reset templates!<br />'; $description = 'The template-variable {PASSWORD} has been replaced with {LINK}. Please update your password reset templates!<br />';
$question = ''; $question = '';
eval("\$return.=\"" . \Froxlor\UI\Template::getTemplate("update/preconfigitem") . "\";"); eval("\$return.=\"" . getTemplate("update/preconfigitem") . "\";");
} }
if (versionInUpdate($current_version, '0.9.31-dev5')) { if (versionInUpdate($current_version, '0.9.31-dev5')) {
@@ -546,7 +546,7 @@ function parseAndOutputPreconfig(&$has_preconfig, &$return, $current_version, $c
$question .= \Froxlor\UI\HTML::makeyesno('update_error_report_admin', '1', '0', '1') . '<br />'; $question .= \Froxlor\UI\HTML::makeyesno('update_error_report_admin', '1', '0', '1') . '<br />';
$question .= '<strong>Do you want to enable error-reporting for customers? (default: no):</strong>&nbsp;'; $question .= '<strong>Do you want to enable error-reporting for customers? (default: no):</strong>&nbsp;';
$question .= \Froxlor\UI\HTML::makeyesno('update_error_report_customer', '1', '0', '0'); $question .= \Froxlor\UI\HTML::makeyesno('update_error_report_customer', '1', '0', '0');
eval("\$return.=\"" . \Froxlor\UI\Template::getTemplate("update/preconfigitem") . "\";"); eval("\$return.=\"" . getTemplate("update/preconfigitem") . "\";");
} }
if (versionInUpdate($current_version, '0.9.31-rc2')) { if (versionInUpdate($current_version, '0.9.31-rc2')) {
@@ -554,7 +554,7 @@ function parseAndOutputPreconfig(&$has_preconfig, &$return, $current_version, $c
$description = 'You can enable/disable the display/usage of the news-feed for admins<br /><br />'; $description = 'You can enable/disable the display/usage of the news-feed for admins<br /><br />';
$question = '<strong>Do you want to enable the news-feed for admins? (default: yes):</strong>&nbsp;'; $question = '<strong>Do you want to enable the news-feed for admins? (default: yes):</strong>&nbsp;';
$question .= \Froxlor\UI\HTML::makeyesno('update_admin_news_feed', '1', '0', '1') . '<br />'; $question .= \Froxlor\UI\HTML::makeyesno('update_admin_news_feed', '1', '0', '1') . '<br />';
eval("\$return.=\"" . \Froxlor\UI\Template::getTemplate("update/preconfigitem") . "\";"); eval("\$return.=\"" . getTemplate("update/preconfigitem") . "\";");
} }
if (versionInUpdate($current_version, '0.9.32-dev2')) { if (versionInUpdate($current_version, '0.9.32-dev2')) {
@@ -565,20 +565,20 @@ function parseAndOutputPreconfig(&$has_preconfig, &$return, $current_version, $c
$question .= '<strong>Mail Transfer Agent</strong><br />'; $question .= '<strong>Mail Transfer Agent</strong><br />';
$question .= 'Type of your MTA:&nbsp;'; $question .= 'Type of your MTA:&nbsp;';
$question .= '<select name="mtaserver">'; $question .= '<select name="mtaserver">';
$question .= \Froxlor\UI\HTML::makeoption('Postfix', 'postfix', 'postfix'); $question .= makeoption('Postfix', 'postfix', 'postfix');
$question .= \Froxlor\UI\HTML::makeoption('Exim4', 'exim4', 'postfix'); $question .= makeoption('Exim4', 'exim4', 'postfix');
$question .= '</select><br />'; $question .= '</select><br />';
$question .= 'Logfile for your MTA:&nbsp;'; $question .= 'Logfile for your MTA:&nbsp;';
$question .= '<input type="text" class="text" name="mtalog" value="/var/log/mail.log" /><br />'; $question .= '<input type="text" class="text" name="mtalog" value="/var/log/mail.log" /><br />';
$question .= '<strong>Mail Delivery Agent</strong><br />'; $question .= '<strong>Mail Delivery Agent</strong><br />';
$question .= 'Type of your MDA:&nbsp;'; $question .= 'Type of your MDA:&nbsp;';
$question .= '<select name="mdaserver">'; $question .= '<select name="mdaserver">';
$question .= \Froxlor\UI\HTML::makeoption('Dovecot', 'dovecot', 'dovecot'); $question .= makeoption('Dovecot', 'dovecot', 'dovecot');
$question .= \Froxlor\UI\HTML::makeoption('Courier', 'courier', 'dovecot'); $question .= makeoption('Courier', 'courier', 'dovecot');
$question .= '</select><br /><br />'; $question .= '</select><br /><br />';
$question .= 'Logfile for your MDA:&nbsp;'; $question .= 'Logfile for your MDA:&nbsp;';
$question .= '<input type="text" class="text" name="mdalog" value="/var/log/mail.log" /><br />'; $question .= '<input type="text" class="text" name="mdalog" value="/var/log/mail.log" /><br />';
eval("\$return.=\"" . \Froxlor\UI\Template::getTemplate("update/preconfigitem") . "\";"); eval("\$return.=\"" . getTemplate("update/preconfigitem") . "\";");
} }
if (versionInUpdate($current_version, '0.9.32-dev5')) { if (versionInUpdate($current_version, '0.9.32-dev5')) {
@@ -586,7 +586,7 @@ function parseAndOutputPreconfig(&$has_preconfig, &$return, $current_version, $c
$description = 'Froxlor now generates a cron-configuration file for the cron-daemon. Please set a filename which will be included automatically by your crond (e.g. files in /etc/cron.d/)<br /><br />'; $description = 'Froxlor now generates a cron-configuration file for the cron-daemon. Please set a filename which will be included automatically by your crond (e.g. files in /etc/cron.d/)<br /><br />';
$question = '<strong>Path to the cron-service configuration-file.</strong> This file will be updated regularly and automatically by froxlor.<br />Note: please <b>be sure</b> to use the same filename as for the main froxlor cronjob (default: /etc/cron.d/froxlor)!<br />'; $question = '<strong>Path to the cron-service configuration-file.</strong> This file will be updated regularly and automatically by froxlor.<br />Note: please <b>be sure</b> to use the same filename as for the main froxlor cronjob (default: /etc/cron.d/froxlor)!<br />';
$question .= '<input type="text" class="text" name="crondfile" value="/etc/cron.d/froxlor" /><br />'; $question .= '<input type="text" class="text" name="crondfile" value="/etc/cron.d/froxlor" /><br />';
eval("\$return.=\"" . \Froxlor\UI\Template::getTemplate("update/preconfigitem") . "\";"); eval("\$return.=\"" . getTemplate("update/preconfigitem") . "\";");
} }
if (versionInUpdate($current_version, '0.9.32-dev6')) { if (versionInUpdate($current_version, '0.9.32-dev6')) {
@@ -594,7 +594,7 @@ function parseAndOutputPreconfig(&$has_preconfig, &$return, $current_version, $c
$description = 'In order for the new cron.d file to work properly, we need to know about the cron-service reload command.<br /><br />'; $description = 'In order for the new cron.d file to work properly, we need to know about the cron-service reload command.<br /><br />';
$question = '<strong>Please specify the reload-command of your cron-daemon</strong> (default: /etc/init.d/cron reload)<br />'; $question = '<strong>Please specify the reload-command of your cron-daemon</strong> (default: /etc/init.d/cron reload)<br />';
$question .= '<input type="text" class="text" name="crondreload" value="/etc/init.d/cron reload" /><br />'; $question .= '<input type="text" class="text" name="crondreload" value="/etc/init.d/cron reload" /><br />';
eval("\$return.=\"" . \Froxlor\UI\Template::getTemplate("update/preconfigitem") . "\";"); eval("\$return.=\"" . getTemplate("update/preconfigitem") . "\";");
} }
if (versionInUpdate($current_version, '0.9.32-rc2')) { if (versionInUpdate($current_version, '0.9.32-rc2')) {
@@ -602,7 +602,7 @@ function parseAndOutputPreconfig(&$has_preconfig, &$return, $current_version, $c
$description = 'To customize the command which executes the cronjob (php - basically) change the path below according to your system.<br /><br />'; $description = 'To customize the command which executes the cronjob (php - basically) change the path below according to your system.<br /><br />';
$question = '<strong>Please specify the command to execute cronscripts</strong> (default: "/usr/bin/nice -n 5 /usr/bin/php5 -q")<br />'; $question = '<strong>Please specify the command to execute cronscripts</strong> (default: "/usr/bin/nice -n 5 /usr/bin/php5 -q")<br />';
$question .= '<input type="text" class="text" name="croncmdline" value="/usr/bin/nice -n 5 /usr/bin/php5 -q" /><br />'; $question .= '<input type="text" class="text" name="croncmdline" value="/usr/bin/nice -n 5 /usr/bin/php5 -q" /><br />';
eval("\$return.=\"" . \Froxlor\UI\Template::getTemplate("update/preconfigitem") . "\";"); eval("\$return.=\"" . getTemplate("update/preconfigitem") . "\";");
} }
if (versionInUpdate($current_version, '0.9.33-dev1')) { if (versionInUpdate($current_version, '0.9.33-dev1')) {
@@ -612,7 +612,7 @@ function parseAndOutputPreconfig(&$has_preconfig, &$return, $current_version, $c
$question .= \Froxlor\UI\HTML::makeyesno('customer_show_news_feed', '1', '0', '0') . '<br />'; $question .= \Froxlor\UI\HTML::makeyesno('customer_show_news_feed', '1', '0', '0') . '<br />';
$question .= '<strong>You have to set the URL for your RSS-feed here, if you have chosen to enable the custom newsfeed on the customer-dashboard:</strong>&nbsp;'; $question .= '<strong>You have to set the URL for your RSS-feed here, if you have chosen to enable the custom newsfeed on the customer-dashboard:</strong>&nbsp;';
$question .= '<input type="text" class="text" name="customer_news_feed_url" value="" /><br />'; $question .= '<input type="text" class="text" name="customer_news_feed_url" value="" /><br />';
eval("\$return.=\"" . \Froxlor\UI\Template::getTemplate("update/preconfigitem") . "\";"); eval("\$return.=\"" . getTemplate("update/preconfigitem") . "\";");
} }
if (versionInUpdate($current_version, '0.9.33-dev2')) { if (versionInUpdate($current_version, '0.9.33-dev2')) {
@@ -622,7 +622,7 @@ function parseAndOutputPreconfig(&$has_preconfig, &$return, $current_version, $c
$description = 'You can enable/disable the generation of the bind-zone / config for the system hostname.<br /><br />'; $description = 'You can enable/disable the generation of the bind-zone / config for the system hostname.<br /><br />';
$question = '<strong>Do you want to generate a bind-zone for the system-hostname? (default: no):</strong>&nbsp;'; $question = '<strong>Do you want to generate a bind-zone for the system-hostname? (default: no):</strong>&nbsp;';
$question .= \Froxlor\UI\HTML::makeyesno('dns_createhostnameentry', '1', '0', '0') . '<br />'; $question .= \Froxlor\UI\HTML::makeyesno('dns_createhostnameentry', '1', '0', '0') . '<br />';
eval("\$return.=\"" . \Froxlor\UI\Template::getTemplate("update/preconfigitem") . "\";"); eval("\$return.=\"" . getTemplate("update/preconfigitem") . "\";");
} }
} }
@@ -631,7 +631,7 @@ function parseAndOutputPreconfig(&$has_preconfig, &$return, $current_version, $c
$description = 'You can chose whether you want to receive an e-mail on cronjob errors. Keep in mind that this can lead to an e-mail being sent every 5 minutes.<br /><br />'; $description = 'You can chose whether you want to receive an e-mail on cronjob errors. Keep in mind that this can lead to an e-mail being sent every 5 minutes.<br /><br />';
$question = '<strong>Do you want to receive cron-errors via mail? (default: no):</strong>&nbsp;'; $question = '<strong>Do you want to receive cron-errors via mail? (default: no):</strong>&nbsp;';
$question .= \Froxlor\UI\HTML::makeyesno('system_send_cron_errors', '1', '0', '0') . '<br />'; $question .= \Froxlor\UI\HTML::makeyesno('system_send_cron_errors', '1', '0', '0') . '<br />';
eval("\$return.=\"" . \Froxlor\UI\Template::getTemplate("update/preconfigitem") . "\";"); eval("\$return.=\"" . getTemplate("update/preconfigitem") . "\";");
} }
if (versionInUpdate($current_version, '0.9.34-dev3')) { if (versionInUpdate($current_version, '0.9.34-dev3')) {
@@ -645,7 +645,7 @@ function parseAndOutputPreconfig(&$has_preconfig, &$return, $current_version, $c
$question .= '<span class="green">installed/loaded</span>'; $question .= '<span class="green">installed/loaded</span>';
} }
$question .= '<br>'; $question .= '<br>';
eval("\$return.=\"" . \Froxlor\UI\Template::getTemplate("update/preconfigitem") . "\";"); eval("\$return.=\"" . getTemplate("update/preconfigitem") . "\";");
} }
if (versionInUpdate($current_db_version, '201603070')) { if (versionInUpdate($current_db_version, '201603070')) {
@@ -653,7 +653,7 @@ function parseAndOutputPreconfig(&$has_preconfig, &$return, $current_version, $c
$description = 'You can chose whether you want to enable or disable our Let\'s Encrypt implementation.<br />Please remember that you need to go through the webserver-configuration when enabled because this feature needs a special configuration.<br /><br />'; $description = 'You can chose whether you want to enable or disable our Let\'s Encrypt implementation.<br />Please remember that you need to go through the webserver-configuration when enabled because this feature needs a special configuration.<br /><br />';
$question = '<strong>Do you want to enable Let\'s Encrypt? (default: yes):</strong>&nbsp;'; $question = '<strong>Do you want to enable Let\'s Encrypt? (default: yes):</strong>&nbsp;';
$question .= \Froxlor\UI\HTML::makeyesno('enable_letsencrypt', '1', '0', '1') . '<br />'; $question .= \Froxlor\UI\HTML::makeyesno('enable_letsencrypt', '1', '0', '1') . '<br />';
eval("\$return.=\"" . \Froxlor\UI\Template::getTemplate("update/preconfigitem") . "\";"); eval("\$return.=\"" . getTemplate("update/preconfigitem") . "\";");
} }
if (versionInUpdate($current_db_version, '201604270')) { if (versionInUpdate($current_db_version, '201604270')) {
@@ -661,7 +661,7 @@ function parseAndOutputPreconfig(&$has_preconfig, &$return, $current_version, $c
$description = 'You can chose whether you want to enable or disable our backup function.<br /><br />'; $description = 'You can chose whether you want to enable or disable our backup function.<br /><br />';
$question = '<strong>Do you want to enable Backup? (default: no):</strong>&nbsp;'; $question = '<strong>Do you want to enable Backup? (default: no):</strong>&nbsp;';
$question .= \Froxlor\UI\HTML::makeyesno('enable_backup', '1', '0', '0') . '<br />'; $question .= \Froxlor\UI\HTML::makeyesno('enable_backup', '1', '0', '0') . '<br />';
eval("\$return.=\"" . \Froxlor\UI\Template::getTemplate("update/preconfigitem") . "\";"); eval("\$return.=\"" . getTemplate("update/preconfigitem") . "\";");
} }
if (versionInUpdate($current_db_version, '201605090')) { if (versionInUpdate($current_db_version, '201605090')) {
@@ -669,7 +669,7 @@ function parseAndOutputPreconfig(&$has_preconfig, &$return, $current_version, $c
$description = 'You can chose whether you want to enable or disable our DNS editor<br /><br />'; $description = 'You can chose whether you want to enable or disable our DNS editor<br /><br />';
$question = '<strong>Do you want to enable the DNS editor? (default: no):</strong>&nbsp;'; $question = '<strong>Do you want to enable the DNS editor? (default: no):</strong>&nbsp;';
$question .= \Froxlor\UI\HTML::makeyesno('enable_dns', '1', '0', '0') . '<br />'; $question .= \Froxlor\UI\HTML::makeyesno('enable_dns', '1', '0', '0') . '<br />';
eval("\$return.=\"" . \Froxlor\UI\Template::getTemplate("update/preconfigitem") . "\";"); eval("\$return.=\"" . getTemplate("update/preconfigitem") . "\";");
} }
if (versionInUpdate($current_db_version, '201605170')) { if (versionInUpdate($current_db_version, '201605170')) {
@@ -677,10 +677,10 @@ function parseAndOutputPreconfig(&$has_preconfig, &$return, $current_version, $c
$description = 'Froxlor now supports the dns-daemon Power-DNS, you can chose between bind and powerdns now.'; $description = 'Froxlor now supports the dns-daemon Power-DNS, you can chose between bind and powerdns now.';
$question = '<strong>Select dns-daemon you want to use:</strong>&nbsp;'; $question = '<strong>Select dns-daemon you want to use:</strong>&nbsp;';
$question .= '<select name="new_dns_daemon">'; $question .= '<select name="new_dns_daemon">';
$dnsdaemons = \Froxlor\UI\HTML::makeoption('Bind9', 'bind', 'bind'); $dnsdaemons = makeoption('Bind9', 'bind', 'bind');
$dnsdaemons .= \Froxlor\UI\HTML::makeoption('PowerDNS', 'pdns', 'bind'); $dnsdaemons .= makeoption('PowerDNS', 'pdns', 'bind');
$question .= $dnsdaemons . '</select>'; $question .= $dnsdaemons . '</select>';
eval("\$return.=\"" . \Froxlor\UI\Template::getTemplate("update/preconfigitem") . "\";"); eval("\$return.=\"" . getTemplate("update/preconfigitem") . "\";");
} }
if (versionInUpdate($current_db_version, '201609120')) { if (versionInUpdate($current_db_version, '201609120')) {
@@ -689,7 +689,7 @@ function parseAndOutputPreconfig(&$has_preconfig, &$return, $current_version, $c
$description = 'You can now customize the path to your acme.conf file (global alias for Let\'s Encrypt). If you already set up Let\'s Encrypt and the acme.conf file, please set this to the complete path to the file!<br /><br />'; $description = 'You can now customize the path to your acme.conf file (global alias for Let\'s Encrypt). If you already set up Let\'s Encrypt and the acme.conf file, please set this to the complete path to the file!<br /><br />';
$question = '<strong>Path to the acme.conf alias-file.</strong><br />'; $question = '<strong>Path to the acme.conf alias-file.</strong><br />';
$question .= '<input type="text" class="text" name="acmeconffile" value="/etc/apache2/conf-enabled/acme.conf" /><br />'; $question .= '<input type="text" class="text" name="acmeconffile" value="/etc/apache2/conf-enabled/acme.conf" /><br />';
eval("\$return.=\"" . \Froxlor\UI\Template::getTemplate("update/preconfigitem") . "\";"); eval("\$return.=\"" . getTemplate("update/preconfigitem") . "\";");
} }
} }
@@ -710,7 +710,7 @@ function parseAndOutputPreconfig(&$has_preconfig, &$return, $current_version, $c
$question .= '<input type="text" class="text" name="smtp_user" value="" /><br />'; $question .= '<input type="text" class="text" name="smtp_user" value="" /><br />';
$question .= '<strong>SMTP password?</strong><br />'; $question .= '<strong>SMTP password?</strong><br />';
$question .= '<input type="password" class="text" name="smtp_passwd" value="" /><br />'; $question .= '<input type="password" class="text" name="smtp_passwd" value="" /><br />';
eval("\$return.=\"" . \Froxlor\UI\Template::getTemplate("update/preconfigitem") . "\";"); eval("\$return.=\"" . getTemplate("update/preconfigitem") . "\";");
} }
if (versionInUpdate($current_db_version, '201705050')) { if (versionInUpdate($current_db_version, '201705050')) {
@@ -718,7 +718,7 @@ function parseAndOutputPreconfig(&$has_preconfig, &$return, $current_version, $c
$description = 'DEBIAN/UBUNTU ONLY: Enable usage of libnss-extrausers as alternative to libnss-mysql (NOTE: if enabled, go through the configuration steps right after the update!!!)<br /><br />'; $description = 'DEBIAN/UBUNTU ONLY: Enable usage of libnss-extrausers as alternative to libnss-mysql (NOTE: if enabled, go through the configuration steps right after the update!!!)<br /><br />';
$question = '<strong>Enable usage of libnss-extrausers?</strong><br />'; $question = '<strong>Enable usage of libnss-extrausers?</strong><br />';
$question .= \Froxlor\UI\HTML::makeyesno('system_nssextrausers', '1', '0', '0') . '<br />'; $question .= \Froxlor\UI\HTML::makeyesno('system_nssextrausers', '1', '0', '0') . '<br />';
eval("\$return.=\"" . \Froxlor\UI\Template::getTemplate("update/preconfigitem") . "\";"); eval("\$return.=\"" . getTemplate("update/preconfigitem") . "\";");
} }
if (versionInUpdate($current_db_version, '201712310')) { if (versionInUpdate($current_db_version, '201712310')) {
@@ -727,7 +727,7 @@ function parseAndOutputPreconfig(&$has_preconfig, &$return, $current_version, $c
$description = 'Chose whether you want to disable the Let\'s Encrypt selfcheck as it causes false positives for some configurations.<br /><br />'; $description = 'Chose whether you want to disable the Let\'s Encrypt selfcheck as it causes false positives for some configurations.<br /><br />';
$question = '<strong>Disable Let\'s Encrypt self-check?</strong><br />'; $question = '<strong>Disable Let\'s Encrypt self-check?</strong><br />';
$question .= \Froxlor\UI\HTML::makeyesno('system_disable_le_selfcheck', '1', '0', '0') . '<br />'; $question .= \Froxlor\UI\HTML::makeyesno('system_disable_le_selfcheck', '1', '0', '0') . '<br />';
eval("\$return.=\"" . \Froxlor\UI\Template::getTemplate("update/preconfigitem") . "\";"); eval("\$return.=\"" . getTemplate("update/preconfigitem") . "\";");
} }
} }
} }

View File

@@ -135,6 +135,8 @@ abstract class ApiCommand extends ApiParameter
*/ */
private function initLang() private function initLang()
{ {
global $lng;
// query the whole table // query the whole table
$result_stmt = \Froxlor\Database\Database::query("SELECT * FROM `" . TABLE_PANEL_LANGUAGE . "`"); $result_stmt = \Froxlor\Database\Database::query("SELECT * FROM `" . TABLE_PANEL_LANGUAGE . "`");
@@ -177,7 +179,7 @@ abstract class ApiCommand extends ApiParameter
include_once \Froxlor\FileDir::makeSecurePath(\Froxlor\Froxlor::getInstallDir() . '/lng/lng_references.php'); include_once \Froxlor\FileDir::makeSecurePath(\Froxlor\Froxlor::getInstallDir() . '/lng/lng_references.php');
// set array for ApiCommand // set array for ApiCommand
$this->lng = \Froxlor\I18N\Lang::getAll(); $this->lng = $lng;
} }
/** /**

View File

@@ -424,12 +424,13 @@ class ConfigDaemon
if (preg_match('/^settings\.(.*)$/', $matches[1], $match)) { if (preg_match('/^settings\.(.*)$/', $matches[1], $match)) {
return \Froxlor\Settings::Get($match[1]); return \Froxlor\Settings::Get($match[1]);
} elseif (preg_match('/^lng\.(.*)(?:\.(.*)(?:\.(.*)))$/U', $matches[1], $match)) { } elseif (preg_match('/^lng\.(.*)(?:\.(.*)(?:\.(.*)))$/U', $matches[1], $match)) {
global $lng;
if (isset($match[1]) && $match[1] != '' && isset($match[2]) && $match[2] != '' && isset($match[3]) && $match[3] != '') { if (isset($match[1]) && $match[1] != '' && isset($match[2]) && $match[2] != '' && isset($match[3]) && $match[3] != '') {
return \Froxlor\I18N\Lang::getAll()[$match[1]][$match[2]][$match[3]]; return $lng[$match[1]][$match[2]][$match[3]];
} elseif (isset($match[1]) && $match[1] != '' && isset($match[2]) && $match[2] != '') { } elseif (isset($match[1]) && $match[1] != '' && isset($match[2]) && $match[2] != '') {
return \Froxlor\I18N\Lang::getAll()[$match[1]][$match[2]]; return $lng[$match[1]][$match[2]];
} elseif (isset($match[1]) && $match[1] != '') { } elseif (isset($match[1]) && $match[1] != '') {
return \Froxlor\I18N\Lang::getAll()[$match[1]]; return $lng[$match[1]];
} }
return ''; return '';
} elseif (preg_match('/^const\.(.*)$/', $matches[1], $match)) { } elseif (preg_match('/^const\.(.*)$/', $matches[1], $match)) {

View File

@@ -137,12 +137,13 @@ class ConfigService
if (preg_match('/^settings\.(.*)$/', $matches[1], $match)) { if (preg_match('/^settings\.(.*)$/', $matches[1], $match)) {
return \Froxlor\Settings::Get($match[1]); return \Froxlor\Settings::Get($match[1]);
} elseif (preg_match('/^lng\.(.*)(?:\.(.*)(?:\.(.*)))$/U', $matches[1], $match)) { } elseif (preg_match('/^lng\.(.*)(?:\.(.*)(?:\.(.*)))$/U', $matches[1], $match)) {
global $lng;
if (isset($match[1]) && $match[1] != '' && isset($match[2]) && $match[2] != '' && isset($match[3]) && $match[3] != '') { if (isset($match[1]) && $match[1] != '' && isset($match[2]) && $match[2] != '' && isset($match[3]) && $match[3] != '') {
return \Froxlor\I18N\Lang::getAll()[$match[1]][$match[2]][$match[3]]; return $lng[$match[1]][$match[2]][$match[3]];
} elseif (isset($match[1]) && $match[1] != '' && isset($match[2]) && $match[2] != '') { } elseif (isset($match[1]) && $match[1] != '' && isset($match[2]) && $match[2] != '') {
return \Froxlor\I18N\Lang::getAll()[$match[1]][$match[2]]; return $lng[$match[1]][$match[2]];
} elseif (isset($match[1]) && $match[1] != '') { } elseif (isset($match[1]) && $match[1] != '') {
return \Froxlor\I18N\Lang::getAll()[$match[1]]; return $lng[$match[1]];
} }
return ''; return '';
} }

View File

@@ -106,11 +106,11 @@ class ReportsCron extends \Froxlor\Cron\FroxlorCron
'varname' => 'trafficmaxpercent_subject' 'varname' => 'trafficmaxpercent_subject'
); );
$result2 = Database::pexecute_first($result2_stmt, $result2_data); $result2 = Database::pexecute_first($result2_stmt, $result2_data);
$mail_subject = html_entity_decode(\Froxlor\PhpHelper::replace_variables((($result2['value'] != '') ? $result2['value'] : \Froxlor\I18N\Lang::getAll()['mails']['trafficmaxpercent']['subject']), $replace_arr)); $mail_subject = html_entity_decode(\Froxlor\PhpHelper::replace_variables((($result2['value'] != '') ? $result2['value'] : $lng['mails']['trafficmaxpercent']['subject']), $replace_arr));
$result2_data['varname'] = 'trafficmaxpercent_mailbody'; $result2_data['varname'] = 'trafficmaxpercent_mailbody';
$result2 = Database::pexecute_first($result2_stmt, $result2_data); $result2 = Database::pexecute_first($result2_stmt, $result2_data);
$mail_body = html_entity_decode(\Froxlor\PhpHelper::replace_variables((($result2['value'] != '') ? $result2['value'] : \Froxlor\I18N\Lang::getAll()['mails']['trafficmaxpercent']['mailbody']), $replace_arr)); $mail_body = html_entity_decode(\Froxlor\PhpHelper::replace_variables((($result2['value'] != '') ? $result2['value'] : $lng['mails']['trafficmaxpercent']['mailbody']), $replace_arr));
$_mailerror = false; $_mailerror = false;
$mailerr_msg = ""; $mailerr_msg = "";
@@ -208,11 +208,11 @@ class ReportsCron extends \Froxlor\Cron\FroxlorCron
'varname' => 'trafficmaxpercent_subject' 'varname' => 'trafficmaxpercent_subject'
); );
$result2 = Database::pexecute_first($result2_stmt, $result2_data); $result2 = Database::pexecute_first($result2_stmt, $result2_data);
$mail_subject = html_entity_decode(\Froxlor\PhpHelper::replace_variables((($result2['value'] != '') ? $result2['value'] : \Froxlor\I18N\Lang::getAll()['mails']['trafficmaxpercent']['subject']), $replace_arr)); $mail_subject = html_entity_decode(\Froxlor\PhpHelper::replace_variables((($result2['value'] != '') ? $result2['value'] : $lng['mails']['trafficmaxpercent']['subject']), $replace_arr));
$resul2_data['varname'] = 'trafficmaxpercent_mailbody'; $resul2_data['varname'] = 'trafficmaxpercent_mailbody';
$result2 = Database::pexecute_first($result2_stmt, $result2_data); $result2 = Database::pexecute_first($result2_stmt, $result2_data);
$mail_body = html_entity_decode(\Froxlor\PhpHelper::replace_variables((($result2['value'] != '') ? $result2['value'] : \Froxlor\I18N\Lang::getAll()['mails']['trafficmaxpercent']['mailbody']), $replace_arr)); $mail_body = html_entity_decode(\Froxlor\PhpHelper::replace_variables((($result2['value'] != '') ? $result2['value'] : $lng['mails']['trafficmaxpercent']['mailbody']), $replace_arr));
$_mailerror = false; $_mailerror = false;
$mailerr_msg = ""; $mailerr_msg = "";
@@ -405,11 +405,11 @@ class ReportsCron extends \Froxlor\Cron\FroxlorCron
'varname' => 'diskmaxpercent_subject' 'varname' => 'diskmaxpercent_subject'
); );
$result2 = Database::pexecute_first($result2_stmt, $result2_data); $result2 = Database::pexecute_first($result2_stmt, $result2_data);
$mail_subject = html_entity_decode(\Froxlor\PhpHelper::replace_variables((($result2['value'] != '') ? $result2['value'] : \Froxlor\I18N\Lang::getAll()['mails']['diskmaxpercent']['subject']), $replace_arr)); $mail_subject = html_entity_decode(\Froxlor\PhpHelper::replace_variables((($result2['value'] != '') ? $result2['value'] : $lng['mails']['diskmaxpercent']['subject']), $replace_arr));
$result2_data['varname'] = 'diskmaxpercent_mailbody'; $result2_data['varname'] = 'diskmaxpercent_mailbody';
$result2 = Database::pexecute_first($result2_stmt, $result2_data); $result2 = Database::pexecute_first($result2_stmt, $result2_data);
$mail_body = html_entity_decode(\Froxlor\PhpHelper::replace_variables((($result2['value'] != '') ? $result2['value'] : \Froxlor\I18N\Lang::getAll()['mails']['diskmaxpercent']['mailbody']), $replace_arr)); $mail_body = html_entity_decode(\Froxlor\PhpHelper::replace_variables((($result2['value'] != '') ? $result2['value'] : $lng['mails']['diskmaxpercent']['mailbody']), $replace_arr));
$_mailerror = false; $_mailerror = false;
$mailerr_msg = ""; $mailerr_msg = "";
@@ -498,11 +498,11 @@ class ReportsCron extends \Froxlor\Cron\FroxlorCron
'varname' => 'diskmaxpercent_subject' 'varname' => 'diskmaxpercent_subject'
); );
$result2 = Database::pexecute_first($result2_stmt, $result2_data); $result2 = Database::pexecute_first($result2_stmt, $result2_data);
$mail_subject = html_entity_decode(\Froxlor\PhpHelper::replace_variables((($result2['value'] != '') ? $result2['value'] : \Froxlor\I18N\Lang::getAll()['mails']['diskmaxpercent']['subject']), $replace_arr)); $mail_subject = html_entity_decode(\Froxlor\PhpHelper::replace_variables((($result2['value'] != '') ? $result2['value'] : $lng['mails']['diskmaxpercent']['subject']), $replace_arr));
$result2_data['varname'] = 'diskmaxpercent_mailbody'; $result2_data['varname'] = 'diskmaxpercent_mailbody';
$result2 = Database::pexecute_first($result2_stmt, $result2_data); $result2 = Database::pexecute_first($result2_stmt, $result2_data);
$mail_body = html_entity_decode(\Froxlor\PhpHelper::replace_variables((($result2['value'] != '') ? $result2['value'] : \Froxlor\I18N\Lang::getAll()['mails']['diskmaxpercent']['mailbody']), $replace_arr)); $mail_body = html_entity_decode(\Froxlor\PhpHelper::replace_variables((($result2['value'] != '') ? $result2['value'] : $lng['mails']['diskmaxpercent']['mailbody']), $replace_arr));
$_mailerror = false; $_mailerror = false;
$mailerr_msg = ""; $mailerr_msg = "";

View File

@@ -35,6 +35,8 @@ class Domain
*/ */
public static function getRedirectCodes($add_desc = true) public static function getRedirectCodes($add_desc = true)
{ {
global $lng;
$sql = "SELECT * FROM `" . TABLE_PANEL_REDIRECTCODES . "` WHERE `enabled` = '1' ORDER BY `id` ASC"; $sql = "SELECT * FROM `" . TABLE_PANEL_REDIRECTCODES . "` WHERE `enabled` = '1' ORDER BY `id` ASC";
$result_stmt = Database::query($sql); $result_stmt = Database::query($sql);
@@ -42,7 +44,7 @@ class Domain
while ($rc = $result_stmt->fetch(\PDO::FETCH_ASSOC)) { while ($rc = $result_stmt->fetch(\PDO::FETCH_ASSOC)) {
$codes[$rc['id']] = $rc['code']; $codes[$rc['id']] = $rc['code'];
if ($add_desc) { if ($add_desc) {
$codes[$rc['id']] .= ' (' . \Froxlor\I18N\Lang::getAll()['redirect_desc'][$rc['desc']] . ')'; $codes[$rc['id']] .= ' (' . $lng['redirect_desc'][$rc['desc']] . ')';
} }
} }
@@ -330,4 +332,4 @@ class Domain
} }
return ''; return '';
} }
} }

View File

@@ -73,8 +73,9 @@ class IpAddr
public static function getSslIpPortCombinations() public static function getSslIpPortCombinations()
{ {
global $lng;
return array( return array(
'' => \Froxlor\I18N\Lang::getAll()['panel']['none_value'] '' => $lng['panel']['none_value']
) + self::getIpPortCombinations(true); ) + self::getIpPortCombinations(true);
} }
} }

View File

@@ -381,6 +381,8 @@ class FileDir
*/ */
public static function makePathfield($path, $uid, $gid, $value = '', $dom = false) public static function makePathfield($path, $uid, $gid, $value = '', $dom = false)
{ {
global $lng;
$value = str_replace($path, '', $value); $value = str_replace($path, '', $value);
$field = array(); $field = array();
@@ -427,20 +429,20 @@ class FileDir
// remove starting slash we added // remove starting slash we added
// for the Dropdown, #225 // for the Dropdown, #225
$value = substr($value, 1); $value = substr($value, 1);
// $field = \Froxlor\I18N\Lang::getAll()['panel']['toomanydirs']; // $field = $lng['panel']['toomanydirs'];
$field = array( $field = array(
'type' => 'text', 'type' => 'text',
'value' => htmlspecialchars($value), 'value' => htmlspecialchars($value),
'note' => \Froxlor\I18N\Lang::getAll()['panel']['toomanydirs'] 'note' => $lng['panel']['toomanydirs']
); );
} }
} else { } else {
// $field = \Froxlor\I18N\Lang::getAll()['panel']['dirsmissing']; // $field = $lng['panel']['dirsmissing'];
// $field = '<input type="hidden" name="path" value="/" />'; // $field = '<input type="hidden" name="path" value="/" />';
$field = array( $field = array(
'type' => 'hidden', 'type' => 'hidden',
'value' => '/', 'value' => '/',
'note' => \Froxlor\I18N\Lang::getAll()['panel']['dirsmissing'] 'note' => $lng['panel']['dirsmissing']
); );
} }
} }

View File

@@ -117,7 +117,7 @@ class PhpHelper
public static function loadConfigArrayDir() public static function loadConfigArrayDir()
{ {
// Workaround until we use gettext // Workaround until we use gettext
global $theme; global $lng, $theme;
// we now use dynamic function parameters // we now use dynamic function parameters
// so we can read from more than one directory // so we can read from more than one directory

View File

@@ -188,18 +188,20 @@ class Cronjob
public static function getCronjobsLastRun() public static function getCronjobsLastRun()
{ {
global $lng;
$query = "SELECT `lastrun`, `desc_lng_key` FROM `" . TABLE_PANEL_CRONRUNS . "` WHERE `isactive` = '1' ORDER BY `cronfile` ASC"; $query = "SELECT `lastrun`, `desc_lng_key` FROM `" . TABLE_PANEL_CRONRUNS . "` WHERE `isactive` = '1' ORDER BY `cronfile` ASC";
$result = Database::query($query); $result = Database::query($query);
$cronjobs_last_run = ''; $cronjobs_last_run = '';
while ($row = $result->fetch(\PDO::FETCH_ASSOC)) { while ($row = $result->fetch(\PDO::FETCH_ASSOC)) {
$lastrun = \Froxlor\I18N\Lang::getAll()['cronjobs']['notyetrun']; $lastrun = $lng['cronjobs']['notyetrun'];
if ($row['lastrun'] > 0) { if ($row['lastrun'] > 0) {
$lastrun = date('d.m.Y H:i:s', $row['lastrun']); $lastrun = date('d.m.Y H:i:s', $row['lastrun']);
} }
$text = \Froxlor\I18N\Lang::getAll()['crondesc'][$row['desc_lng_key']]; $text = $lng['crondesc'][$row['desc_lng_key']];
$value = $lastrun; $value = $lastrun;
eval("\$cronjobs_last_run .= \"" . \Froxlor\UI\Template::getTemplate("index/overview_item") . "\";"); eval("\$cronjobs_last_run .= \"" . \Froxlor\UI\Template::getTemplate("index/overview_item") . "\";");
@@ -224,6 +226,8 @@ class Cronjob
public static function getOutstandingTasks() public static function getOutstandingTasks()
{ {
global $lng;
$query = "SELECT * FROM `" . TABLE_PANEL_TASKS . "` ORDER BY `type` ASC"; $query = "SELECT * FROM `" . TABLE_PANEL_TASKS . "` ORDER BY `type` ASC";
$result = Database::query($query); $result = Database::query($query);
@@ -237,49 +241,49 @@ class Cronjob
// rebuilding webserver-configuration // rebuilding webserver-configuration
if ($row['type'] == '1') { if ($row['type'] == '1') {
$task_desc = \Froxlor\I18N\Lang::getAll()['tasks']['rebuild_webserverconfig']; $task_desc = $lng['tasks']['rebuild_webserverconfig'];
} // adding new user/ } // adding new user/
elseif ($row['type'] == '2') { elseif ($row['type'] == '2') {
$loginname = ''; $loginname = '';
if (is_array($row['data'])) { if (is_array($row['data'])) {
$loginname = $row['data']['loginname']; $loginname = $row['data']['loginname'];
} }
$task_desc = \Froxlor\I18N\Lang::getAll()['tasks']['adding_customer']; $task_desc = $lng['tasks']['adding_customer'];
$task_desc = str_replace('%loginname%', $loginname, $task_desc); $task_desc = str_replace('%loginname%', $loginname, $task_desc);
} // rebuilding bind-configuration } // rebuilding bind-configuration
elseif ($row['type'] == '4') { elseif ($row['type'] == '4') {
$task_desc = \Froxlor\I18N\Lang::getAll()['tasks']['rebuild_bindconfig']; $task_desc = $lng['tasks']['rebuild_bindconfig'];
} // creating ftp-user directory } // creating ftp-user directory
elseif ($row['type'] == '5') { elseif ($row['type'] == '5') {
$task_desc = \Froxlor\I18N\Lang::getAll()['tasks']['creating_ftpdir']; $task_desc = $lng['tasks']['creating_ftpdir'];
} // deleting user-files } // deleting user-files
elseif ($row['type'] == '6') { elseif ($row['type'] == '6') {
$loginname = ''; $loginname = '';
if (is_array($row['data'])) { if (is_array($row['data'])) {
$loginname = $row['data']['loginname']; $loginname = $row['data']['loginname'];
} }
$task_desc = \Froxlor\I18N\Lang::getAll()['tasks']['deleting_customerfiles']; $task_desc = $lng['tasks']['deleting_customerfiles'];
$task_desc = str_replace('%loginname%', $loginname, $task_desc); $task_desc = str_replace('%loginname%', $loginname, $task_desc);
} // deleting email-account } // deleting email-account
elseif ($row['type'] == '7') { elseif ($row['type'] == '7') {
$task_desc = \Froxlor\I18N\Lang::getAll()['tasks']['remove_emailacc_files']; $task_desc = $lng['tasks']['remove_emailacc_files'];
} // deleting ftp-account } // deleting ftp-account
elseif ($row['type'] == '8') { elseif ($row['type'] == '8') {
$task_desc = \Froxlor\I18N\Lang::getAll()['tasks']['remove_ftpacc_files']; $task_desc = $lng['tasks']['remove_ftpacc_files'];
} // Set FS - quota } // Set FS - quota
elseif ($row['type'] == '10') { elseif ($row['type'] == '10') {
$task_desc = \Froxlor\I18N\Lang::getAll()['tasks']['diskspace_set_quota']; $task_desc = $lng['tasks']['diskspace_set_quota'];
} // deleting user-files } // deleting user-files
elseif ($row['type'] == '20') { elseif ($row['type'] == '20') {
$loginname = ''; $loginname = '';
if (is_array($row['data'])) { if (is_array($row['data'])) {
$loginname = $row['data']['loginname']; $loginname = $row['data']['loginname'];
} }
$task_desc = \Froxlor\I18N\Lang::getAll()['tasks']['backup_customerfiles']; $task_desc = $lng['tasks']['backup_customerfiles'];
$task_desc = str_replace('%loginname%', $loginname, $task_desc); $task_desc = str_replace('%loginname%', $loginname, $task_desc);
} // re-generating of cron.d-file } // re-generating of cron.d-file
elseif ($row['type'] == '99') { elseif ($row['type'] == '99') {
$task_desc = \Froxlor\I18N\Lang::getAll()['tasks']['regenerating_crond']; $task_desc = $lng['tasks']['regenerating_crond'];
} // unknown } // unknown
else { else {
$task_desc = "ERROR: Unknown task type '" . $row['type'] . "'"; $task_desc = "ERROR: Unknown task type '" . $row['type'] . "'";
@@ -291,13 +295,13 @@ class Cronjob
} }
if (trim($tasks) == '') { if (trim($tasks) == '') {
$value .= '<li>' . \Froxlor\I18N\Lang::getAll()['tasks']['noneoutstanding'] . '</li>'; $value .= '<li>' . $lng['tasks']['noneoutstanding'] . '</li>';
} else { } else {
$value .= $tasks; $value .= $tasks;
} }
$value .= '</ul>'; $value .= '</ul>';
$text = \Froxlor\I18N\Lang::getAll()['tasks']['outstanding_tasks']; $text = $lng['tasks']['outstanding_tasks'];
eval("\$outstanding_tasks = \"" . \Froxlor\UI\Template::getTemplate("index/overview_item") . "\";"); eval("\$outstanding_tasks = \"" . \Froxlor\UI\Template::getTemplate("index/overview_item") . "\";");
return $outstanding_tasks; return $outstanding_tasks;
@@ -342,4 +346,4 @@ class Cronjob
die($message); die($message);
} }
} }

View File

@@ -116,9 +116,11 @@ class Crypt
*/ */
public static function getAvailablePasswordHashes() public static function getAvailablePasswordHashes()
{ {
global $lng;
// get available pwd-hases // get available pwd-hases
$available_pwdhashes = array( $available_pwdhashes = array(
0 => \Froxlor\I18N\Lang::getAll()['serversettings']['systemdefault'] 0 => $lng['serversettings']['systemdefault']
); );
if (defined('CRYPT_MD5') && CRYPT_MD5 == 1) { if (defined('CRYPT_MD5') && CRYPT_MD5 == 1) {
$available_pwdhashes[1] = 'MD5'; $available_pwdhashes[1] = 'MD5';

View File

@@ -217,7 +217,7 @@ class HTML
*/ */
public static function makeyesno($name, $yesvalue, $novalue = '', $yesselected = '', $disabled = false) public static function makeyesno($name, $yesvalue, $novalue = '', $yesselected = '', $disabled = false)
{ {
global $theme; global $lng, $theme;
if ($disabled) { if ($disabled) {
$d = ' disabled="disabled"'; $d = ' disabled="disabled"';
@@ -230,7 +230,7 @@ class HTML
} }
return '<select class="dropdown_noborder" id="' . $name . '" name="' . $name . '"' . $d . '> return '<select class="dropdown_noborder" id="' . $name . '" name="' . $name . '"' . $d . '>
<option value="' . $yesvalue . '"' . ($yesselected ? ' selected="selected"' : '') . '>' . \Froxlor\I18N\Lang::getAll()['panel']['yes'] . '</option><option value="' . $novalue . '"' . ($yesselected ? '' : ' selected="selected"') . '>' . \Froxlor\I18N\Lang::getAll()['panel']['no'] . '</option></select>'; <option value="' . $yesvalue . '"' . ($yesselected ? ' selected="selected"' : '') . '>' . $lng['panel']['yes'] . '</option><option value="' . $novalue . '"' . ($yesselected ? '' : ' selected="selected"') . '>' . $lng['panel']['no'] . '</option></select>';
} }
/** /**
@@ -264,8 +264,8 @@ class HTML
} }
} }
if (isset(\Froxlor\I18N\Lang::getAll()['question'][$text])) { if (isset($lng['question'][$text])) {
$text = \Froxlor\I18N\Lang::getAll()['question'][$text]; $text = $lng['question'][$text];
} }
$text = strtr($text, array( $text = strtr($text, array(
@@ -287,12 +287,12 @@ class HTML
} }
} }
if (isset(\Froxlor\I18N\Lang::getAll()['question'][$text])) { if (isset($lng['question'][$text])) {
$text = \Froxlor\I18N\Lang::getAll()['question'][$text]; $text = $lng['question'][$text];
} }
if (isset(\Froxlor\I18N\Lang::getAll()['question'][$chk_text])) { if (isset($lng['question'][$chk_text])) {
$chk_text = \Froxlor\I18N\Lang::getAll()['question'][$chk_text]; $chk_text = $lng['question'][$chk_text];
} }
if ($show_checkbox) { if ($show_checkbox) {
@@ -308,4 +308,4 @@ class HTML
eval("echo \"" . Template::getTemplate('misc/question_yesno_checkbox', '1') . "\";"); eval("echo \"" . Template::getTemplate('misc/question_yesno_checkbox', '1') . "\";");
exit(); exit();
} }
} }

View File

@@ -29,7 +29,7 @@ class HtmlForm
public static function genHTMLForm($data = array()) public static function genHTMLForm($data = array())
{ {
global $theme; global $lng, $theme;
$nob = false; $nob = false;
self::$_form = ''; self::$_form = '';
@@ -233,7 +233,7 @@ class HtmlForm
* *
* <code> * <code>
* $data = array( * $data = array(
* 'label' => \Froxlor\I18N\Lang::getAll()['customer']['email_imap'], * 'label' => $lng['customer']['email_imap'],
* 'type' => 'checkbox', * 'type' => 'checkbox',
* 'values' => array( * 'values' => array(
* array( 'label' => 'active', * array( 'label' => 'active',

View File

@@ -405,8 +405,8 @@ class Paging
$breakorws = ($break ? '<br />' : '&nbsp;'); $breakorws = ($break ? '<br />' : '&nbsp;');
foreach (array( foreach (array(
'asc' => \Froxlor\I18N\Lang::getAll()['panel']['ascending'], 'asc' => $lng['panel']['ascending'],
'desc' => \Froxlor\I18N\Lang::getAll()['panel']['descending'] 'desc' => $lng['panel']['descending']
) as $sortordertype => $sortorderdescription) { ) as $sortordertype => $sortorderdescription) {
$orderoptions .= HTML::makeoption($sortorderdescription, $sortordertype, $this->sortorder, true, true); $orderoptions .= HTML::makeoption($sortorderdescription, $sortordertype, $this->sortorder, true, true);
} }

View File

@@ -94,13 +94,13 @@ class Response
$link = ''; $link = '';
if (isset($_SERVER['HTTP_REFERER']) && strpos($_SERVER['HTTP_REFERER'], $_SERVER['HTTP_HOST']) !== false) { if (isset($_SERVER['HTTP_REFERER']) && strpos($_SERVER['HTTP_REFERER'], $_SERVER['HTTP_HOST']) !== false) {
$link = '<a href="' . htmlentities($_SERVER['HTTP_REFERER']) . '">' . \Froxlor\I18N\Lang::getAll()['panel']['back'] . '</a>'; $link = '<a href="' . htmlentities($_SERVER['HTTP_REFERER']) . '">' . $lng['panel']['back'] . '</a>';
} }
$error = ''; $error = '';
foreach ($errors as $single_error) { foreach ($errors as $single_error) {
if (isset(\Froxlor\I18N\Lang::getAll()['error'][$single_error])) { if (isset($lng['error'][$single_error])) {
$single_error = \Froxlor\I18N\Lang::getAll()['error'][$single_error]; $single_error = $lng['error'][$single_error];
$single_error = strtr($single_error, array( $single_error = strtr($single_error, array(
'%s' => $replacer '%s' => $replacer
)); ));
@@ -129,7 +129,7 @@ class Response
$_SESSION['requestData'] = $_POST; $_SESSION['requestData'] = $_POST;
$link = ''; $link = '';
if (isset($_SERVER['HTTP_REFERER']) && strpos($_SERVER['HTTP_REFERER'], $_SERVER['HTTP_HOST']) !== false) { if (isset($_SERVER['HTTP_REFERER']) && strpos($_SERVER['HTTP_REFERER'], $_SERVER['HTTP_HOST']) !== false) {
$link = '<a href="' . htmlentities($_SERVER['HTTP_REFERER']) . '">' . \Froxlor\I18N\Lang::getAll()['panel']['back'] . '</a>'; $link = '<a href="' . htmlentities($_SERVER['HTTP_REFERER']) . '">' . $lng['panel']['back'] . '</a>';
} }
$error = $message; $error = $message;
eval("echo \"" . Template::getTemplate('misc/error', '1') . "\";"); eval("echo \"" . Template::getTemplate('misc/error', '1') . "\";");
@@ -152,8 +152,8 @@ class Response
{ {
global $s, $header, $footer, $theme; global $s, $header, $footer, $theme;
if (isset(\Froxlor\I18N\Lang::getAll()['success'][$success_message])) { if (isset($lng['success'][$success_message])) {
$success_message = strtr(\Froxlor\I18N\Lang::getAll()['success'][$success_message], array( $success_message = strtr($lng['success'][$success_message], array(
'%s' => htmlentities($replacer) '%s' => htmlentities($replacer)
)); ));
} }

View File

@@ -16,65 +16,65 @@
*/ */
return array( return array(
'admin_add' => array( 'admin_add' => array(
'title' => \Froxlor\I18N\Lang::getAll()['admin']['admin_add'], 'title' => $lng['admin']['admin_add'],
'image' => 'icons/user_add.png', 'image' => 'icons/user_add.png',
'sections' => array( 'sections' => array(
'section_a' => array( 'section_a' => array(
'title' => \Froxlor\I18N\Lang::getAll()['admin']['accountdata'], 'title' => $lng['admin']['accountdata'],
'image' => 'icons/user_add.png', 'image' => 'icons/user_add.png',
'fields' => array( 'fields' => array(
'new_loginname' => array( 'new_loginname' => array(
'label' => \Froxlor\I18N\Lang::getAll()['login']['username'], 'label' => $lng['login']['username'],
'type' => 'text', 'type' => 'text',
'mandatory' => true 'mandatory' => true
), ),
'admin_password' => array( 'admin_password' => array(
'label' => \Froxlor\I18N\Lang::getAll()['login']['password'], 'label' => $lng['login']['password'],
'type' => 'password', 'type' => 'password',
'mandatory' => true, 'mandatory' => true,
'autocomplete' => 'off' 'autocomplete' => 'off'
), ),
'admin_password_suggestion' => array( 'admin_password_suggestion' => array(
'label' => \Froxlor\I18N\Lang::getAll()['customer']['generated_pwd'], 'label' => $lng['customer']['generated_pwd'],
'type' => 'text', 'type' => 'text',
'visible' => (\Froxlor\Settings::Get('panel.password_regex') == ''), 'visible' => (\Froxlor\Settings::Get('panel.password_regex') == ''),
'value' => \Froxlor\System\Crypt::generatePassword() 'value' => \Froxlor\System\Crypt::generatePassword()
), ),
'def_language' => array( 'def_language' => array(
'label' => \Froxlor\I18N\Lang::getAll()['login']['language'], 'label' => $lng['login']['language'],
'type' => 'select', 'type' => 'select',
'select_var' => $language_options 'select_var' => $language_options
) )
) )
), ),
'section_b' => array( 'section_b' => array(
'title' => \Froxlor\I18N\Lang::getAll()['admin']['contactdata'], 'title' => $lng['admin']['contactdata'],
'image' => 'icons/user_add.png', 'image' => 'icons/user_add.png',
'fields' => array( 'fields' => array(
'name' => array( 'name' => array(
'label' => \Froxlor\I18N\Lang::getAll()['customer']['name'], 'label' => $lng['customer']['name'],
'type' => 'text', 'type' => 'text',
'mandatory' => true 'mandatory' => true
), ),
'email' => array( 'email' => array(
'label' => \Froxlor\I18N\Lang::getAll()['customer']['email'], 'label' => $lng['customer']['email'],
'type' => 'text', 'type' => 'text',
'mandatory' => true 'mandatory' => true
), ),
'custom_notes' => array( 'custom_notes' => array(
'style' => 'align-top', 'style' => 'align-top',
'label' => \Froxlor\I18N\Lang::getAll()['usersettings']['custom_notes']['title'], 'label' => $lng['usersettings']['custom_notes']['title'],
'desc' => \Froxlor\I18N\Lang::getAll()['usersettings']['custom_notes']['description'], 'desc' => $lng['usersettings']['custom_notes']['description'],
'type' => 'textarea', 'type' => 'textarea',
'cols' => 60, 'cols' => 60,
'rows' => 12 'rows' => 12
), ),
'custom_notes_show' => array( 'custom_notes_show' => array(
'label' => \Froxlor\I18N\Lang::getAll()['usersettings']['custom_notes']['show'], 'label' => $lng['usersettings']['custom_notes']['show'],
'type' => 'checkbox', 'type' => 'checkbox',
'values' => array( 'values' => array(
array( array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'], 'label' => $lng['panel']['yes'],
'value' => '1' 'value' => '1'
) )
), ),
@@ -83,27 +83,27 @@ return array(
) )
), ),
'section_c' => array( 'section_c' => array(
'title' => \Froxlor\I18N\Lang::getAll()['admin']['servicedata'], 'title' => $lng['admin']['servicedata'],
'image' => 'icons/user_add.png', 'image' => 'icons/user_add.png',
'fields' => array( 'fields' => array(
'ipaddress' => array( 'ipaddress' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['ipaddress']['title'], 'label' => $lng['serversettings']['ipaddress']['title'],
'type' => 'select', 'type' => 'select',
'select_var' => $ipaddress 'select_var' => $ipaddress
), ),
'change_serversettings' => array( 'change_serversettings' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['change_serversettings'], 'label' => $lng['admin']['change_serversettings'],
'type' => 'checkbox', 'type' => 'checkbox',
'values' => array( 'values' => array(
array( array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'], 'label' => $lng['panel']['yes'],
'value' => '1' 'value' => '1'
) )
), ),
'value' => array() 'value' => array()
), ),
'customers' => array( 'customers' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['customers'], 'label' => $lng['admin']['customers'],
'type' => 'textul', 'type' => 'textul',
'value' => 0, 'value' => 0,
'maxlength' => 9, 'maxlength' => 9,
@@ -111,18 +111,18 @@ return array(
'ul_field' => $customers_ul 'ul_field' => $customers_ul
), ),
'customers_see_all' => array( 'customers_see_all' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['customers_see_all'], 'label' => $lng['admin']['customers_see_all'],
'type' => 'checkbox', 'type' => 'checkbox',
'values' => array( 'values' => array(
array( array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'], 'label' => $lng['panel']['yes'],
'value' => '1' 'value' => '1'
) )
), ),
'value' => array() 'value' => array()
), ),
'domains' => array( 'domains' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['domains'], 'label' => $lng['admin']['domains'],
'type' => 'textul', 'type' => 'textul',
'value' => 0, 'value' => 0,
'maxlength' => 9, 'maxlength' => 9,
@@ -130,29 +130,29 @@ return array(
'ul_field' => $domains_ul 'ul_field' => $domains_ul
), ),
'domains_see_all' => array( 'domains_see_all' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['domains_see_all'], 'label' => $lng['admin']['domains_see_all'],
'type' => 'checkbox', 'type' => 'checkbox',
'values' => array( 'values' => array(
array( array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'], 'label' => $lng['panel']['yes'],
'value' => '1' 'value' => '1'
) )
), ),
'value' => array() 'value' => array()
), ),
'caneditphpsettings' => array( 'caneditphpsettings' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['caneditphpsettings'], 'label' => $lng['admin']['caneditphpsettings'],
'type' => 'checkbox', 'type' => 'checkbox',
'values' => array( 'values' => array(
array( array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'], 'label' => $lng['panel']['yes'],
'value' => '1' 'value' => '1'
) )
), ),
'value' => array() 'value' => array()
), ),
'diskspace' => array( 'diskspace' => array(
'label' => \Froxlor\I18N\Lang::getAll()['customer']['diskspace'], 'label' => $lng['customer']['diskspace'],
'type' => 'textul', 'type' => 'textul',
'value' => 0, 'value' => 0,
'maxlength' => 6, 'maxlength' => 6,
@@ -160,7 +160,7 @@ return array(
'ul_field' => $diskspace_ul 'ul_field' => $diskspace_ul
), ),
'traffic' => array( 'traffic' => array(
'label' => \Froxlor\I18N\Lang::getAll()['customer']['traffic'], 'label' => $lng['customer']['traffic'],
'type' => 'textul', 'type' => 'textul',
'value' => 0, 'value' => 0,
'maxlength' => 4, 'maxlength' => 4,
@@ -168,7 +168,7 @@ return array(
'ul_field' => $traffic_ul 'ul_field' => $traffic_ul
), ),
'subdomains' => array( 'subdomains' => array(
'label' => \Froxlor\I18N\Lang::getAll()['customer']['subdomains'], 'label' => $lng['customer']['subdomains'],
'type' => 'textul', 'type' => 'textul',
'value' => 0, 'value' => 0,
'maxlength' => 9, 'maxlength' => 9,
@@ -176,7 +176,7 @@ return array(
'ul_field' => $subdomains_ul 'ul_field' => $subdomains_ul
), ),
'emails' => array( 'emails' => array(
'label' => \Froxlor\I18N\Lang::getAll()['customer']['emails'], 'label' => $lng['customer']['emails'],
'type' => 'textul', 'type' => 'textul',
'value' => 0, 'value' => 0,
'maxlength' => 9, 'maxlength' => 9,
@@ -184,7 +184,7 @@ return array(
'ul_field' => $emails_ul 'ul_field' => $emails_ul
), ),
'email_accounts' => array( 'email_accounts' => array(
'label' => \Froxlor\I18N\Lang::getAll()['customer']['accounts'], 'label' => $lng['customer']['accounts'],
'type' => 'textul', 'type' => 'textul',
'value' => 0, 'value' => 0,
'maxlength' => 9, 'maxlength' => 9,
@@ -192,7 +192,7 @@ return array(
'ul_field' => $email_accounts_ul 'ul_field' => $email_accounts_ul
), ),
'email_forwarders' => array( 'email_forwarders' => array(
'label' => \Froxlor\I18N\Lang::getAll()['customer']['forwarders'], 'label' => $lng['customer']['forwarders'],
'type' => 'textul', 'type' => 'textul',
'value' => 0, 'value' => 0,
'maxlength' => 9, 'maxlength' => 9,
@@ -200,7 +200,7 @@ return array(
'ul_field' => $email_forwarders_ul 'ul_field' => $email_forwarders_ul
), ),
'email_quota' => array( 'email_quota' => array(
'label' => \Froxlor\I18N\Lang::getAll()['customer']['email_quota'], 'label' => $lng['customer']['email_quota'],
'type' => 'textul', 'type' => 'textul',
'value' => 0, 'value' => 0,
'maxlength' => 9, 'maxlength' => 9,
@@ -209,14 +209,14 @@ return array(
'ul_field' => $email_quota_ul 'ul_field' => $email_quota_ul
), ),
'ftps' => array( 'ftps' => array(
'label' => \Froxlor\I18N\Lang::getAll()['customer']['ftps'], 'label' => $lng['customer']['ftps'],
'type' => 'textul', 'type' => 'textul',
'value' => 0, 'value' => 0,
'maxlength' => 9, 'maxlength' => 9,
'ul_field' => $ftps_ul 'ul_field' => $ftps_ul
), ),
'mysqls' => array( 'mysqls' => array(
'label' => \Froxlor\I18N\Lang::getAll()['customer']['mysqls'], 'label' => $lng['customer']['mysqls'],
'type' => 'textul', 'type' => 'textul',
'value' => 0, 'value' => 0,
'maxlength' => 9, 'maxlength' => 9,

View File

@@ -16,24 +16,24 @@
*/ */
return array( return array(
'admin_edit' => array( 'admin_edit' => array(
'title' => \Froxlor\I18N\Lang::getAll()['admin']['admin_edit'], 'title' => $lng['admin']['admin_edit'],
'image' => 'icons/user_edit.png', 'image' => 'icons/user_edit.png',
'sections' => array( 'sections' => array(
'section_a' => array( 'section_a' => array(
'title' => \Froxlor\I18N\Lang::getAll()['admin']['accountdata'], 'title' => $lng['admin']['accountdata'],
'image' => 'icons/user_edit.png', 'image' => 'icons/user_edit.png',
'fields' => array( 'fields' => array(
'loginname' => array( 'loginname' => array(
'label' => \Froxlor\I18N\Lang::getAll()['login']['username'], 'label' => $lng['login']['username'],
'type' => 'label', 'type' => 'label',
'value' => $result['loginname'] 'value' => $result['loginname']
), ),
'deactivated' => array( 'deactivated' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['deactivated_user'], 'label' => $lng['admin']['deactivated_user'],
'type' => 'checkbox', 'type' => 'checkbox',
'values' => array( 'values' => array(
array( array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'], 'label' => $lng['panel']['yes'],
'value' => '1' 'value' => '1'
) )
), ),
@@ -43,20 +43,20 @@ return array(
'visible' => ($result['adminid'] == \Froxlor\User::getAll()['userid'] ? false : true) 'visible' => ($result['adminid'] == \Froxlor\User::getAll()['userid'] ? false : true)
), ),
'admin_password' => array( 'admin_password' => array(
'label' => \Froxlor\I18N\Lang::getAll()['login']['password'] . '&nbsp;(' . \Froxlor\I18N\Lang::getAll()['panel']['emptyfornochanges'] . ')', 'label' => $lng['login']['password'] . '&nbsp;(' . $lng['panel']['emptyfornochanges'] . ')',
'type' => 'password', 'type' => 'password',
'autocomplete' => 'off', 'autocomplete' => 'off',
'visible' => ($result['adminid'] == \Froxlor\User::getAll()['userid'] ? false : true) 'visible' => ($result['adminid'] == \Froxlor\User::getAll()['userid'] ? false : true)
), ),
'admin_password_suggestion' => array( 'admin_password_suggestion' => array(
'label' => \Froxlor\I18N\Lang::getAll()['customer']['generated_pwd'], 'label' => $lng['customer']['generated_pwd'],
'type' => 'text', 'type' => 'text',
'visible' => (\Froxlor\Settings::Get('panel.password_regex') == ''), 'visible' => (\Froxlor\Settings::Get('panel.password_regex') == ''),
'value' => \Froxlor\System\Crypt::generatePassword(), 'value' => \Froxlor\System\Crypt::generatePassword(),
'visible' => ($result['adminid'] == \Froxlor\User::getAll()['userid'] ? false : true) 'visible' => ($result['adminid'] == \Froxlor\User::getAll()['userid'] ? false : true)
), ),
'def_language' => array( 'def_language' => array(
'label' => \Froxlor\I18N\Lang::getAll()['login']['language'], 'label' => $lng['login']['language'],
'type' => 'select', 'type' => 'select',
'select_var' => $language_options, 'select_var' => $language_options,
'visible' => ($result['adminid'] == \Froxlor\User::getAll()['userid'] ? false : true) 'visible' => ($result['adminid'] == \Froxlor\User::getAll()['userid'] ? false : true)
@@ -64,36 +64,36 @@ return array(
) )
), ),
'section_b' => array( 'section_b' => array(
'title' => \Froxlor\I18N\Lang::getAll()['admin']['contactdata'], 'title' => $lng['admin']['contactdata'],
'image' => 'icons/user_edit.png', 'image' => 'icons/user_edit.png',
'fields' => array( 'fields' => array(
'name' => array( 'name' => array(
'label' => \Froxlor\I18N\Lang::getAll()['customer']['name'], 'label' => $lng['customer']['name'],
'type' => 'text', 'type' => 'text',
'mandatory' => true, 'mandatory' => true,
'value' => $result['name'] 'value' => $result['name']
), ),
'email' => array( 'email' => array(
'label' => \Froxlor\I18N\Lang::getAll()['customer']['email'], 'label' => $lng['customer']['email'],
'type' => 'text', 'type' => 'text',
'mandatory' => true, 'mandatory' => true,
'value' => $result['email'] 'value' => $result['email']
), ),
'custom_notes' => array( 'custom_notes' => array(
'style' => 'align-top', 'style' => 'align-top',
'label' => \Froxlor\I18N\Lang::getAll()['usersettings']['custom_notes']['title'], 'label' => $lng['usersettings']['custom_notes']['title'],
'desc' => \Froxlor\I18N\Lang::getAll()['usersettings']['custom_notes']['description'], 'desc' => $lng['usersettings']['custom_notes']['description'],
'type' => 'textarea', 'type' => 'textarea',
'cols' => 60, 'cols' => 60,
'rows' => 12, 'rows' => 12,
'value' => $result['custom_notes'] 'value' => $result['custom_notes']
), ),
'custom_notes_show' => array( 'custom_notes_show' => array(
'label' => \Froxlor\I18N\Lang::getAll()['usersettings']['custom_notes']['show'], 'label' => $lng['usersettings']['custom_notes']['show'],
'type' => 'checkbox', 'type' => 'checkbox',
'values' => array( 'values' => array(
array( array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'], 'label' => $lng['panel']['yes'],
'value' => '1' 'value' => '1'
) )
), ),
@@ -104,21 +104,21 @@ return array(
) )
), ),
'section_c' => array( 'section_c' => array(
'title' => \Froxlor\I18N\Lang::getAll()['admin']['servicedata'], 'title' => $lng['admin']['servicedata'],
'image' => 'icons/user_add.png', 'image' => 'icons/user_add.png',
'visible' => ($result['adminid'] != \Froxlor\User::getAll()['userid'] ? true : false), 'visible' => ($result['adminid'] != \Froxlor\User::getAll()['userid'] ? true : false),
'fields' => array( 'fields' => array(
'ipaddress' => array( 'ipaddress' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['ipaddress']['title'], 'label' => $lng['serversettings']['ipaddress']['title'],
'type' => 'select', 'type' => 'select',
'select_var' => $ipaddress 'select_var' => $ipaddress
), ),
'change_serversettings' => array( 'change_serversettings' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['change_serversettings'], 'label' => $lng['admin']['change_serversettings'],
'type' => 'checkbox', 'type' => 'checkbox',
'values' => array( 'values' => array(
array( array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'], 'label' => $lng['panel']['yes'],
'value' => '1' 'value' => '1'
) )
), ),
@@ -127,7 +127,7 @@ return array(
) )
), ),
'customers' => array( 'customers' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['customers'], 'label' => $lng['admin']['customers'],
'type' => 'textul', 'type' => 'textul',
'value' => $result['customers'], 'value' => $result['customers'],
'maxlength' => 9, 'maxlength' => 9,
@@ -135,11 +135,11 @@ return array(
'ul_field' => $customers_ul 'ul_field' => $customers_ul
), ),
'customers_see_all' => array( 'customers_see_all' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['customers_see_all'], 'label' => $lng['admin']['customers_see_all'],
'type' => 'checkbox', 'type' => 'checkbox',
'values' => array( 'values' => array(
array( array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'], 'label' => $lng['panel']['yes'],
'value' => '1' 'value' => '1'
) )
), ),
@@ -148,7 +148,7 @@ return array(
) )
), ),
'domains' => array( 'domains' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['domains'], 'label' => $lng['admin']['domains'],
'type' => 'textul', 'type' => 'textul',
'value' => $result['domains'], 'value' => $result['domains'],
'maxlength' => 9, 'maxlength' => 9,
@@ -156,11 +156,11 @@ return array(
'ul_field' => $domains_ul 'ul_field' => $domains_ul
), ),
'domains_see_all' => array( 'domains_see_all' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['domains_see_all'], 'label' => $lng['admin']['domains_see_all'],
'type' => 'checkbox', 'type' => 'checkbox',
'values' => array( 'values' => array(
array( array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'], 'label' => $lng['panel']['yes'],
'value' => '1' 'value' => '1'
) )
), ),
@@ -169,11 +169,11 @@ return array(
) )
), ),
'caneditphpsettings' => array( 'caneditphpsettings' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['caneditphpsettings'], 'label' => $lng['admin']['caneditphpsettings'],
'type' => 'checkbox', 'type' => 'checkbox',
'values' => array( 'values' => array(
array( array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'], 'label' => $lng['panel']['yes'],
'value' => '1' 'value' => '1'
) )
), ),
@@ -182,7 +182,7 @@ return array(
) )
), ),
'diskspace' => array( 'diskspace' => array(
'label' => \Froxlor\I18N\Lang::getAll()['customer']['diskspace'], 'label' => $lng['customer']['diskspace'],
'type' => 'textul', 'type' => 'textul',
'value' => $result['diskspace'], 'value' => $result['diskspace'],
'maxlength' => 6, 'maxlength' => 6,
@@ -190,7 +190,7 @@ return array(
'ul_field' => $diskspace_ul 'ul_field' => $diskspace_ul
), ),
'traffic' => array( 'traffic' => array(
'label' => \Froxlor\I18N\Lang::getAll()['customer']['traffic'], 'label' => $lng['customer']['traffic'],
'type' => 'textul', 'type' => 'textul',
'value' => $result['traffic'], 'value' => $result['traffic'],
'maxlength' => 4, 'maxlength' => 4,
@@ -198,7 +198,7 @@ return array(
'ul_field' => $traffic_ul 'ul_field' => $traffic_ul
), ),
'subdomains' => array( 'subdomains' => array(
'label' => \Froxlor\I18N\Lang::getAll()['customer']['subdomains'], 'label' => $lng['customer']['subdomains'],
'type' => 'textul', 'type' => 'textul',
'value' => $result['subdomains'], 'value' => $result['subdomains'],
'maxlength' => 9, 'maxlength' => 9,
@@ -206,7 +206,7 @@ return array(
'ul_field' => $subdomains_ul 'ul_field' => $subdomains_ul
), ),
'emails' => array( 'emails' => array(
'label' => \Froxlor\I18N\Lang::getAll()['customer']['emails'], 'label' => $lng['customer']['emails'],
'type' => 'textul', 'type' => 'textul',
'value' => $result['emails'], 'value' => $result['emails'],
'maxlength' => 9, 'maxlength' => 9,
@@ -214,7 +214,7 @@ return array(
'ul_field' => $emails_ul 'ul_field' => $emails_ul
), ),
'email_accounts' => array( 'email_accounts' => array(
'label' => \Froxlor\I18N\Lang::getAll()['customer']['accounts'], 'label' => $lng['customer']['accounts'],
'type' => 'textul', 'type' => 'textul',
'value' => $result['email_accounts'], 'value' => $result['email_accounts'],
'maxlength' => 9, 'maxlength' => 9,
@@ -222,7 +222,7 @@ return array(
'ul_field' => $email_accounts_ul 'ul_field' => $email_accounts_ul
), ),
'email_forwarders' => array( 'email_forwarders' => array(
'label' => \Froxlor\I18N\Lang::getAll()['customer']['forwarders'], 'label' => $lng['customer']['forwarders'],
'type' => 'textul', 'type' => 'textul',
'value' => $result['email_forwarders'], 'value' => $result['email_forwarders'],
'maxlength' => 9, 'maxlength' => 9,
@@ -230,7 +230,7 @@ return array(
'ul_field' => $email_forwarders_ul 'ul_field' => $email_forwarders_ul
), ),
'email_quota' => array( 'email_quota' => array(
'label' => \Froxlor\I18N\Lang::getAll()['customer']['email_quota'], 'label' => $lng['customer']['email_quota'],
'type' => 'textul', 'type' => 'textul',
'value' => $result['email_quota'], 'value' => $result['email_quota'],
'maxlength' => 9, 'maxlength' => 9,
@@ -239,14 +239,14 @@ return array(
'ul_field' => $email_quota_ul 'ul_field' => $email_quota_ul
), ),
'ftps' => array( 'ftps' => array(
'label' => \Froxlor\I18N\Lang::getAll()['customer']['ftps'], 'label' => $lng['customer']['ftps'],
'type' => 'textul', 'type' => 'textul',
'value' => $result['ftps'], 'value' => $result['ftps'],
'maxlength' => 9, 'maxlength' => 9,
'ul_field' => $ftps_ul 'ul_field' => $ftps_ul
), ),
'mysqls' => array( 'mysqls' => array(
'label' => \Froxlor\I18N\Lang::getAll()['customer']['mysqls'], 'label' => $lng['customer']['mysqls'],
'type' => 'textul', 'type' => 'textul',
'value' => $result['mysqls'], 'value' => $result['mysqls'],
'maxlength' => 9, 'maxlength' => 9,

View File

@@ -16,11 +16,11 @@
*/ */
return array( return array(
'cronjobs_edit' => array( 'cronjobs_edit' => array(
'title' => \Froxlor\I18N\Lang::getAll()['admin']['cronjob_edit'], 'title' => $lng['admin']['cronjob_edit'],
'image' => 'icons/clock_edit.png', 'image' => 'icons/clock_edit.png',
'sections' => array( 'sections' => array(
'section_a' => array( 'section_a' => array(
'title' => \Froxlor\I18N\Lang::getAll()['cronjob']['cronjobsettings'], 'title' => $lng['cronjob']['cronjobsettings'],
'image' => 'icons/clock_edit.png', 'image' => 'icons/clock_edit.png',
'fields' => array( 'fields' => array(
'cronfile' => array( 'cronfile' => array(
@@ -29,11 +29,11 @@ return array(
'value' => $result['cronfile'] 'value' => $result['cronfile']
), ),
'isactive' => array( 'isactive' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['activated'], 'label' => $lng['admin']['activated'],
'type' => 'checkbox', 'type' => 'checkbox',
'values' => array( 'values' => array(
array( array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'], 'label' => $lng['panel']['yes'],
'value' => '1' 'value' => '1'
) )
), ),
@@ -42,12 +42,12 @@ return array(
) )
), ),
'interval_value' => array( 'interval_value' => array(
'label' => \Froxlor\I18N\Lang::getAll()['cronjob']['cronjobintervalv'], 'label' => $lng['cronjob']['cronjobintervalv'],
'type' => 'text', 'type' => 'text',
'value' => $interval_value 'value' => $interval_value
), ),
'interval_interval' => array( 'interval_interval' => array(
'label' => \Froxlor\I18N\Lang::getAll()['cronjob']['cronjobinterval'], 'label' => $lng['cronjob']['cronjobinterval'],
'type' => 'select', 'type' => 'select',
'select_var' => $interval_interval 'select_var' => $interval_interval
) )

View File

@@ -16,23 +16,23 @@
*/ */
return array( return array(
'customer_add' => array( 'customer_add' => array(
'title' => \Froxlor\I18N\Lang::getAll()['admin']['customer_add'], 'title' => $lng['admin']['customer_add'],
'image' => 'icons/user_add.png', 'image' => 'icons/user_add.png',
'sections' => array( 'sections' => array(
'section_a' => array( 'section_a' => array(
'title' => \Froxlor\I18N\Lang::getAll()['admin']['accountdata'], 'title' => $lng['admin']['accountdata'],
'image' => 'icons/user_add.png', 'image' => 'icons/user_add.png',
'fields' => array( 'fields' => array(
'new_loginname' => array( 'new_loginname' => array(
'label' => \Froxlor\I18N\Lang::getAll()['login']['username'], 'label' => $lng['login']['username'],
'type' => 'text' 'type' => 'text'
), ),
'createstdsubdomain' => array( 'createstdsubdomain' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['stdsubdomain_add'] . '?', 'label' => $lng['admin']['stdsubdomain_add'] . '?',
'type' => 'checkbox', 'type' => 'checkbox',
'values' => array( 'values' => array(
array( array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'], 'label' => $lng['panel']['yes'],
'value' => '1' 'value' => '1'
) )
), ),
@@ -41,11 +41,11 @@ return array(
) )
), ),
'store_defaultindex' => array( 'store_defaultindex' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['store_defaultindex'] . '?', 'label' => $lng['admin']['store_defaultindex'] . '?',
'type' => 'checkbox', 'type' => 'checkbox',
'values' => array( 'values' => array(
array( array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'], 'label' => $lng['panel']['yes'],
'value' => '1' 'value' => '1'
) )
), ),
@@ -54,22 +54,22 @@ return array(
) )
), ),
'new_customer_password' => array( 'new_customer_password' => array(
'label' => \Froxlor\I18N\Lang::getAll()['login']['password'], 'label' => $lng['login']['password'],
'type' => 'password', 'type' => 'password',
'autocomplete' => 'off' 'autocomplete' => 'off'
), ),
'new_customer_password_suggestion' => array( 'new_customer_password_suggestion' => array(
'label' => \Froxlor\I18N\Lang::getAll()['customer']['generated_pwd'], 'label' => $lng['customer']['generated_pwd'],
'type' => 'text', 'type' => 'text',
'visible' => (\Froxlor\Settings::Get('panel.password_regex') == ''), 'visible' => (\Froxlor\Settings::Get('panel.password_regex') == ''),
'value' => \Froxlor\System\Crypt::generatePassword() 'value' => \Froxlor\System\Crypt::generatePassword()
), ),
'sendpassword' => array( 'sendpassword' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['sendpassword'], 'label' => $lng['admin']['sendpassword'],
'type' => 'checkbox', 'type' => 'checkbox',
'values' => array( 'values' => array(
array( array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'], 'label' => $lng['panel']['yes'],
'value' => '1' 'value' => '1'
) )
), ),
@@ -78,79 +78,79 @@ return array(
) )
), ),
'def_language' => array( 'def_language' => array(
'label' => \Froxlor\I18N\Lang::getAll()['login']['language'], 'label' => $lng['login']['language'],
'type' => 'select', 'type' => 'select',
'select_var' => $language_options 'select_var' => $language_options
) )
) )
), ),
'section_b' => array( 'section_b' => array(
'title' => \Froxlor\I18N\Lang::getAll()['admin']['contactdata'], 'title' => $lng['admin']['contactdata'],
'image' => 'icons/user_add.png', 'image' => 'icons/user_add.png',
'fields' => array( 'fields' => array(
'name' => array( 'name' => array(
'label' => \Froxlor\I18N\Lang::getAll()['customer']['name'], 'label' => $lng['customer']['name'],
'type' => 'text', 'type' => 'text',
'mandatory_ex' => true 'mandatory_ex' => true
), ),
'firstname' => array( 'firstname' => array(
'label' => \Froxlor\I18N\Lang::getAll()['customer']['firstname'], 'label' => $lng['customer']['firstname'],
'type' => 'text', 'type' => 'text',
'mandatory_ex' => true 'mandatory_ex' => true
), ),
'gender' => array( 'gender' => array(
'label' => \Froxlor\I18N\Lang::getAll()['gender']['title'], 'label' => $lng['gender']['title'],
'type' => 'select', 'type' => 'select',
'select_var' => $gender_options 'select_var' => $gender_options
), ),
'company' => array( 'company' => array(
'label' => \Froxlor\I18N\Lang::getAll()['customer']['company'], 'label' => $lng['customer']['company'],
'type' => 'text', 'type' => 'text',
'mandatory_ex' => true 'mandatory_ex' => true
), ),
'street' => array( 'street' => array(
'label' => \Froxlor\I18N\Lang::getAll()['customer']['street'], 'label' => $lng['customer']['street'],
'type' => 'text' 'type' => 'text'
), ),
'zipcode' => array( 'zipcode' => array(
'label' => \Froxlor\I18N\Lang::getAll()['customer']['zipcode'], 'label' => $lng['customer']['zipcode'],
'type' => 'text' 'type' => 'text'
), ),
'city' => array( 'city' => array(
'label' => \Froxlor\I18N\Lang::getAll()['customer']['city'], 'label' => $lng['customer']['city'],
'type' => 'text' 'type' => 'text'
), ),
'phone' => array( 'phone' => array(
'label' => \Froxlor\I18N\Lang::getAll()['customer']['phone'], 'label' => $lng['customer']['phone'],
'type' => 'text' 'type' => 'text'
), ),
'fax' => array( 'fax' => array(
'label' => \Froxlor\I18N\Lang::getAll()['customer']['fax'], 'label' => $lng['customer']['fax'],
'type' => 'text' 'type' => 'text'
), ),
'email' => array( 'email' => array(
'label' => \Froxlor\I18N\Lang::getAll()['customer']['email'], 'label' => $lng['customer']['email'],
'type' => 'text', 'type' => 'text',
'mandatory' => true 'mandatory' => true
), ),
'customernumber' => array( 'customernumber' => array(
'label' => \Froxlor\I18N\Lang::getAll()['customer']['customernumber'], 'label' => $lng['customer']['customernumber'],
'type' => 'text' 'type' => 'text'
), ),
'custom_notes' => array( 'custom_notes' => array(
'style' => 'align-top', 'style' => 'align-top',
'label' => \Froxlor\I18N\Lang::getAll()['usersettings']['custom_notes']['title'], 'label' => $lng['usersettings']['custom_notes']['title'],
'desc' => \Froxlor\I18N\Lang::getAll()['usersettings']['custom_notes']['description'], 'desc' => $lng['usersettings']['custom_notes']['description'],
'type' => 'textarea', 'type' => 'textarea',
'cols' => 60, 'cols' => 60,
'rows' => 12 'rows' => 12
), ),
'custom_notes_show' => array( 'custom_notes_show' => array(
'label' => \Froxlor\I18N\Lang::getAll()['usersettings']['custom_notes']['show'], 'label' => $lng['usersettings']['custom_notes']['show'],
'type' => 'checkbox', 'type' => 'checkbox',
'values' => array( 'values' => array(
array( array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'], 'label' => $lng['panel']['yes'],
'value' => '1' 'value' => '1'
) )
), ),
@@ -160,22 +160,22 @@ return array(
), ),
'section_cpre' => array( 'section_cpre' => array(
'visible' => ! empty($hosting_plans), 'visible' => ! empty($hosting_plans),
'title' => \Froxlor\I18N\Lang::getAll()['admin']['plans']['use_plan'], 'title' => $lng['admin']['plans']['use_plan'],
'image' => 'icons/user_add.png', 'image' => 'icons/user_add.png',
'fields' => array( 'fields' => array(
'use_plan' => array( 'use_plan' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['plans']['use_plan'], 'label' => $lng['admin']['plans']['use_plan'],
'type' => 'select', 'type' => 'select',
'select_var' => $hosting_plans 'select_var' => $hosting_plans
) )
) )
), ),
'section_c' => array( 'section_c' => array(
'title' => \Froxlor\I18N\Lang::getAll()['admin']['servicedata'], 'title' => $lng['admin']['servicedata'],
'image' => 'icons/user_add.png', 'image' => 'icons/user_add.png',
'fields' => array( 'fields' => array(
'diskspace' => array( 'diskspace' => array(
'label' => \Froxlor\I18N\Lang::getAll()['customer']['diskspace'], 'label' => $lng['customer']['diskspace'],
'type' => 'textul', 'type' => 'textul',
'value' => 0, 'value' => 0,
'maxlength' => 16, 'maxlength' => 16,
@@ -183,7 +183,7 @@ return array(
'ul_field' => $diskspace_ul 'ul_field' => $diskspace_ul
), ),
'traffic' => array( 'traffic' => array(
'label' => \Froxlor\I18N\Lang::getAll()['customer']['traffic'], 'label' => $lng['customer']['traffic'],
'type' => 'textul', 'type' => 'textul',
'value' => 0, 'value' => 0,
'maxlength' => 14, 'maxlength' => 14,
@@ -191,7 +191,7 @@ return array(
'ul_field' => $traffic_ul 'ul_field' => $traffic_ul
), ),
'subdomains' => array( 'subdomains' => array(
'label' => \Froxlor\I18N\Lang::getAll()['customer']['subdomains'], 'label' => $lng['customer']['subdomains'],
'type' => 'textul', 'type' => 'textul',
'value' => 0, 'value' => 0,
'maxlength' => 9, 'maxlength' => 9,
@@ -199,7 +199,7 @@ return array(
'ul_field' => $subdomains_ul 'ul_field' => $subdomains_ul
), ),
'emails' => array( 'emails' => array(
'label' => \Froxlor\I18N\Lang::getAll()['customer']['emails'], 'label' => $lng['customer']['emails'],
'type' => 'textul', 'type' => 'textul',
'value' => 0, 'value' => 0,
'maxlength' => 9, 'maxlength' => 9,
@@ -207,7 +207,7 @@ return array(
'ul_field' => $emails_ul 'ul_field' => $emails_ul
), ),
'email_accounts' => array( 'email_accounts' => array(
'label' => \Froxlor\I18N\Lang::getAll()['customer']['accounts'], 'label' => $lng['customer']['accounts'],
'type' => 'textul', 'type' => 'textul',
'value' => 0, 'value' => 0,
'maxlength' => 9, 'maxlength' => 9,
@@ -215,7 +215,7 @@ return array(
'ul_field' => $email_accounts_ul 'ul_field' => $email_accounts_ul
), ),
'email_forwarders' => array( 'email_forwarders' => array(
'label' => \Froxlor\I18N\Lang::getAll()['customer']['forwarders'], 'label' => $lng['customer']['forwarders'],
'type' => 'textul', 'type' => 'textul',
'value' => 0, 'value' => 0,
'maxlength' => 9, 'maxlength' => 9,
@@ -223,7 +223,7 @@ return array(
'ul_field' => $email_forwarders_ul 'ul_field' => $email_forwarders_ul
), ),
'email_quota' => array( 'email_quota' => array(
'label' => \Froxlor\I18N\Lang::getAll()['customer']['email_quota'], 'label' => $lng['customer']['email_quota'],
'type' => 'textul', 'type' => 'textul',
'value' => 0, 'value' => 0,
'maxlength' => 9, 'maxlength' => 9,
@@ -232,11 +232,11 @@ return array(
'ul_field' => $email_quota_ul 'ul_field' => $email_quota_ul
), ),
'email_imap' => array( 'email_imap' => array(
'label' => \Froxlor\I18N\Lang::getAll()['customer']['email_imap'], 'label' => $lng['customer']['email_imap'],
'type' => 'checkbox', 'type' => 'checkbox',
'values' => array( 'values' => array(
array( array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'], 'label' => $lng['panel']['yes'],
'value' => '1' 'value' => '1'
) )
), ),
@@ -246,11 +246,11 @@ return array(
'mandatory' => true 'mandatory' => true
), ),
'email_pop3' => array( 'email_pop3' => array(
'label' => \Froxlor\I18N\Lang::getAll()['customer']['email_pop3'], 'label' => $lng['customer']['email_pop3'],
'type' => 'checkbox', 'type' => 'checkbox',
'values' => array( 'values' => array(
array( array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'], 'label' => $lng['panel']['yes'],
'value' => '1' 'value' => '1'
) )
), ),
@@ -260,14 +260,14 @@ return array(
'mandatory' => true 'mandatory' => true
), ),
'ftps' => array( 'ftps' => array(
'label' => \Froxlor\I18N\Lang::getAll()['customer']['ftps'], 'label' => $lng['customer']['ftps'],
'type' => 'textul', 'type' => 'textul',
'value' => 0, 'value' => 0,
'maxlength' => 9, 'maxlength' => 9,
'ul_field' => $ftps_ul 'ul_field' => $ftps_ul
), ),
'mysqls' => array( 'mysqls' => array(
'label' => \Froxlor\I18N\Lang::getAll()['customer']['mysqls'], 'label' => $lng['customer']['mysqls'],
'type' => 'textul', 'type' => 'textul',
'value' => 0, 'value' => 0,
'maxlength' => 9, 'maxlength' => 9,
@@ -275,11 +275,11 @@ return array(
'ul_field' => $mysqls_ul 'ul_field' => $mysqls_ul
), ),
'phpenabled' => array( 'phpenabled' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['phpenabled'] . '?', 'label' => $lng['admin']['phpenabled'] . '?',
'type' => 'checkbox', 'type' => 'checkbox',
'values' => array( 'values' => array(
array( array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'], 'label' => $lng['panel']['yes'],
'value' => '1' 'value' => '1'
) )
), ),
@@ -289,7 +289,7 @@ return array(
), ),
'allowed_phpconfigs' => array( 'allowed_phpconfigs' => array(
'visible' => (((int) \Froxlor\Settings::Get('system.mod_fcgid') == 1 || (int) \Froxlor\Settings::Get('phpfpm.enabled') == 1) ? true : false), 'visible' => (((int) \Froxlor\Settings::Get('system.mod_fcgid') == 1 || (int) \Froxlor\Settings::Get('phpfpm.enabled') == 1) ? true : false),
'label' => \Froxlor\I18N\Lang::getAll()['admin']['phpsettings']['title'], 'label' => $lng['admin']['phpsettings']['title'],
'type' => 'checkbox', 'type' => 'checkbox',
'values' => $phpconfigs, 'values' => $phpconfigs,
'value' => ((int) \Froxlor\Settings::Get('system.mod_fcgid') == 1 ? array( 'value' => ((int) \Froxlor\Settings::Get('system.mod_fcgid') == 1 ? array(
@@ -300,32 +300,32 @@ return array(
'is_array' => 1 'is_array' => 1
), ),
'perlenabled' => array( 'perlenabled' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['perlenabled'] . '?', 'label' => $lng['admin']['perlenabled'] . '?',
'type' => 'checkbox', 'type' => 'checkbox',
'values' => array( 'values' => array(
array( array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'], 'label' => $lng['panel']['yes'],
'value' => '1' 'value' => '1'
) )
) )
), ),
'dnsenabled' => array( 'dnsenabled' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['dnsenabled'] . '?', 'label' => $lng['admin']['dnsenabled'] . '?',
'type' => 'checkbox', 'type' => 'checkbox',
'values' => array( 'values' => array(
array( array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'], 'label' => $lng['panel']['yes'],
'value' => '1' 'value' => '1'
) )
), ),
'visible' => (\Froxlor\Settings::Get('system.dnsenabled') == '1' ? true : false) 'visible' => (\Froxlor\Settings::Get('system.dnsenabled') == '1' ? true : false)
), ),
'logviewenabled' => array( 'logviewenabled' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['logviewenabled'] . '?', 'label' => $lng['admin']['logviewenabled'] . '?',
'type' => 'checkbox', 'type' => 'checkbox',
'values' => array( 'values' => array(
array( array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'], 'label' => $lng['panel']['yes'],
'value' => '1' 'value' => '1'
) )
) )

View File

@@ -16,29 +16,29 @@
*/ */
return array( return array(
'customer_edit' => array( 'customer_edit' => array(
'title' => \Froxlor\I18N\Lang::getAll()['admin']['customer_edit'], 'title' => $lng['admin']['customer_edit'],
'image' => 'icons/user_edit.png', 'image' => 'icons/user_edit.png',
'sections' => array( 'sections' => array(
'section_a' => array( 'section_a' => array(
'title' => \Froxlor\I18N\Lang::getAll()['admin']['accountdata'], 'title' => $lng['admin']['accountdata'],
'image' => 'icons/user_edit.png', 'image' => 'icons/user_edit.png',
'fields' => array( 'fields' => array(
'loginname' => array( 'loginname' => array(
'label' => \Froxlor\I18N\Lang::getAll()['login']['username'], 'label' => $lng['login']['username'],
'type' => 'label', 'type' => 'label',
'value' => $result['loginname'] 'value' => $result['loginname']
), ),
'documentroot' => array( 'documentroot' => array(
'label' => \Froxlor\I18N\Lang::getAll()['customer']['documentroot'], 'label' => $lng['customer']['documentroot'],
'type' => 'label', 'type' => 'label',
'value' => $result['documentroot'] 'value' => $result['documentroot']
), ),
'createstdsubdomain' => array( 'createstdsubdomain' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['stdsubdomain_add'] . '?', 'label' => $lng['admin']['stdsubdomain_add'] . '?',
'type' => 'checkbox', 'type' => 'checkbox',
'values' => array( 'values' => array(
array( array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'], 'label' => $lng['panel']['yes'],
'value' => '1' 'value' => '1'
) )
), ),
@@ -47,11 +47,11 @@ return array(
) )
), ),
'deactivated' => array( 'deactivated' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['deactivated_user'], 'label' => $lng['admin']['deactivated_user'],
'type' => 'checkbox', 'type' => 'checkbox',
'values' => array( 'values' => array(
array( array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'], 'label' => $lng['panel']['yes'],
'value' => '1' 'value' => '1'
) )
), ),
@@ -60,101 +60,101 @@ return array(
) )
), ),
'new_customer_password' => array( 'new_customer_password' => array(
'label' => \Froxlor\I18N\Lang::getAll()['login']['password'] . '&nbsp;(' . \Froxlor\I18N\Lang::getAll()['panel']['emptyfornochanges'] . ')', 'label' => $lng['login']['password'] . '&nbsp;(' . $lng['panel']['emptyfornochanges'] . ')',
'type' => 'password', 'type' => 'password',
'autocomplete' => 'off' 'autocomplete' => 'off'
), ),
'new_customer_password_suggestion' => array( 'new_customer_password_suggestion' => array(
'label' => \Froxlor\I18N\Lang::getAll()['customer']['generated_pwd'], 'label' => $lng['customer']['generated_pwd'],
'type' => 'text', 'type' => 'text',
'visible' => (\Froxlor\Settings::Get('panel.password_regex') == ''), 'visible' => (\Froxlor\Settings::Get('panel.password_regex') == ''),
'value' => \Froxlor\System\Crypt::generatePassword() 'value' => \Froxlor\System\Crypt::generatePassword()
), ),
'def_language' => array( 'def_language' => array(
'label' => \Froxlor\I18N\Lang::getAll()['login']['language'], 'label' => $lng['login']['language'],
'type' => 'select', 'type' => 'select',
'select_var' => $language_options 'select_var' => $language_options
) )
) )
), ),
'section_b' => array( 'section_b' => array(
'title' => \Froxlor\I18N\Lang::getAll()['admin']['contactdata'], 'title' => $lng['admin']['contactdata'],
'image' => 'icons/user_edit.png', 'image' => 'icons/user_edit.png',
'fields' => array( 'fields' => array(
'name' => array( 'name' => array(
'label' => \Froxlor\I18N\Lang::getAll()['customer']['name'], 'label' => $lng['customer']['name'],
'type' => 'text', 'type' => 'text',
'mandatory_ex' => true, 'mandatory_ex' => true,
'value' => $result['name'] 'value' => $result['name']
), ),
'firstname' => array( 'firstname' => array(
'label' => \Froxlor\I18N\Lang::getAll()['customer']['firstname'], 'label' => $lng['customer']['firstname'],
'type' => 'text', 'type' => 'text',
'mandatory_ex' => true, 'mandatory_ex' => true,
'value' => $result['firstname'] 'value' => $result['firstname']
), ),
'gender' => array( 'gender' => array(
'label' => \Froxlor\I18N\Lang::getAll()['gender']['title'], 'label' => $lng['gender']['title'],
'type' => 'select', 'type' => 'select',
'select_var' => $gender_options 'select_var' => $gender_options
), ),
'company' => array( 'company' => array(
'label' => \Froxlor\I18N\Lang::getAll()['customer']['company'], 'label' => $lng['customer']['company'],
'type' => 'text', 'type' => 'text',
'mandatory_ex' => true, 'mandatory_ex' => true,
'value' => $result['company'] 'value' => $result['company']
), ),
'street' => array( 'street' => array(
'label' => \Froxlor\I18N\Lang::getAll()['customer']['street'], 'label' => $lng['customer']['street'],
'type' => 'text', 'type' => 'text',
'value' => $result['street'] 'value' => $result['street']
), ),
'zipcode' => array( 'zipcode' => array(
'label' => \Froxlor\I18N\Lang::getAll()['customer']['zipcode'], 'label' => $lng['customer']['zipcode'],
'type' => 'text', 'type' => 'text',
'value' => $result['zipcode'] 'value' => $result['zipcode']
), ),
'city' => array( 'city' => array(
'label' => \Froxlor\I18N\Lang::getAll()['customer']['city'], 'label' => $lng['customer']['city'],
'type' => 'text', 'type' => 'text',
'value' => $result['city'] 'value' => $result['city']
), ),
'phone' => array( 'phone' => array(
'label' => \Froxlor\I18N\Lang::getAll()['customer']['phone'], 'label' => $lng['customer']['phone'],
'type' => 'text', 'type' => 'text',
'value' => $result['phone'] 'value' => $result['phone']
), ),
'fax' => array( 'fax' => array(
'label' => \Froxlor\I18N\Lang::getAll()['customer']['fax'], 'label' => $lng['customer']['fax'],
'type' => 'text', 'type' => 'text',
'value' => $result['fax'] 'value' => $result['fax']
), ),
'email' => array( 'email' => array(
'label' => \Froxlor\I18N\Lang::getAll()['customer']['email'], 'label' => $lng['customer']['email'],
'type' => 'text', 'type' => 'text',
'mandatory' => true, 'mandatory' => true,
'value' => $result['email'] 'value' => $result['email']
), ),
'customernumber' => array( 'customernumber' => array(
'label' => \Froxlor\I18N\Lang::getAll()['customer']['customernumber'], 'label' => $lng['customer']['customernumber'],
'type' => 'text', 'type' => 'text',
'value' => $result['customernumber'] 'value' => $result['customernumber']
), ),
'custom_notes' => array( 'custom_notes' => array(
'style' => 'align-top', 'style' => 'align-top',
'label' => \Froxlor\I18N\Lang::getAll()['usersettings']['custom_notes']['title'], 'label' => $lng['usersettings']['custom_notes']['title'],
'desc' => \Froxlor\I18N\Lang::getAll()['usersettings']['custom_notes']['description'], 'desc' => $lng['usersettings']['custom_notes']['description'],
'type' => 'textarea', 'type' => 'textarea',
'cols' => 60, 'cols' => 60,
'rows' => 12, 'rows' => 12,
'value' => $result['custom_notes'] 'value' => $result['custom_notes']
), ),
'custom_notes_show' => array( 'custom_notes_show' => array(
'label' => \Froxlor\I18N\Lang::getAll()['usersettings']['custom_notes']['show'], 'label' => $lng['usersettings']['custom_notes']['show'],
'type' => 'checkbox', 'type' => 'checkbox',
'values' => array( 'values' => array(
array( array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'], 'label' => $lng['panel']['yes'],
'value' => '1' 'value' => '1'
) )
), ),
@@ -166,22 +166,22 @@ return array(
), ),
'section_cpre' => array( 'section_cpre' => array(
'visible' => ! empty($hosting_plans), 'visible' => ! empty($hosting_plans),
'title' => \Froxlor\I18N\Lang::getAll()['admin']['plans']['use_plan'], 'title' => $lng['admin']['plans']['use_plan'],
'image' => 'icons/user_add.png', 'image' => 'icons/user_add.png',
'fields' => array( 'fields' => array(
'use_plan' => array( 'use_plan' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['plans']['use_plan'], 'label' => $lng['admin']['plans']['use_plan'],
'type' => 'select', 'type' => 'select',
'select_var' => $hosting_plans 'select_var' => $hosting_plans
) )
) )
), ),
'section_c' => array( 'section_c' => array(
'title' => \Froxlor\I18N\Lang::getAll()['admin']['servicedata'], 'title' => $lng['admin']['servicedata'],
'image' => 'icons/user_edit.png', 'image' => 'icons/user_edit.png',
'fields' => array( 'fields' => array(
'diskspace' => array( 'diskspace' => array(
'label' => \Froxlor\I18N\Lang::getAll()['customer']['diskspace'], 'label' => $lng['customer']['diskspace'],
'type' => 'textul', 'type' => 'textul',
'value' => $result['diskspace'], 'value' => $result['diskspace'],
'maxlength' => 16, 'maxlength' => 16,
@@ -189,7 +189,7 @@ return array(
'ul_field' => $diskspace_ul 'ul_field' => $diskspace_ul
), ),
'traffic' => array( 'traffic' => array(
'label' => \Froxlor\I18N\Lang::getAll()['customer']['traffic'], 'label' => $lng['customer']['traffic'],
'type' => 'textul', 'type' => 'textul',
'value' => $result['traffic'], 'value' => $result['traffic'],
'maxlength' => 14, 'maxlength' => 14,
@@ -197,7 +197,7 @@ return array(
'ul_field' => $traffic_ul 'ul_field' => $traffic_ul
), ),
'subdomains' => array( 'subdomains' => array(
'label' => \Froxlor\I18N\Lang::getAll()['customer']['subdomains'], 'label' => $lng['customer']['subdomains'],
'type' => 'textul', 'type' => 'textul',
'value' => $result['subdomains'], 'value' => $result['subdomains'],
'maxlength' => 9, 'maxlength' => 9,
@@ -205,7 +205,7 @@ return array(
'ul_field' => $subdomains_ul 'ul_field' => $subdomains_ul
), ),
'emails' => array( 'emails' => array(
'label' => \Froxlor\I18N\Lang::getAll()['customer']['emails'], 'label' => $lng['customer']['emails'],
'type' => 'textul', 'type' => 'textul',
'value' => $result['emails'], 'value' => $result['emails'],
'maxlength' => 9, 'maxlength' => 9,
@@ -213,7 +213,7 @@ return array(
'ul_field' => $emails_ul 'ul_field' => $emails_ul
), ),
'email_accounts' => array( 'email_accounts' => array(
'label' => \Froxlor\I18N\Lang::getAll()['customer']['accounts'], 'label' => $lng['customer']['accounts'],
'type' => 'textul', 'type' => 'textul',
'value' => $result['email_accounts'], 'value' => $result['email_accounts'],
'maxlength' => 9, 'maxlength' => 9,
@@ -221,7 +221,7 @@ return array(
'ul_field' => $email_accounts_ul 'ul_field' => $email_accounts_ul
), ),
'email_forwarders' => array( 'email_forwarders' => array(
'label' => \Froxlor\I18N\Lang::getAll()['customer']['forwarders'], 'label' => $lng['customer']['forwarders'],
'type' => 'textul', 'type' => 'textul',
'value' => $result['email_forwarders'], 'value' => $result['email_forwarders'],
'maxlength' => 9, 'maxlength' => 9,
@@ -229,7 +229,7 @@ return array(
'ul_field' => $email_forwarders_ul 'ul_field' => $email_forwarders_ul
), ),
'email_quota' => array( 'email_quota' => array(
'label' => \Froxlor\I18N\Lang::getAll()['customer']['email_quota'], 'label' => $lng['customer']['email_quota'],
'type' => 'textul', 'type' => 'textul',
'value' => $result['email_quota'], 'value' => $result['email_quota'],
'maxlength' => 9, 'maxlength' => 9,
@@ -238,11 +238,11 @@ return array(
'ul_field' => $email_quota_ul 'ul_field' => $email_quota_ul
), ),
'email_imap' => array( 'email_imap' => array(
'label' => \Froxlor\I18N\Lang::getAll()['customer']['email_imap'], 'label' => $lng['customer']['email_imap'],
'type' => 'checkbox', 'type' => 'checkbox',
'values' => array( 'values' => array(
array( array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'], 'label' => $lng['panel']['yes'],
'value' => '1' 'value' => '1'
) )
), ),
@@ -252,11 +252,11 @@ return array(
'mandatory' => true 'mandatory' => true
), ),
'email_pop3' => array( 'email_pop3' => array(
'label' => \Froxlor\I18N\Lang::getAll()['customer']['email_pop3'], 'label' => $lng['customer']['email_pop3'],
'type' => 'checkbox', 'type' => 'checkbox',
'values' => array( 'values' => array(
array( array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'], 'label' => $lng['panel']['yes'],
'value' => '1' 'value' => '1'
) )
), ),
@@ -266,14 +266,14 @@ return array(
'mandatory' => true 'mandatory' => true
), ),
'ftps' => array( 'ftps' => array(
'label' => \Froxlor\I18N\Lang::getAll()['customer']['ftps'], 'label' => $lng['customer']['ftps'],
'type' => 'textul', 'type' => 'textul',
'value' => $result['ftps'], 'value' => $result['ftps'],
'maxlength' => 9, 'maxlength' => 9,
'ul_field' => $ftps_ul 'ul_field' => $ftps_ul
), ),
'mysqls' => array( 'mysqls' => array(
'label' => \Froxlor\I18N\Lang::getAll()['customer']['mysqls'], 'label' => $lng['customer']['mysqls'],
'type' => 'textul', 'type' => 'textul',
'value' => $result['mysqls'], 'value' => $result['mysqls'],
'maxlength' => 9, 'maxlength' => 9,
@@ -281,11 +281,11 @@ return array(
'ul_field' => $mysqls_ul 'ul_field' => $mysqls_ul
), ),
'phpenabled' => array( 'phpenabled' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['phpenabled'] . '?', 'label' => $lng['admin']['phpenabled'] . '?',
'type' => 'checkbox', 'type' => 'checkbox',
'values' => array( 'values' => array(
array( array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'], 'label' => $lng['panel']['yes'],
'value' => '1' 'value' => '1'
) )
), ),
@@ -295,18 +295,18 @@ return array(
), ),
'allowed_phpconfigs' => array( 'allowed_phpconfigs' => array(
'visible' => (((int) \Froxlor\Settings::Get('system.mod_fcgid') == 1 || (int) \Froxlor\Settings::Get('phpfpm.enabled') == 1) ? true : false), 'visible' => (((int) \Froxlor\Settings::Get('system.mod_fcgid') == 1 || (int) \Froxlor\Settings::Get('phpfpm.enabled') == 1) ? true : false),
'label' => \Froxlor\I18N\Lang::getAll()['admin']['phpsettings']['title'], 'label' => $lng['admin']['phpsettings']['title'],
'type' => 'checkbox', 'type' => 'checkbox',
'values' => $phpconfigs, 'values' => $phpconfigs,
'value' => isset($result['allowed_phpconfigs']) && ! empty($result['allowed_phpconfigs']) ? json_decode($result['allowed_phpconfigs'], JSON_OBJECT_AS_ARRAY) : array(), 'value' => isset($result['allowed_phpconfigs']) && ! empty($result['allowed_phpconfigs']) ? json_decode($result['allowed_phpconfigs'], JSON_OBJECT_AS_ARRAY) : array(),
'is_array' => 1 'is_array' => 1
), ),
'perlenabled' => array( 'perlenabled' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['perlenabled'] . '?', 'label' => $lng['admin']['perlenabled'] . '?',
'type' => 'checkbox', 'type' => 'checkbox',
'values' => array( 'values' => array(
array( array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'], 'label' => $lng['panel']['yes'],
'value' => '1' 'value' => '1'
) )
), ),
@@ -315,11 +315,11 @@ return array(
) )
), ),
'dnsenabled' => array( 'dnsenabled' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['dnsenabled'] . '?', 'label' => $lng['admin']['dnsenabled'] . '?',
'type' => 'checkbox', 'type' => 'checkbox',
'values' => array( 'values' => array(
array( array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'], 'label' => $lng['panel']['yes'],
'value' => '1' 'value' => '1'
) )
), ),
@@ -329,11 +329,11 @@ return array(
'visible' => (\Froxlor\Settings::Get('system.dnsenabled') == '1' ? true : false) 'visible' => (\Froxlor\Settings::Get('system.dnsenabled') == '1' ? true : false)
), ),
'logviewenabled' => array( 'logviewenabled' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['logviewenabled'] . '?', 'label' => $lng['admin']['logviewenabled'] . '?',
'type' => 'checkbox', 'type' => 'checkbox',
'values' => array( 'values' => array(
array( array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'], 'label' => $lng['panel']['yes'],
'value' => '1' 'value' => '1'
) )
), ),
@@ -344,12 +344,12 @@ return array(
) )
), ),
'section_d' => array( 'section_d' => array(
'title' => \Froxlor\I18N\Lang::getAll()['admin']['movetoadmin'], 'title' => $lng['admin']['movetoadmin'],
'image' => 'icons/user_edit.png', 'image' => 'icons/user_edit.png',
'visible' => ($admin_select_cnt > 1), 'visible' => ($admin_select_cnt > 1),
'fields' => array( 'fields' => array(
'move_to_admin' => array( 'move_to_admin' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['movecustomertoadmin'], 'label' => $lng['admin']['movecustomertoadmin'],
'type' => 'select', 'type' => 'select',
'select_var' => $admin_select 'select_var' => $admin_select
) )

View File

@@ -16,11 +16,11 @@
*/ */
return array( return array(
'domain_add' => array( 'domain_add' => array(
'title' => \Froxlor\I18N\Lang::getAll()['admin']['domain_add'], 'title' => $lng['admin']['domain_add'],
'image' => 'icons/domain_add.png', 'image' => 'icons/domain_add.png',
'sections' => array( 'sections' => array(
'section_a' => array( 'section_a' => array(
'title' => \Froxlor\I18N\Lang::getAll()['domains']['domainsettings'], 'title' => $lng['domains']['domainsettings'],
'image' => 'icons/domain_add.png', 'image' => 'icons/domain_add.png',
'fields' => array( 'fields' => array(
'domain' => array( 'domain' => array(
@@ -29,36 +29,36 @@ return array(
'mandatory' => true 'mandatory' => true
), ),
'customerid' => array( 'customerid' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['customer'], 'label' => $lng['admin']['customer'],
'type' => 'select', 'type' => 'select',
'select_var' => $customers, 'select_var' => $customers,
'mandatory' => true 'mandatory' => true
), ),
'adminid' => array( 'adminid' => array(
'visible' => (\Froxlor\User::getAll()['customers_see_all'] == '1' ? true : false), 'visible' => (\Froxlor\User::getAll()['customers_see_all'] == '1' ? true : false),
'label' => \Froxlor\I18N\Lang::getAll()['admin']['admin'], 'label' => $lng['admin']['admin'],
'type' => 'select', 'type' => 'select',
'select_var' => $admins, 'select_var' => $admins,
'mandatory' => true 'mandatory' => true
), ),
'alias' => array( 'alias' => array(
'label' => \Froxlor\I18N\Lang::getAll()['domains']['aliasdomain'], 'label' => $lng['domains']['aliasdomain'],
'type' => 'select', 'type' => 'select',
'select_var' => $domains 'select_var' => $domains
), ),
'issubof' => array( 'issubof' => array(
'label' => \Froxlor\I18N\Lang::getAll()['domains']['issubof'], 'label' => $lng['domains']['issubof'],
'desc' => \Froxlor\I18N\Lang::getAll()['domains']['issubofinfo'], 'desc' => $lng['domains']['issubofinfo'],
'type' => 'select', 'type' => 'select',
'select_var' => $subtodomains 'select_var' => $subtodomains
), ),
'caneditdomain' => array( 'caneditdomain' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['domain_editable']['title'], 'label' => $lng['admin']['domain_editable']['title'],
'desc' => \Froxlor\I18N\Lang::getAll()['admin']['domain_editable']['desc'], 'desc' => $lng['admin']['domain_editable']['desc'],
'type' => 'checkbox', 'type' => 'checkbox',
'values' => array( 'values' => array(
array( array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'], 'label' => $lng['panel']['yes'],
'value' => '1' 'value' => '1'
) )
), ),
@@ -67,38 +67,38 @@ return array(
) )
), ),
'add_date' => array( 'add_date' => array(
'label' => \Froxlor\I18N\Lang::getAll()['domains']['add_date'], 'label' => $lng['domains']['add_date'],
'desc' => \Froxlor\I18N\Lang::getAll()['panel']['dateformat'], 'desc' => $lng['panel']['dateformat'],
'type' => 'label', 'type' => 'label',
'value' => $add_date 'value' => $add_date
), ),
'registration_date' => array( 'registration_date' => array(
'label' => \Froxlor\I18N\Lang::getAll()['domains']['registration_date'], 'label' => $lng['domains']['registration_date'],
'desc' => \Froxlor\I18N\Lang::getAll()['panel']['dateformat'], 'desc' => $lng['panel']['dateformat'],
'type' => 'text', 'type' => 'text',
'size' => 10 'size' => 10
), ),
'termination_date' => array( 'termination_date' => array(
'label' => \Froxlor\I18N\Lang::getAll()['domains']['termination_date'], 'label' => $lng['domains']['termination_date'],
'desc' => \Froxlor\I18N\Lang::getAll()['panel']['dateformat'], 'desc' => $lng['panel']['dateformat'],
'type' => 'text', 'type' => 'text',
'size' => 10 'size' => 10
) )
) )
), ),
'section_b' => array( 'section_b' => array(
'title' => \Froxlor\I18N\Lang::getAll()['admin']['webserversettings'], 'title' => $lng['admin']['webserversettings'],
'image' => 'icons/domain_add.png', 'image' => 'icons/domain_add.png',
'fields' => array( 'fields' => array(
'documentroot' => array( 'documentroot' => array(
'visible' => (\Froxlor\User::getAll()['change_serversettings'] == '1' ? true : false), 'visible' => (\Froxlor\User::getAll()['change_serversettings'] == '1' ? true : false),
'label' => 'DocumentRoot', 'label' => 'DocumentRoot',
'desc' => \Froxlor\I18N\Lang::getAll()['panel']['emptyfordefault'], 'desc' => $lng['panel']['emptyfordefault'],
'type' => 'text' 'type' => 'text'
), ),
'ipandport' => array( 'ipandport' => array(
'label' => \Froxlor\I18N\Lang::getAll()['domains']['ipandport_multi']['title'], 'label' => $lng['domains']['ipandport_multi']['title'],
'desc' => \Froxlor\I18N\Lang::getAll()['domains']['ipandport_multi']['description'], 'desc' => $lng['domains']['ipandport_multi']['description'],
'type' => 'checkbox', 'type' => 'checkbox',
'values' => $ipsandports, 'values' => $ipsandports,
'value' => explode(',', \Froxlor\Settings::Get('system.defaultip')), 'value' => explode(',', \Froxlor\Settings::Get('system.defaultip')),
@@ -106,18 +106,18 @@ return array(
'mandatory' => true 'mandatory' => true
), ),
'selectserveralias' => array( 'selectserveralias' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['selectserveralias'], 'label' => $lng['admin']['selectserveralias'],
'desc' => \Froxlor\I18N\Lang::getAll()['admin']['selectserveralias_desc'], 'desc' => $lng['admin']['selectserveralias_desc'],
'type' => 'select', 'type' => 'select',
'select_var' => $serveraliasoptions 'select_var' => $serveraliasoptions
), ),
'speciallogfile' => array( 'speciallogfile' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['speciallogfile']['title'], 'label' => $lng['admin']['speciallogfile']['title'],
'desc' => \Froxlor\I18N\Lang::getAll()['admin']['speciallogfile']['description'], 'desc' => $lng['admin']['speciallogfile']['description'],
'type' => 'checkbox', 'type' => 'checkbox',
'values' => array( 'values' => array(
array( array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'], 'label' => $lng['panel']['yes'],
'value' => '1' 'value' => '1'
) )
), ),
@@ -126,32 +126,32 @@ return array(
'specialsettings' => array( 'specialsettings' => array(
'visible' => (\Froxlor\User::getAll()['change_serversettings'] == '1' ? true : false), 'visible' => (\Froxlor\User::getAll()['change_serversettings'] == '1' ? true : false),
'style' => 'align-top', 'style' => 'align-top',
'label' => \Froxlor\I18N\Lang::getAll()['admin']['ownvhostsettings'], 'label' => $lng['admin']['ownvhostsettings'],
'desc' => \Froxlor\I18N\Lang::getAll()['serversettings']['default_vhostconf']['description'], 'desc' => $lng['serversettings']['default_vhostconf']['description'],
'type' => 'textarea', 'type' => 'textarea',
'cols' => 60, 'cols' => 60,
'rows' => 12 'rows' => 12
), ),
'notryfiles' => array( 'notryfiles' => array(
'visible' => (\Froxlor\Settings::Get('system.webserver') == 'nginx' && \Froxlor\User::getAll()['change_serversettings'] == '1'), 'visible' => (\Froxlor\Settings::Get('system.webserver') == 'nginx' && \Froxlor\User::getAll()['change_serversettings'] == '1'),
'label' => \Froxlor\I18N\Lang::getAll()['admin']['notryfiles']['title'], 'label' => $lng['admin']['notryfiles']['title'],
'desc' => \Froxlor\I18N\Lang::getAll()['admin']['notryfiles']['description'], 'desc' => $lng['admin']['notryfiles']['description'],
'type' => 'checkbox', 'type' => 'checkbox',
'values' => array( 'values' => array(
array( array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'], 'label' => $lng['panel']['yes'],
'value' => '1' 'value' => '1'
) )
), ),
'value' => array() 'value' => array()
), ),
'writeaccesslog' => array( 'writeaccesslog' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['writeaccesslog']['title'], 'label' => $lng['admin']['writeaccesslog']['title'],
'desc' => \Froxlor\I18N\Lang::getAll()['admin']['writeaccesslog']['description'], 'desc' => $lng['admin']['writeaccesslog']['description'],
'type' => 'checkbox', 'type' => 'checkbox',
'values' => array( 'values' => array(
array( array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'], 'label' => $lng['panel']['yes'],
'value' => '1' 'value' => '1'
) )
), ),
@@ -160,12 +160,12 @@ return array(
) )
), ),
'writeerrorlog' => array( 'writeerrorlog' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['writeerrorlog']['title'], 'label' => $lng['admin']['writeerrorlog']['title'],
'desc' => \Froxlor\I18N\Lang::getAll()['admin']['writeerrorlog']['description'], 'desc' => $lng['admin']['writeerrorlog']['description'],
'type' => 'checkbox', 'type' => 'checkbox',
'values' => array( 'values' => array(
array( array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'], 'label' => $lng['panel']['yes'],
'value' => '1' 'value' => '1'
) )
), ),
@@ -176,13 +176,13 @@ return array(
) )
), ),
'section_bssl' => array( 'section_bssl' => array(
'title' => \Froxlor\I18N\Lang::getAll()['admin']['webserversettings_ssl'], 'title' => $lng['admin']['webserversettings_ssl'],
'image' => 'icons/domain_add.png', 'image' => 'icons/domain_add.png',
'visible' => \Froxlor\Settings::Get('system.use_ssl') == '1' ? true : false, 'visible' => \Froxlor\Settings::Get('system.use_ssl') == '1' ? true : false,
'fields' => array( 'fields' => array(
'ssl_ipandport' => array( 'ssl_ipandport' => array(
'label' => \Froxlor\I18N\Lang::getAll()['domains']['ipandport_ssl_multi']['title'], 'label' => $lng['domains']['ipandport_ssl_multi']['title'],
'desc' => \Froxlor\I18N\Lang::getAll()['domains']['ipandport_ssl_multi']['description'], 'desc' => $lng['domains']['ipandport_ssl_multi']['description'],
'type' => 'checkbox', 'type' => 'checkbox',
'values' => $ssl_ipsandports, 'values' => $ssl_ipsandports,
'value' => '', 'value' => '',
@@ -190,12 +190,12 @@ return array(
), ),
'ssl_redirect' => array( 'ssl_redirect' => array(
'visible' => ($ssl_ipsandports != '' ? true : false), 'visible' => ($ssl_ipsandports != '' ? true : false),
'label' => \Froxlor\I18N\Lang::getAll()['domains']['ssl_redirect']['title'], 'label' => $lng['domains']['ssl_redirect']['title'],
'desc' => \Froxlor\I18N\Lang::getAll()['domains']['ssl_redirect']['description'], 'desc' => $lng['domains']['ssl_redirect']['description'],
'type' => 'checkbox', 'type' => 'checkbox',
'values' => array( 'values' => array(
array( array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'], 'label' => $lng['panel']['yes'],
'value' => '1' 'value' => '1'
) )
), ),
@@ -203,12 +203,12 @@ return array(
), ),
'letsencrypt' => array( 'letsencrypt' => array(
'visible' => (\Froxlor\Settings::Get('system.leenabled') == '1' ? ($ssl_ipsandports != '' ? true : false) : false), 'visible' => (\Froxlor\Settings::Get('system.leenabled') == '1' ? ($ssl_ipsandports != '' ? true : false) : false),
'label' => \Froxlor\I18N\Lang::getAll()['admin']['letsencrypt']['title'], 'label' => $lng['admin']['letsencrypt']['title'],
'desc' => \Froxlor\I18N\Lang::getAll()['admin']['letsencrypt']['description'], 'desc' => $lng['admin']['letsencrypt']['description'],
'type' => 'checkbox', 'type' => 'checkbox',
'values' => array( 'values' => array(
array( array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'], 'label' => $lng['panel']['yes'],
'value' => '1' 'value' => '1'
) )
), ),
@@ -216,12 +216,12 @@ return array(
), ),
'http2' => array( 'http2' => array(
'visible' => ($ssl_ipsandports != '' ? true : false) && \Froxlor\Settings::Get('system.webserver') != 'lighttpd' && \Froxlor\Settings::Get('system.http2_support') == '1', 'visible' => ($ssl_ipsandports != '' ? true : false) && \Froxlor\Settings::Get('system.webserver') != 'lighttpd' && \Froxlor\Settings::Get('system.http2_support') == '1',
'label' => \Froxlor\I18N\Lang::getAll()['admin']['domain_http2']['title'], 'label' => $lng['admin']['domain_http2']['title'],
'desc' => \Froxlor\I18N\Lang::getAll()['admin']['domain_http2']['description'], 'desc' => $lng['admin']['domain_http2']['description'],
'type' => 'checkbox', 'type' => 'checkbox',
'values' => array( 'values' => array(
array( array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'], 'label' => $lng['panel']['yes'],
'value' => '1' 'value' => '1'
) )
), ),
@@ -231,12 +231,12 @@ return array(
'visible' => ($ssl_ipsandports == '' ? true : false), 'visible' => ($ssl_ipsandports == '' ? true : false),
'label' => 'SSL', 'label' => 'SSL',
'type' => 'label', 'type' => 'label',
'value' => \Froxlor\I18N\Lang::getAll()['panel']['nosslipsavailable'] 'value' => $lng['panel']['nosslipsavailable']
), ),
'hsts_maxage' => array( 'hsts_maxage' => array(
'visible' => ($ssl_ipsandports != '' ? true : false), 'visible' => ($ssl_ipsandports != '' ? true : false),
'label' => \Froxlor\I18N\Lang::getAll()['admin']['domain_hsts_maxage']['title'], 'label' => $lng['admin']['domain_hsts_maxage']['title'],
'desc' => \Froxlor\I18N\Lang::getAll()['admin']['domain_hsts_maxage']['description'], 'desc' => $lng['admin']['domain_hsts_maxage']['description'],
'type' => 'int', 'type' => 'int',
'int_min' => 0, 'int_min' => 0,
'int_max' => 94608000, // 3-years 'int_max' => 94608000, // 3-years
@@ -244,12 +244,12 @@ return array(
), ),
'hsts_sub' => array( 'hsts_sub' => array(
'visible' => ($ssl_ipsandports != '' ? true : false), 'visible' => ($ssl_ipsandports != '' ? true : false),
'label' => \Froxlor\I18N\Lang::getAll()['admin']['domain_hsts_incsub']['title'], 'label' => $lng['admin']['domain_hsts_incsub']['title'],
'desc' => \Froxlor\I18N\Lang::getAll()['admin']['domain_hsts_incsub']['description'], 'desc' => $lng['admin']['domain_hsts_incsub']['description'],
'type' => 'checkbox', 'type' => 'checkbox',
'values' => array( 'values' => array(
array( array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'], 'label' => $lng['panel']['yes'],
'value' => '1' 'value' => '1'
) )
), ),
@@ -257,12 +257,12 @@ return array(
), ),
'hsts_preload' => array( 'hsts_preload' => array(
'visible' => ($ssl_ipsandports != '' ? true : false), 'visible' => ($ssl_ipsandports != '' ? true : false),
'label' => \Froxlor\I18N\Lang::getAll()['admin']['domain_hsts_preload']['title'], 'label' => $lng['admin']['domain_hsts_preload']['title'],
'desc' => \Froxlor\I18N\Lang::getAll()['admin']['domain_hsts_preload']['description'], 'desc' => $lng['admin']['domain_hsts_preload']['description'],
'type' => 'checkbox', 'type' => 'checkbox',
'values' => array( 'values' => array(
array( array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'], 'label' => $lng['panel']['yes'],
'value' => '1' 'value' => '1'
) )
), ),
@@ -270,12 +270,12 @@ return array(
), ),
'ocsp_stapling' => array( 'ocsp_stapling' => array(
'visible' => ($ssl_ipsandports != '' ? true : false) && \Froxlor\Settings::Get('system.webserver') != 'lighttpd', 'visible' => ($ssl_ipsandports != '' ? true : false) && \Froxlor\Settings::Get('system.webserver') != 'lighttpd',
'label' => \Froxlor\I18N\Lang::getAll()['admin']['domain_ocsp_stapling']['title'], 'label' => $lng['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'] : ""), 'desc' => $lng['admin']['domain_ocsp_stapling']['description'] . (\Froxlor\Settings::Get('system.webserver') == 'nginx' ? $lng['admin']['domain_ocsp_stapling']['nginx_version_warning'] : ""),
'type' => 'checkbox', 'type' => 'checkbox',
'values' => array( 'values' => array(
array( array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'], 'label' => $lng['panel']['yes'],
'value' => '1' 'value' => '1'
) )
), ),
@@ -284,7 +284,7 @@ return array(
) )
), ),
'section_c' => array( 'section_c' => array(
'title' => \Froxlor\I18N\Lang::getAll()['admin']['phpserversettings'], 'title' => $lng['admin']['phpserversettings'],
'image' => 'icons/domain_add.png', 'image' => 'icons/domain_add.png',
'visible' => ((\Froxlor\User::getAll()['change_serversettings'] == '1' || \Froxlor\User::getAll()['caneditphpsettings'] == '1') ? true : false), 'visible' => ((\Froxlor\User::getAll()['change_serversettings'] == '1' || \Froxlor\User::getAll()['caneditphpsettings'] == '1') ? true : false),
'fields' => array( 'fields' => array(
@@ -293,7 +293,7 @@ return array(
'type' => 'checkbox', 'type' => 'checkbox',
'values' => array( 'values' => array(
array( array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'], 'label' => $lng['panel']['yes'],
'value' => '1' 'value' => '1'
) )
), ),
@@ -302,11 +302,11 @@ return array(
) )
), ),
'phpenabled' => array( 'phpenabled' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['phpenabled'], 'label' => $lng['admin']['phpenabled'],
'type' => 'checkbox', 'type' => 'checkbox',
'values' => array( 'values' => array(
array( array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'], 'label' => $lng['panel']['yes'],
'value' => '1' 'value' => '1'
) )
), ),
@@ -316,24 +316,24 @@ return array(
), ),
'phpsettingid' => array( 'phpsettingid' => array(
'visible' => (((int) \Froxlor\Settings::Get('system.mod_fcgid') == 1 || (int) \Froxlor\Settings::Get('phpfpm.enabled') == 1) ? true : false), 'visible' => (((int) \Froxlor\Settings::Get('system.mod_fcgid') == 1 || (int) \Froxlor\Settings::Get('phpfpm.enabled') == 1) ? true : false),
'label' => \Froxlor\I18N\Lang::getAll()['admin']['phpsettings']['title'], 'label' => $lng['admin']['phpsettings']['title'],
'type' => 'select', 'type' => 'select',
'select_var' => $phpconfigs 'select_var' => $phpconfigs
), ),
'mod_fcgid_starter' => array( 'mod_fcgid_starter' => array(
'visible' => ((int) \Froxlor\Settings::Get('system.mod_fcgid') == 1 ? true : false), 'visible' => ((int) \Froxlor\Settings::Get('system.mod_fcgid') == 1 ? true : false),
'label' => \Froxlor\I18N\Lang::getAll()['admin']['mod_fcgid_starter']['title'], 'label' => $lng['admin']['mod_fcgid_starter']['title'],
'type' => 'text' 'type' => 'text'
), ),
'mod_fcgid_maxrequests' => array( 'mod_fcgid_maxrequests' => array(
'visible' => ((int) \Froxlor\Settings::Get('system.mod_fcgid') == 1 ? true : false), 'visible' => ((int) \Froxlor\Settings::Get('system.mod_fcgid') == 1 ? true : false),
'label' => \Froxlor\I18N\Lang::getAll()['admin']['mod_fcgid_maxrequests']['title'], 'label' => $lng['admin']['mod_fcgid_maxrequests']['title'],
'type' => 'text' 'type' => 'text'
) )
) )
), ),
'section_d' => array( 'section_d' => array(
'title' => \Froxlor\I18N\Lang::getAll()['admin']['nameserversettings'], 'title' => $lng['admin']['nameserversettings'],
'image' => 'icons/domain_add.png', 'image' => 'icons/domain_add.png',
'visible' => (\Froxlor\Settings::Get('system.bind_enable') == '1' && \Froxlor\User::getAll()['change_serversettings'] == '1' ? true : false), 'visible' => (\Froxlor\Settings::Get('system.bind_enable') == '1' && \Froxlor\User::getAll()['change_serversettings'] == '1' ? true : false),
'fields' => array( 'fields' => array(
@@ -342,7 +342,7 @@ return array(
'type' => 'checkbox', 'type' => 'checkbox',
'values' => array( 'values' => array(
array( array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'], 'label' => $lng['panel']['yes'],
'value' => '1' 'value' => '1'
) )
), ),
@@ -352,21 +352,21 @@ return array(
), ),
'zonefile' => array( 'zonefile' => array(
'label' => 'Zonefile', 'label' => 'Zonefile',
'desc' => \Froxlor\I18N\Lang::getAll()['admin']['bindzonewarning'], 'desc' => $lng['admin']['bindzonewarning'],
'type' => 'text' 'type' => 'text'
) )
) )
), ),
'section_e' => array( 'section_e' => array(
'title' => \Froxlor\I18N\Lang::getAll()['admin']['mailserversettings'], 'title' => $lng['admin']['mailserversettings'],
'image' => 'icons/domain_add.png', 'image' => 'icons/domain_add.png',
'fields' => array( 'fields' => array(
'isemaildomain' => array( 'isemaildomain' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['emaildomain'], 'label' => $lng['admin']['emaildomain'],
'type' => 'checkbox', 'type' => 'checkbox',
'values' => array( 'values' => array(
array( array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'], 'label' => $lng['panel']['yes'],
'value' => '1' 'value' => '1'
) )
), ),
@@ -375,18 +375,18 @@ return array(
) )
), ),
'email_only' => array( 'email_only' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['email_only'], 'label' => $lng['admin']['email_only'],
'type' => 'checkbox', 'type' => 'checkbox',
'values' => array( 'values' => array(
array( array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'], 'label' => $lng['panel']['yes'],
'value' => '1' 'value' => '1'
) )
), ),
'value' => array() 'value' => array()
), ),
'subcanemaildomain' => array( 'subcanemaildomain' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['subdomainforemail'], 'label' => $lng['admin']['subdomainforemail'],
'type' => 'select', 'type' => 'select',
'select_var' => $subcanemaildomain 'select_var' => $subcanemaildomain
), ),
@@ -396,7 +396,7 @@ return array(
'type' => 'checkbox', 'type' => 'checkbox',
'values' => array( 'values' => array(
array( array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'], 'label' => $lng['panel']['yes'],
'value' => '1' 'value' => '1'
) )
), ),

View File

@@ -16,11 +16,11 @@
*/ */
return array( return array(
'domain_edit' => array( 'domain_edit' => array(
'title' => \Froxlor\I18N\Lang::getAll()['admin']['domain_edit'], 'title' => $lng['admin']['domain_edit'],
'image' => 'icons/domain_edit.png', 'image' => 'icons/domain_edit.png',
'sections' => array( 'sections' => array(
'section_a' => array( 'section_a' => array(
'title' => \Froxlor\I18N\Lang::getAll()['domains']['domainsettings'], 'title' => $lng['domains']['domainsettings'],
'image' => 'icons/domain_edit.png', 'image' => 'icons/domain_edit.png',
'fields' => array( 'fields' => array(
'domain' => array( 'domain' => array(
@@ -30,7 +30,7 @@ return array(
'mandatory' => true 'mandatory' => true
), ),
'customerid' => array( 'customerid' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['customer'], 'label' => $lng['admin']['customer'],
'type' => (\Froxlor\Settings::Get('panel.allow_domain_change_customer') == '1' ? 'select' : 'label'), 'type' => (\Froxlor\Settings::Get('panel.allow_domain_change_customer') == '1' ? 'select' : 'label'),
'select_var' => (isset($customers) ? $customers : null), 'select_var' => (isset($customers) ? $customers : null),
'value' => (isset($result['customername']) ? $result['customername'] : null), 'value' => (isset($result['customername']) ? $result['customername'] : null),
@@ -38,7 +38,7 @@ return array(
), ),
'adminid' => array( 'adminid' => array(
'visible' => (\Froxlor\User::getAll()['customers_see_all'] == '1' ? true : false), 'visible' => (\Froxlor\User::getAll()['customers_see_all'] == '1' ? true : false),
'label' => \Froxlor\I18N\Lang::getAll()['admin']['admin'], 'label' => $lng['admin']['admin'],
'type' => (\Froxlor\Settings::Get('panel.allow_domain_change_admin') == '1' ? 'select' : 'label'), 'type' => (\Froxlor\Settings::Get('panel.allow_domain_change_admin') == '1' ? 'select' : 'label'),
'select_var' => (isset($admins) ? $admins : null), 'select_var' => (isset($admins) ? $admins : null),
'value' => (isset($result['adminname']) ? $result['adminname'] : null), 'value' => (isset($result['adminname']) ? $result['adminname'] : null),
@@ -46,28 +46,28 @@ return array(
), ),
'alias' => array( 'alias' => array(
'visible' => ($alias_check == '0' ? true : false), 'visible' => ($alias_check == '0' ? true : false),
'label' => \Froxlor\I18N\Lang::getAll()['domains']['aliasdomain'], 'label' => $lng['domains']['aliasdomain'],
'type' => 'select', 'type' => 'select',
'select_var' => $domains 'select_var' => $domains
), ),
'issubof' => array( 'issubof' => array(
'label' => \Froxlor\I18N\Lang::getAll()['domains']['issubof'], 'label' => $lng['domains']['issubof'],
'desc' => \Froxlor\I18N\Lang::getAll()['domains']['issubofinfo'], 'desc' => $lng['domains']['issubofinfo'],
'type' => 'select', 'type' => 'select',
'select_var' => $subtodomains 'select_var' => $subtodomains
), ),
'associated_info' => array( 'associated_info' => array(
'label' => \Froxlor\I18N\Lang::getAll()['domains']['associated_with_domain'], 'label' => $lng['domains']['associated_with_domain'],
'type' => 'label', 'type' => 'label',
'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'] 'value' => $subdomains . ' ' . $lng['customer']['subdomains'] . ', ' . $alias_check . ' ' . $lng['domains']['aliasdomains'] . ', ' . $emails . ' ' . $lng['customer']['emails'] . ', ' . $email_accounts . ' ' . $lng['customer']['accounts'] . ', ' . $email_forwarders . ' ' . $lng['customer']['forwarders']
), ),
'caneditdomain' => array( 'caneditdomain' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['domain_editable']['title'], 'label' => $lng['admin']['domain_editable']['title'],
'desc' => \Froxlor\I18N\Lang::getAll()['admin']['domain_editable']['desc'], 'desc' => $lng['admin']['domain_editable']['desc'],
'type' => 'checkbox', 'type' => 'checkbox',
'values' => array( 'values' => array(
array( array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'], 'label' => $lng['panel']['yes'],
'value' => '1' 'value' => '1'
) )
), ),
@@ -76,21 +76,21 @@ return array(
) )
), ),
'add_date' => array( 'add_date' => array(
'label' => \Froxlor\I18N\Lang::getAll()['domains']['add_date'], 'label' => $lng['domains']['add_date'],
'desc' => \Froxlor\I18N\Lang::getAll()['panel']['dateformat'], 'desc' => $lng['panel']['dateformat'],
'type' => 'label', 'type' => 'label',
'value' => $result['add_date'] 'value' => $result['add_date']
), ),
'registration_date' => array( 'registration_date' => array(
'label' => \Froxlor\I18N\Lang::getAll()['domains']['registration_date'], 'label' => $lng['domains']['registration_date'],
'desc' => \Froxlor\I18N\Lang::getAll()['panel']['dateformat'], 'desc' => $lng['panel']['dateformat'],
'type' => 'text', 'type' => 'text',
'value' => $result['registration_date'], 'value' => $result['registration_date'],
'size' => 10 'size' => 10
), ),
'termination_date' => array( 'termination_date' => array(
'label' => \Froxlor\I18N\Lang::getAll()['domains']['termination_date'], 'label' => $lng['domains']['termination_date'],
'desc' => \Froxlor\I18N\Lang::getAll()['panel']['dateformat'], 'desc' => $lng['panel']['dateformat'],
'type' => 'text', 'type' => 'text',
'value' => $result['termination_date'], 'value' => $result['termination_date'],
'size' => 10 'size' => 10
@@ -98,19 +98,19 @@ return array(
) )
), ),
'section_b' => array( 'section_b' => array(
'title' => \Froxlor\I18N\Lang::getAll()['admin']['webserversettings'], 'title' => $lng['admin']['webserversettings'],
'image' => 'icons/domain_edit.png', 'image' => 'icons/domain_edit.png',
'fields' => array( 'fields' => array(
'documentroot' => array( 'documentroot' => array(
'visible' => (\Froxlor\User::getAll()['change_serversettings'] == '1' ? true : false), 'visible' => (\Froxlor\User::getAll()['change_serversettings'] == '1' ? true : false),
'label' => 'DocumentRoot', 'label' => 'DocumentRoot',
'desc' => \Froxlor\I18N\Lang::getAll()['panel']['emptyfordefault'], 'desc' => $lng['panel']['emptyfordefault'],
'type' => 'text', 'type' => 'text',
'value' => $result['documentroot'] 'value' => $result['documentroot']
), ),
'ipandport' => array( 'ipandport' => array(
'label' => \Froxlor\I18N\Lang::getAll()['domains']['ipandport_multi']['title'], 'label' => $lng['domains']['ipandport_multi']['title'],
'desc' => \Froxlor\I18N\Lang::getAll()['domains']['ipandport_multi']['description'], 'desc' => $lng['domains']['ipandport_multi']['description'],
'type' => 'checkbox', 'type' => 'checkbox',
'values' => $ipsandports, 'values' => $ipsandports,
'value' => $usedips, 'value' => $usedips,
@@ -118,18 +118,18 @@ return array(
'mandatory' => true 'mandatory' => true
), ),
'selectserveralias' => array( 'selectserveralias' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['selectserveralias'], 'label' => $lng['admin']['selectserveralias'],
'desc' => \Froxlor\I18N\Lang::getAll()['admin']['selectserveralias_desc'], 'desc' => $lng['admin']['selectserveralias_desc'],
'type' => 'select', 'type' => 'select',
'select_var' => $serveraliasoptions 'select_var' => $serveraliasoptions
), ),
'speciallogfile' => array( 'speciallogfile' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['speciallogfile']['title'], 'label' => $lng['admin']['speciallogfile']['title'],
'desc' => \Froxlor\I18N\Lang::getAll()['admin']['speciallogfile']['description'], 'desc' => $lng['admin']['speciallogfile']['description'],
'type' => 'checkbox', 'type' => 'checkbox',
'values' => array( 'values' => array(
array( array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'], 'label' => $lng['panel']['yes'],
'value' => '1' 'value' => '1'
) )
), ),
@@ -140,8 +140,8 @@ return array(
'specialsettings' => array( 'specialsettings' => array(
'visible' => (\Froxlor\User::getAll()['change_serversettings'] == '1' ? true : false), 'visible' => (\Froxlor\User::getAll()['change_serversettings'] == '1' ? true : false),
'style' => 'align-top', 'style' => 'align-top',
'label' => \Froxlor\I18N\Lang::getAll()['admin']['ownvhostsettings'], 'label' => $lng['admin']['ownvhostsettings'],
'desc' => \Froxlor\I18N\Lang::getAll()['serversettings']['default_vhostconf']['description'], 'desc' => $lng['serversettings']['default_vhostconf']['description'],
'type' => 'textarea', 'type' => 'textarea',
'value' => $result['specialsettings'], 'value' => $result['specialsettings'],
'cols' => 60, 'cols' => 60,
@@ -149,12 +149,12 @@ return array(
), ),
'specialsettingsforsubdomains' => array( 'specialsettingsforsubdomains' => array(
'visible' => (\Froxlor\User::getAll()['change_serversettings'] == '1' ? true : false), 'visible' => (\Froxlor\User::getAll()['change_serversettings'] == '1' ? true : false),
'label' => \Froxlor\I18N\Lang::getAll()['admin']['specialsettingsforsubdomains'], 'label' => $lng['admin']['specialsettingsforsubdomains'],
'desc' => \Froxlor\I18N\Lang::getAll()['serversettings']['specialsettingsforsubdomains']['description'], 'desc' => $lng['serversettings']['specialsettingsforsubdomains']['description'],
'type' => 'checkbox', 'type' => 'checkbox',
'values' => array( 'values' => array(
array( array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'], 'label' => $lng['panel']['yes'],
'value' => '1' 'value' => '1'
) )
), ),
@@ -164,12 +164,12 @@ return array(
), ),
'notryfiles' => array( 'notryfiles' => array(
'visible' => (\Froxlor\Settings::Get('system.webserver') == 'nginx' && \Froxlor\User::getAll()['change_serversettings'] == '1'), 'visible' => (\Froxlor\Settings::Get('system.webserver') == 'nginx' && \Froxlor\User::getAll()['change_serversettings'] == '1'),
'label' => \Froxlor\I18N\Lang::getAll()['admin']['notryfiles']['title'], 'label' => $lng['admin']['notryfiles']['title'],
'desc' => \Froxlor\I18N\Lang::getAll()['admin']['notryfiles']['description'], 'desc' => $lng['admin']['notryfiles']['description'],
'type' => 'checkbox', 'type' => 'checkbox',
'values' => array( 'values' => array(
array( array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'], 'label' => $lng['panel']['yes'],
'value' => '1' 'value' => '1'
) )
), ),
@@ -178,12 +178,12 @@ return array(
) )
), ),
'writeaccesslog' => array( 'writeaccesslog' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['writeaccesslog']['title'], 'label' => $lng['admin']['writeaccesslog']['title'],
'desc' => \Froxlor\I18N\Lang::getAll()['admin']['writeaccesslog']['description'], 'desc' => $lng['admin']['writeaccesslog']['description'],
'type' => 'checkbox', 'type' => 'checkbox',
'values' => array( 'values' => array(
array( array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'], 'label' => $lng['panel']['yes'],
'value' => '1' 'value' => '1'
) )
), ),
@@ -192,12 +192,12 @@ return array(
) )
), ),
'writeerrorlog' => array( 'writeerrorlog' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['writeerrorlog']['title'], 'label' => $lng['admin']['writeerrorlog']['title'],
'desc' => \Froxlor\I18N\Lang::getAll()['admin']['writeerrorlog']['description'], 'desc' => $lng['admin']['writeerrorlog']['description'],
'type' => 'checkbox', 'type' => 'checkbox',
'values' => array( 'values' => array(
array( array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'], 'label' => $lng['panel']['yes'],
'value' => '1' 'value' => '1'
) )
), ),
@@ -208,13 +208,13 @@ return array(
) )
), ),
'section_bssl' => array( 'section_bssl' => array(
'title' => \Froxlor\I18N\Lang::getAll()['admin']['webserversettings_ssl'], 'title' => $lng['admin']['webserversettings_ssl'],
'image' => 'icons/domain_edit.png', 'image' => 'icons/domain_edit.png',
'visible' => \Froxlor\Settings::Get('system.use_ssl') == '1' ? true : false, 'visible' => \Froxlor\Settings::Get('system.use_ssl') == '1' ? true : false,
'fields' => array( 'fields' => array(
'ssl_ipandport' => array( 'ssl_ipandport' => array(
'label' => \Froxlor\I18N\Lang::getAll()['domains']['ipandport_ssl_multi']['title'], 'label' => $lng['domains']['ipandport_ssl_multi']['title'],
'desc' => \Froxlor\I18N\Lang::getAll()['domains']['ipandport_ssl_multi']['description'], 'desc' => $lng['domains']['ipandport_ssl_multi']['description'],
'type' => 'checkbox', 'type' => 'checkbox',
'values' => $ssl_ipsandports, 'values' => $ssl_ipsandports,
'value' => $usedips, 'value' => $usedips,
@@ -222,12 +222,12 @@ return array(
), ),
'ssl_redirect' => array( 'ssl_redirect' => array(
'visible' => ($ssl_ipsandports != '' ? true : false), 'visible' => ($ssl_ipsandports != '' ? true : false),
'label' => \Froxlor\I18N\Lang::getAll()['domains']['ssl_redirect']['title'], 'label' => $lng['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'] : ''), 'desc' => $lng['domains']['ssl_redirect']['description'] . ($result['temporary_ssl_redirect'] > 1 ? $lng['domains']['ssl_redirect_temporarilydisabled'] : ''),
'type' => 'checkbox', 'type' => 'checkbox',
'values' => array( 'values' => array(
array( array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'], 'label' => $lng['panel']['yes'],
'value' => '1' 'value' => '1'
) )
), ),
@@ -237,12 +237,12 @@ return array(
), ),
'letsencrypt' => array( 'letsencrypt' => array(
'visible' => (\Froxlor\Settings::Get('system.leenabled') == '1' ? ($ssl_ipsandports != '' ? true : false) : false), 'visible' => (\Froxlor\Settings::Get('system.leenabled') == '1' ? ($ssl_ipsandports != '' ? true : false) : false),
'label' => \Froxlor\I18N\Lang::getAll()['admin']['letsencrypt']['title'], 'label' => $lng['admin']['letsencrypt']['title'],
'desc' => \Froxlor\I18N\Lang::getAll()['admin']['letsencrypt']['description'], 'desc' => $lng['admin']['letsencrypt']['description'],
'type' => 'checkbox', 'type' => 'checkbox',
'values' => array( 'values' => array(
array( array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'], 'label' => $lng['panel']['yes'],
'value' => '1' 'value' => '1'
) )
), ),
@@ -252,12 +252,12 @@ return array(
), ),
'http2' => array( 'http2' => array(
'visible' => ($ssl_ipsandports != '' ? true : false) && \Froxlor\Settings::Get('system.webserver') != 'lighttpd' && \Froxlor\Settings::Get('system.http2_support') == '1', 'visible' => ($ssl_ipsandports != '' ? true : false) && \Froxlor\Settings::Get('system.webserver') != 'lighttpd' && \Froxlor\Settings::Get('system.http2_support') == '1',
'label' => \Froxlor\I18N\Lang::getAll()['admin']['domain_http2']['title'], 'label' => $lng['admin']['domain_http2']['title'],
'desc' => \Froxlor\I18N\Lang::getAll()['admin']['domain_http2']['description'], 'desc' => $lng['admin']['domain_http2']['description'],
'type' => 'checkbox', 'type' => 'checkbox',
'values' => array( 'values' => array(
array( array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'], 'label' => $lng['panel']['yes'],
'value' => '1' 'value' => '1'
) )
), ),
@@ -269,12 +269,12 @@ return array(
'visible' => ($ssl_ipsandports == '' ? true : false), 'visible' => ($ssl_ipsandports == '' ? true : false),
'label' => 'SSL', 'label' => 'SSL',
'type' => 'label', 'type' => 'label',
'value' => \Froxlor\I18N\Lang::getAll()['panel']['nosslipsavailable'] 'value' => $lng['panel']['nosslipsavailable']
), ),
'hsts_maxage' => array( 'hsts_maxage' => array(
'visible' => ($ssl_ipsandports != '' ? true : false), 'visible' => ($ssl_ipsandports != '' ? true : false),
'label' => \Froxlor\I18N\Lang::getAll()['admin']['domain_hsts_maxage']['title'], 'label' => $lng['admin']['domain_hsts_maxage']['title'],
'desc' => \Froxlor\I18N\Lang::getAll()['admin']['domain_hsts_maxage']['description'], 'desc' => $lng['admin']['domain_hsts_maxage']['description'],
'type' => 'int', 'type' => 'int',
'int_min' => 0, 'int_min' => 0,
'int_max' => 94608000, // 3-years 'int_max' => 94608000, // 3-years
@@ -282,12 +282,12 @@ return array(
), ),
'hsts_sub' => array( 'hsts_sub' => array(
'visible' => ($ssl_ipsandports != '' ? true : false), 'visible' => ($ssl_ipsandports != '' ? true : false),
'label' => \Froxlor\I18N\Lang::getAll()['admin']['domain_hsts_incsub']['title'], 'label' => $lng['admin']['domain_hsts_incsub']['title'],
'desc' => \Froxlor\I18N\Lang::getAll()['admin']['domain_hsts_incsub']['description'], 'desc' => $lng['admin']['domain_hsts_incsub']['description'],
'type' => 'checkbox', 'type' => 'checkbox',
'values' => array( 'values' => array(
array( array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'], 'label' => $lng['panel']['yes'],
'value' => '1' 'value' => '1'
) )
), ),
@@ -297,12 +297,12 @@ return array(
), ),
'hsts_preload' => array( 'hsts_preload' => array(
'visible' => ($ssl_ipsandports != '' ? true : false), 'visible' => ($ssl_ipsandports != '' ? true : false),
'label' => \Froxlor\I18N\Lang::getAll()['admin']['domain_hsts_preload']['title'], 'label' => $lng['admin']['domain_hsts_preload']['title'],
'desc' => \Froxlor\I18N\Lang::getAll()['admin']['domain_hsts_preload']['description'], 'desc' => $lng['admin']['domain_hsts_preload']['description'],
'type' => 'checkbox', 'type' => 'checkbox',
'values' => array( 'values' => array(
array( array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'], 'label' => $lng['panel']['yes'],
'value' => '1' 'value' => '1'
) )
), ),
@@ -312,12 +312,12 @@ return array(
), ),
'ocsp_stapling' => array( 'ocsp_stapling' => array(
'visible' => ($ssl_ipsandports != '' ? true : false) && \Froxlor\Settings::Get('system.webserver') != 'lighttpd', 'visible' => ($ssl_ipsandports != '' ? true : false) && \Froxlor\Settings::Get('system.webserver') != 'lighttpd',
'label' => \Froxlor\I18N\Lang::getAll()['admin']['domain_ocsp_stapling']['title'], 'label' => $lng['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'] : ""), 'desc' => $lng['admin']['domain_ocsp_stapling']['description'] . (\Froxlor\Settings::Get('system.webserver') == 'nginx' ? $lng['admin']['domain_ocsp_stapling']['nginx_version_warning'] : ""),
'type' => 'checkbox', 'type' => 'checkbox',
'values' => array( 'values' => array(
array( array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'], 'label' => $lng['panel']['yes'],
'value' => '1' 'value' => '1'
) )
), ),
@@ -328,7 +328,7 @@ return array(
) )
), ),
'section_c' => array( 'section_c' => array(
'title' => \Froxlor\I18N\Lang::getAll()['admin']['phpserversettings'], 'title' => $lng['admin']['phpserversettings'],
'image' => 'icons/domain_edit.png', 'image' => 'icons/domain_edit.png',
'visible' => ((\Froxlor\User::getAll()['change_serversettings'] == '1' || \Froxlor\User::getAll()['caneditphpsettings'] == '1') ? true : false), 'visible' => ((\Froxlor\User::getAll()['change_serversettings'] == '1' || \Froxlor\User::getAll()['caneditphpsettings'] == '1') ? true : false),
'fields' => array( 'fields' => array(
@@ -337,7 +337,7 @@ return array(
'type' => 'checkbox', 'type' => 'checkbox',
'values' => array( 'values' => array(
array( array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'], 'label' => $lng['panel']['yes'],
'value' => '1' 'value' => '1'
) )
), ),
@@ -346,11 +346,11 @@ return array(
) )
), ),
'phpenabled' => array( 'phpenabled' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['phpenabled'], 'label' => $lng['admin']['phpenabled'],
'type' => 'checkbox', 'type' => 'checkbox',
'values' => array( 'values' => array(
array( array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'], 'label' => $lng['panel']['yes'],
'value' => '1' 'value' => '1'
) )
), ),
@@ -360,18 +360,18 @@ return array(
), ),
'phpsettingid' => array( 'phpsettingid' => array(
'visible' => (((int) \Froxlor\Settings::Get('system.mod_fcgid') == 1 || (int) \Froxlor\Settings::Get('phpfpm.enabled') == 1) ? true : false), 'visible' => (((int) \Froxlor\Settings::Get('system.mod_fcgid') == 1 || (int) \Froxlor\Settings::Get('phpfpm.enabled') == 1) ? true : false),
'label' => \Froxlor\I18N\Lang::getAll()['admin']['phpsettings']['title'], 'label' => $lng['admin']['phpsettings']['title'],
'type' => 'select', 'type' => 'select',
'select_var' => $phpconfigs 'select_var' => $phpconfigs
), ),
'phpsettingsforsubdomains' => array( 'phpsettingsforsubdomains' => array(
'visible' => (\Froxlor\User::getAll()['change_serversettings'] == '1' ? true : false), 'visible' => (\Froxlor\User::getAll()['change_serversettings'] == '1' ? true : false),
'label' => \Froxlor\I18N\Lang::getAll()['admin']['phpsettingsforsubdomains'], 'label' => $lng['admin']['phpsettingsforsubdomains'],
'desc' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpsettingsforsubdomains']['description'], 'desc' => $lng['serversettings']['phpsettingsforsubdomains']['description'],
'type' => 'checkbox', 'type' => 'checkbox',
'values' => array( 'values' => array(
array( array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'], 'label' => $lng['panel']['yes'],
'value' => '1' 'value' => '1'
) )
), ),
@@ -381,20 +381,20 @@ return array(
), ),
'mod_fcgid_starter' => array( 'mod_fcgid_starter' => array(
'visible' => ((int) \Froxlor\Settings::Get('system.mod_fcgid') == 1 ? true : false), 'visible' => ((int) \Froxlor\Settings::Get('system.mod_fcgid') == 1 ? true : false),
'label' => \Froxlor\I18N\Lang::getAll()['admin']['mod_fcgid_starter']['title'], 'label' => $lng['admin']['mod_fcgid_starter']['title'],
'type' => 'text', 'type' => 'text',
'value' => ((int) $result['mod_fcgid_starter'] != - 1 ? $result['mod_fcgid_starter'] : '') 'value' => ((int) $result['mod_fcgid_starter'] != - 1 ? $result['mod_fcgid_starter'] : '')
), ),
'mod_fcgid_maxrequests' => array( 'mod_fcgid_maxrequests' => array(
'visible' => ((int) \Froxlor\Settings::Get('system.mod_fcgid') == 1 ? true : false), 'visible' => ((int) \Froxlor\Settings::Get('system.mod_fcgid') == 1 ? true : false),
'label' => \Froxlor\I18N\Lang::getAll()['admin']['mod_fcgid_maxrequests']['title'], 'label' => $lng['admin']['mod_fcgid_maxrequests']['title'],
'type' => 'text', 'type' => 'text',
'value' => ((int) $result['mod_fcgid_maxrequests'] != - 1 ? $result['mod_fcgid_maxrequests'] : '') 'value' => ((int) $result['mod_fcgid_maxrequests'] != - 1 ? $result['mod_fcgid_maxrequests'] : '')
) )
) )
), ),
'section_d' => array( 'section_d' => array(
'title' => \Froxlor\I18N\Lang::getAll()['admin']['nameserversettings'], 'title' => $lng['admin']['nameserversettings'],
'image' => 'icons/domain_edit.png', 'image' => 'icons/domain_edit.png',
'visible' => (\Froxlor\Settings::Get('system.bind_enable') == '1' && \Froxlor\User::getAll()['change_serversettings'] == '1' ? true : false), 'visible' => (\Froxlor\Settings::Get('system.bind_enable') == '1' && \Froxlor\User::getAll()['change_serversettings'] == '1' ? true : false),
'fields' => array( 'fields' => array(
@@ -403,7 +403,7 @@ return array(
'type' => 'checkbox', 'type' => 'checkbox',
'values' => array( 'values' => array(
array( array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'], 'label' => $lng['panel']['yes'],
'value' => '1' 'value' => '1'
) )
), ),
@@ -413,22 +413,22 @@ return array(
), ),
'zonefile' => array( 'zonefile' => array(
'label' => 'Zonefile', 'label' => 'Zonefile',
'desc' => \Froxlor\I18N\Lang::getAll()['admin']['bindzonewarning'], 'desc' => $lng['admin']['bindzonewarning'],
'type' => 'text', 'type' => 'text',
'value' => $result['zonefile'] 'value' => $result['zonefile']
) )
) )
), ),
'section_e' => array( 'section_e' => array(
'title' => \Froxlor\I18N\Lang::getAll()['admin']['mailserversettings'], 'title' => $lng['admin']['mailserversettings'],
'image' => 'icons/domain_edit.png', 'image' => 'icons/domain_edit.png',
'fields' => array( 'fields' => array(
'isemaildomain' => array( 'isemaildomain' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['emaildomain'], 'label' => $lng['admin']['emaildomain'],
'type' => 'checkbox', 'type' => 'checkbox',
'values' => array( 'values' => array(
array( array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'], 'label' => $lng['panel']['yes'],
'value' => '1' 'value' => '1'
) )
), ),
@@ -437,11 +437,11 @@ return array(
) )
), ),
'email_only' => array( 'email_only' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['email_only'], 'label' => $lng['admin']['email_only'],
'type' => 'checkbox', 'type' => 'checkbox',
'values' => array( 'values' => array(
array( array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'], 'label' => $lng['panel']['yes'],
'value' => '1' 'value' => '1'
) )
), ),
@@ -450,7 +450,7 @@ return array(
) )
), ),
'subcanemaildomain' => array( 'subcanemaildomain' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['subdomainforemail'], 'label' => $lng['admin']['subdomainforemail'],
'type' => 'select', 'type' => 'select',
'select_var' => $subcanemaildomain 'select_var' => $subcanemaildomain
), ),
@@ -460,7 +460,7 @@ return array(
'type' => 'checkbox', 'type' => 'checkbox',
'values' => array( 'values' => array(
array( array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'], 'label' => $lng['panel']['yes'],
'value' => '1' 'value' => '1'
) )
), ),

View File

@@ -16,35 +16,35 @@
*/ */
return array( return array(
'domain_import' => array( 'domain_import' => array(
'title' => \Froxlor\I18N\Lang::getAll()['domains']['domain_import'], 'title' => $lng['domains']['domain_import'],
'image' => 'icons/domain_add.png', 'image' => 'icons/domain_add.png',
'sections' => array( 'sections' => array(
'section_a' => array( 'section_a' => array(
'title' => \Froxlor\I18N\Lang::getAll()['domains']['domain_import'], 'title' => $lng['domains']['domain_import'],
'image' => 'icons/domain_add.png', 'image' => 'icons/domain_add.png',
'fields' => array( 'fields' => array(
'customerid' => array( 'customerid' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['customer'], 'label' => $lng['admin']['customer'],
'type' => 'select', 'type' => 'select',
'select_var' => $customers, 'select_var' => $customers,
'mandatory' => true 'mandatory' => true
), ),
'separator' => array( 'separator' => array(
'label' => \Froxlor\I18N\Lang::getAll()['domains']['import_separator'], 'label' => $lng['domains']['import_separator'],
'type' => 'text', 'type' => 'text',
'mandatory' => true, 'mandatory' => true,
'size' => 5, 'size' => 5,
'value' => ';' 'value' => ';'
), ),
'offset' => array( 'offset' => array(
'label' => \Froxlor\I18N\Lang::getAll()['domains']['import_offset'], 'label' => $lng['domains']['import_offset'],
'type' => 'text', 'type' => 'text',
'mandatory' => true, 'mandatory' => true,
'size' => 10, 'size' => 10,
'value' => '0' 'value' => '0'
), ),
'file' => array( 'file' => array(
'label' => \Froxlor\I18N\Lang::getAll()['domains']['import_file'], 'label' => $lng['domains']['import_file'],
'type' => 'file', 'type' => 'file',
'mandatory' => true 'mandatory' => true
) )

View File

@@ -16,35 +16,35 @@
*/ */
return array( return array(
'ipsandports_add' => array( 'ipsandports_add' => array(
'title' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['add'], 'title' => $lng['admin']['ipsandports']['add'],
'image' => 'icons/ipsports_add.png', 'image' => 'icons/ipsports_add.png',
'sections' => array( 'sections' => array(
'section_a' => array( 'section_a' => array(
'title' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['ipandport'], 'title' => $lng['admin']['ipsandports']['ipandport'],
'image' => 'icons/ipsports_add.png', 'image' => 'icons/ipsports_add.png',
'fields' => array( 'fields' => array(
'ip' => array( 'ip' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['ip'], 'label' => $lng['admin']['ipsandports']['ip'],
'type' => 'text' 'type' => 'text'
), ),
'port' => array( 'port' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['port'], 'label' => $lng['admin']['ipsandports']['port'],
'type' => 'text', 'type' => 'text',
'size' => 5 'size' => 5
) )
) )
), ),
'section_b' => array( 'section_b' => array(
'title' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['webserverdefaultconfig'], 'title' => $lng['admin']['ipsandports']['webserverdefaultconfig'],
'image' => 'icons/ipsports_add.png', 'image' => 'icons/ipsports_add.png',
'fields' => array( 'fields' => array(
'listen_statement' => array( 'listen_statement' => array(
'visible' => ! $is_nginx, 'visible' => ! $is_nginx,
'label' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['create_listen_statement'], 'label' => $lng['admin']['ipsandports']['create_listen_statement'],
'type' => 'checkbox', 'type' => 'checkbox',
'values' => array( 'values' => array(
array( array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'], 'label' => $lng['panel']['yes'],
'value' => '1' 'value' => '1'
) )
), ),
@@ -54,11 +54,11 @@ return array(
), ),
'namevirtualhost_statement' => array( 'namevirtualhost_statement' => array(
'visible' => $is_apache && ! $is_apache24, 'visible' => $is_apache && ! $is_apache24,
'label' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['create_namevirtualhost_statement'], 'label' => $lng['admin']['ipsandports']['create_namevirtualhost_statement'],
'type' => 'checkbox', 'type' => 'checkbox',
'values' => array( 'values' => array(
array( array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'], 'label' => $lng['panel']['yes'],
'value' => '1' 'value' => '1'
) )
), ),
@@ -67,11 +67,11 @@ return array(
) )
), ),
'vhostcontainer' => array( 'vhostcontainer' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['create_vhostcontainer'], 'label' => $lng['admin']['ipsandports']['create_vhostcontainer'],
'type' => 'checkbox', 'type' => 'checkbox',
'values' => array( 'values' => array(
array( array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'], 'label' => $lng['panel']['yes'],
'value' => '1' 'value' => '1'
) )
), ),
@@ -80,25 +80,25 @@ return array(
) )
), ),
'docroot' => array( 'docroot' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['docroot']['title'], 'label' => $lng['admin']['ipsandports']['docroot']['title'],
'desc' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['docroot']['description'], 'desc' => $lng['admin']['ipsandports']['docroot']['description'],
'type' => 'text' 'type' => 'text'
), ),
'specialsettings' => array( 'specialsettings' => array(
'style' => 'align-top', 'style' => 'align-top',
'label' => \Froxlor\I18N\Lang::getAll()['admin']['ownvhostsettings'], 'label' => $lng['admin']['ownvhostsettings'],
'desc' => \Froxlor\I18N\Lang::getAll()['serversettings']['default_vhostconf']['description'], 'desc' => $lng['serversettings']['default_vhostconf']['description'],
'type' => 'textarea', 'type' => 'textarea',
'cols' => 60, 'cols' => 60,
'rows' => 12 'rows' => 12
), ),
'vhostcontainer_servername_statement' => array( 'vhostcontainer_servername_statement' => array(
'visible' => $is_apache, 'visible' => $is_apache,
'label' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['create_vhostcontainer_servername_statement'], 'label' => $lng['admin']['ipsandports']['create_vhostcontainer_servername_statement'],
'type' => 'checkbox', 'type' => 'checkbox',
'values' => array( 'values' => array(
array( array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'], 'label' => $lng['panel']['yes'],
'value' => '1' 'value' => '1'
) )
), ),
@@ -109,13 +109,13 @@ return array(
) )
), ),
'section_c' => array( 'section_c' => array(
'title' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['webserverdomainconfig'], 'title' => $lng['admin']['ipsandports']['webserverdomainconfig'],
'image' => 'icons/ipsports_add.png', 'image' => 'icons/ipsports_add.png',
'fields' => array( 'fields' => array(
'default_vhostconf_domain' => array( 'default_vhostconf_domain' => array(
'style' => 'align-top', 'style' => 'align-top',
'label' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['default_vhostconf_domain'], 'label' => $lng['admin']['ipsandports']['default_vhostconf_domain'],
'desc' => \Froxlor\I18N\Lang::getAll()['serversettings']['default_vhostconf_domain']['description'], 'desc' => $lng['serversettings']['default_vhostconf_domain']['description'],
'type' => 'textarea', 'type' => 'textarea',
'cols' => 60, 'cols' => 60,
'rows' => 12 'rows' => 12
@@ -123,36 +123,36 @@ return array(
) )
), ),
'section_d' => array( 'section_d' => array(
'title' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['webserverssldomainconfig'], 'title' => $lng['admin']['ipsandports']['webserverssldomainconfig'],
'image' => 'icons/ipsports_add.png', 'image' => 'icons/ipsports_add.png',
'visible' => (\Froxlor\Settings::Get('system.use_ssl') == 1 ? true : false), 'visible' => (\Froxlor\Settings::Get('system.use_ssl') == 1 ? true : false),
'fields' => array( 'fields' => array(
'ssl' => array( 'ssl' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['enable_ssl'], 'label' => $lng['admin']['ipsandports']['enable_ssl'],
'type' => 'checkbox', 'type' => 'checkbox',
'values' => array( 'values' => array(
array( array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'], 'label' => $lng['panel']['yes'],
'value' => '1' 'value' => '1'
) )
), ),
'value' => array() 'value' => array()
), ),
'ssl_cert_file' => array( 'ssl_cert_file' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['ssl_cert_file'], 'label' => $lng['admin']['ipsandports']['ssl_cert_file'],
'type' => 'text' 'type' => 'text'
), ),
'ssl_key_file' => array( 'ssl_key_file' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['ssl_key_file'], 'label' => $lng['admin']['ipsandports']['ssl_key_file'],
'type' => 'text' 'type' => 'text'
), ),
'ssl_ca_file' => array( 'ssl_ca_file' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['ssl_ca_file'], 'label' => $lng['admin']['ipsandports']['ssl_ca_file'],
'type' => 'text' 'type' => 'text'
), ),
'ssl_cert_chainfile' => array( 'ssl_cert_chainfile' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['ssl_cert_chainfile']['title'], 'label' => $lng['admin']['ipsandports']['ssl_cert_chainfile']['title'],
'desc' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['ssl_cert_chainfile']['description'], 'desc' => $lng['admin']['ipsandports']['ssl_cert_chainfile']['description'],
'type' => 'text' 'type' => 'text'
) )
) )

View File

@@ -16,20 +16,20 @@
*/ */
return array( return array(
'ipsandports_edit' => array( 'ipsandports_edit' => array(
'title' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['edit'], 'title' => $lng['admin']['ipsandports']['edit'],
'image' => 'icons/ipsports_edit.png', 'image' => 'icons/ipsports_edit.png',
'sections' => array( 'sections' => array(
'section_a' => array( 'section_a' => array(
'title' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['ipandport'], 'title' => $lng['admin']['ipsandports']['ipandport'],
'image' => 'icons/ipsports_add.png', 'image' => 'icons/ipsports_add.png',
'fields' => array( 'fields' => array(
'ip' => array( 'ip' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['ip'], 'label' => $lng['admin']['ipsandports']['ip'],
'type' => 'text', 'type' => 'text',
'value' => $result['ip'] 'value' => $result['ip']
), ),
'port' => array( 'port' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['port'], 'label' => $lng['admin']['ipsandports']['port'],
'type' => 'text', 'type' => 'text',
'value' => $result['port'], 'value' => $result['port'],
'size' => 5 'size' => 5
@@ -37,16 +37,16 @@ return array(
) )
), ),
'section_b' => array( 'section_b' => array(
'title' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['webserverdefaultconfig'], 'title' => $lng['admin']['ipsandports']['webserverdefaultconfig'],
'image' => 'icons/ipsports_edit.png', 'image' => 'icons/ipsports_edit.png',
'fields' => array( 'fields' => array(
'listen_statement' => array( 'listen_statement' => array(
'visible' => ! $is_nginx, 'visible' => ! $is_nginx,
'label' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['create_listen_statement'], 'label' => $lng['admin']['ipsandports']['create_listen_statement'],
'type' => 'checkbox', 'type' => 'checkbox',
'values' => array( 'values' => array(
array( array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'], 'label' => $lng['panel']['yes'],
'value' => '1' 'value' => '1'
) )
), ),
@@ -56,11 +56,11 @@ return array(
), ),
'namevirtualhost_statement' => array( 'namevirtualhost_statement' => array(
'visible' => $is_apache && ! $is_apache24, 'visible' => $is_apache && ! $is_apache24,
'label' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['create_namevirtualhost_statement'], 'label' => $lng['admin']['ipsandports']['create_namevirtualhost_statement'],
'type' => 'checkbox', 'type' => 'checkbox',
'values' => array( 'values' => array(
array( array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'], 'label' => $lng['panel']['yes'],
'value' => '1' 'value' => '1'
) )
), ),
@@ -69,11 +69,11 @@ return array(
) )
), ),
'vhostcontainer' => array( 'vhostcontainer' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['create_vhostcontainer'], 'label' => $lng['admin']['ipsandports']['create_vhostcontainer'],
'type' => 'checkbox', 'type' => 'checkbox',
'values' => array( 'values' => array(
array( array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'], 'label' => $lng['panel']['yes'],
'value' => '1' 'value' => '1'
) )
), ),
@@ -82,15 +82,15 @@ return array(
) )
), ),
'docroot' => array( 'docroot' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['docroot']['title'], 'label' => $lng['admin']['ipsandports']['docroot']['title'],
'desc' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['docroot']['description'], 'desc' => $lng['admin']['ipsandports']['docroot']['description'],
'type' => 'text', 'type' => 'text',
'value' => $result['docroot'] 'value' => $result['docroot']
), ),
'specialsettings' => array( 'specialsettings' => array(
'style' => 'align-top', 'style' => 'align-top',
'label' => \Froxlor\I18N\Lang::getAll()['admin']['ownvhostsettings'], 'label' => $lng['admin']['ownvhostsettings'],
'desc' => \Froxlor\I18N\Lang::getAll()['serversettings']['default_vhostconf']['description'], 'desc' => $lng['serversettings']['default_vhostconf']['description'],
'type' => 'textarea', 'type' => 'textarea',
'cols' => 60, 'cols' => 60,
'rows' => 12, 'rows' => 12,
@@ -98,11 +98,11 @@ return array(
), ),
'vhostcontainer_servername_statement' => array( 'vhostcontainer_servername_statement' => array(
'visible' => $is_apache, 'visible' => $is_apache,
'label' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['create_vhostcontainer_servername_statement'], 'label' => $lng['admin']['ipsandports']['create_vhostcontainer_servername_statement'],
'type' => 'checkbox', 'type' => 'checkbox',
'values' => array( 'values' => array(
array( array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'], 'label' => $lng['panel']['yes'],
'value' => '1' 'value' => '1'
) )
), ),
@@ -113,13 +113,13 @@ return array(
) )
), ),
'section_c' => array( 'section_c' => array(
'title' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['webserverdomainconfig'], 'title' => $lng['admin']['ipsandports']['webserverdomainconfig'],
'image' => 'icons/ipsports_edit.png', 'image' => 'icons/ipsports_edit.png',
'fields' => array( 'fields' => array(
'default_vhostconf_domain' => array( 'default_vhostconf_domain' => array(
'style' => 'align-top', 'style' => 'align-top',
'label' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['default_vhostconf_domain'], 'label' => $lng['admin']['ipsandports']['default_vhostconf_domain'],
'desc' => \Froxlor\I18N\Lang::getAll()['serversettings']['default_vhostconf_domain']['description'], 'desc' => $lng['serversettings']['default_vhostconf_domain']['description'],
'type' => 'textarea', 'type' => 'textarea',
'cols' => 60, 'cols' => 60,
'rows' => 12, 'rows' => 12,
@@ -128,16 +128,16 @@ return array(
) )
), ),
'section_d' => array( 'section_d' => array(
'title' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['webserverssldomainconfig'], 'title' => $lng['admin']['ipsandports']['webserverssldomainconfig'],
'image' => 'icons/ipsports_edit.png', 'image' => 'icons/ipsports_edit.png',
'visible' => (\Froxlor\Settings::Get('system.use_ssl') == 1 ? true : false), 'visible' => (\Froxlor\Settings::Get('system.use_ssl') == 1 ? true : false),
'fields' => array( 'fields' => array(
'ssl' => array( 'ssl' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['enable_ssl'], 'label' => $lng['admin']['ipsandports']['enable_ssl'],
'type' => 'checkbox', 'type' => 'checkbox',
'values' => array( 'values' => array(
array( array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'], 'label' => $lng['panel']['yes'],
'value' => '1' 'value' => '1'
) )
), ),
@@ -146,23 +146,23 @@ return array(
) )
), ),
'ssl_cert_file' => array( 'ssl_cert_file' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['ssl_cert_file'], 'label' => $lng['admin']['ipsandports']['ssl_cert_file'],
'type' => 'text', 'type' => 'text',
'value' => $result['ssl_cert_file'] 'value' => $result['ssl_cert_file']
), ),
'ssl_key_file' => array( 'ssl_key_file' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['ssl_key_file'], 'label' => $lng['admin']['ipsandports']['ssl_key_file'],
'type' => 'text', 'type' => 'text',
'value' => $result['ssl_key_file'] 'value' => $result['ssl_key_file']
), ),
'ssl_ca_file' => array( 'ssl_ca_file' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['ssl_ca_file'], 'label' => $lng['admin']['ipsandports']['ssl_ca_file'],
'type' => 'text', 'type' => 'text',
'value' => $result['ssl_ca_file'] 'value' => $result['ssl_ca_file']
), ),
'ssl_cert_chainfile' => array( 'ssl_cert_chainfile' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['ssl_cert_chainfile']['title'], 'label' => $lng['admin']['ipsandports']['ssl_cert_chainfile']['title'],
'desc' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['ssl_cert_chainfile']['description'], 'desc' => $lng['admin']['ipsandports']['ssl_cert_chainfile']['description'],
'type' => 'text', 'type' => 'text',
'value' => $result['ssl_cert_chainfile'] 'value' => $result['ssl_cert_chainfile']
) )

View File

@@ -16,74 +16,74 @@
*/ */
return array( return array(
'fpmconfig_add' => array( 'fpmconfig_add' => array(
'title' => \Froxlor\I18N\Lang::getAll()['admin']['phpsettings']['addsettings'], 'title' => $lng['admin']['phpsettings']['addsettings'],
'image' => 'icons/phpsettings_add.png', 'image' => 'icons/phpsettings_add.png',
'sections' => array( 'sections' => array(
'section_a' => array( 'section_a' => array(
'title' => \Froxlor\I18N\Lang::getAll()['admin']['phpsettings']['addsettings'], 'title' => $lng['admin']['phpsettings']['addsettings'],
'image' => 'icons/phpsettings_add.png', 'image' => 'icons/phpsettings_add.png',
'fields' => array( 'fields' => array(
'description' => array( 'description' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['phpsettings']['description'], 'label' => $lng['admin']['phpsettings']['description'],
'type' => 'text', 'type' => 'text',
'maxlength' => 50 'maxlength' => 50
), ),
'reload_cmd' => array( 'reload_cmd' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['reload'], 'label' => $lng['serversettings']['phpfpm_settings']['reload'],
'type' => 'text', 'type' => 'text',
'maxlength' => 255, 'maxlength' => 255,
'value' => 'service php7.0-fpm restart' 'value' => 'service php7.0-fpm restart'
), ),
'config_dir' => array( 'config_dir' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['configdir'], 'label' => $lng['serversettings']['phpfpm_settings']['configdir'],
'type' => 'text', 'type' => 'text',
'maxlength' => 255, 'maxlength' => 255,
'value' => '/etc/php/7.0/fpm/pool.d/' 'value' => '/etc/php/7.0/fpm/pool.d/'
), ),
'pm' => array( 'pm' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['pm'], 'label' => $lng['serversettings']['phpfpm_settings']['pm'],
'type' => 'select', 'type' => 'select',
'select_var' => $pm_select 'select_var' => $pm_select
), ),
'max_children' => array( 'max_children' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['max_children']['title'], 'label' => $lng['serversettings']['phpfpm_settings']['max_children']['title'],
'desc' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['max_children']['description'], 'desc' => $lng['serversettings']['phpfpm_settings']['max_children']['description'],
'type' => 'int', 'type' => 'int',
'value' => 1 'value' => 1
), ),
'start_servers' => array( 'start_servers' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['start_servers']['title'], 'label' => $lng['serversettings']['phpfpm_settings']['start_servers']['title'],
'desc' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['start_servers']['description'], 'desc' => $lng['serversettings']['phpfpm_settings']['start_servers']['description'],
'type' => 'int', 'type' => 'int',
'value' => 20 'value' => 20
), ),
'min_spare_servers' => array( 'min_spare_servers' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['min_spare_servers']['title'], 'label' => $lng['serversettings']['phpfpm_settings']['min_spare_servers']['title'],
'desc' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['min_spare_servers']['description'], 'desc' => $lng['serversettings']['phpfpm_settings']['min_spare_servers']['description'],
'type' => 'int', 'type' => 'int',
'value' => 5 'value' => 5
), ),
'max_spare_servers' => array( 'max_spare_servers' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['max_spare_servers']['title'], 'label' => $lng['serversettings']['phpfpm_settings']['max_spare_servers']['title'],
'desc' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['max_spare_servers']['description'], 'desc' => $lng['serversettings']['phpfpm_settings']['max_spare_servers']['description'],
'type' => 'int', 'type' => 'int',
'value' => 35 'value' => 35
), ),
'max_requests' => array( 'max_requests' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['max_requests']['title'], 'label' => $lng['serversettings']['phpfpm_settings']['max_requests']['title'],
'desc' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['max_requests']['description'], 'desc' => $lng['serversettings']['phpfpm_settings']['max_requests']['description'],
'type' => 'int', 'type' => 'int',
'value' => 0 'value' => 0
), ),
'idle_timeout' => array( 'idle_timeout' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['idle_timeout']['title'], 'label' => $lng['serversettings']['phpfpm_settings']['idle_timeout']['title'],
'desc' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['idle_timeout']['description'], 'desc' => $lng['serversettings']['phpfpm_settings']['idle_timeout']['description'],
'type' => 'int', 'type' => 'int',
'value' => 30 'value' => 30
), ),
'limit_extensions' => array( 'limit_extensions' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['limit_extensions']['title'], 'label' => $lng['serversettings']['phpfpm_settings']['limit_extensions']['title'],
'desc' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['limit_extensions']['description'], 'desc' => $lng['serversettings']['phpfpm_settings']['limit_extensions']['description'],
'type' => 'text', 'type' => 'text',
'value' => '.php' 'value' => '.php'
) )

View File

@@ -16,75 +16,75 @@
*/ */
return array( return array(
'fpmconfig_edit' => array( 'fpmconfig_edit' => array(
'title' => \Froxlor\I18N\Lang::getAll()['admin']['phpsettings']['editsettings'], 'title' => $lng['admin']['phpsettings']['editsettings'],
'image' => 'icons/phpsettings_edit.png', 'image' => 'icons/phpsettings_edit.png',
'sections' => array( 'sections' => array(
'section_a' => array( 'section_a' => array(
'title' => \Froxlor\I18N\Lang::getAll()['admin']['phpsettings']['editsettings'], 'title' => $lng['admin']['phpsettings']['editsettings'],
'image' => 'icons/phpsettings_edit.png', 'image' => 'icons/phpsettings_edit.png',
'fields' => array( 'fields' => array(
'description' => array( 'description' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['phpsettings']['description'], 'label' => $lng['admin']['phpsettings']['description'],
'type' => 'text', 'type' => 'text',
'maxlength' => 50, 'maxlength' => 50,
'value' => $result['description'] 'value' => $result['description']
), ),
'reload_cmd' => array( 'reload_cmd' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['reload'], 'label' => $lng['serversettings']['phpfpm_settings']['reload'],
'type' => 'text', 'type' => 'text',
'maxlength' => 255, 'maxlength' => 255,
'value' => $result['reload_cmd'] 'value' => $result['reload_cmd']
), ),
'config_dir' => array( 'config_dir' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['configdir'], 'label' => $lng['serversettings']['phpfpm_settings']['configdir'],
'type' => 'text', 'type' => 'text',
'maxlength' => 255, 'maxlength' => 255,
'value' => $result['config_dir'] 'value' => $result['config_dir']
), ),
'pm' => array( 'pm' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['pm'], 'label' => $lng['serversettings']['phpfpm_settings']['pm'],
'type' => 'select', 'type' => 'select',
'select_var' => $pm_select 'select_var' => $pm_select
), ),
'max_children' => array( 'max_children' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['max_children']['title'], 'label' => $lng['serversettings']['phpfpm_settings']['max_children']['title'],
'desc' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['max_children']['description'], 'desc' => $lng['serversettings']['phpfpm_settings']['max_children']['description'],
'type' => 'int', 'type' => 'int',
'value' => $result['max_children'] 'value' => $result['max_children']
), ),
'start_servers' => array( 'start_servers' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['start_servers']['title'], 'label' => $lng['serversettings']['phpfpm_settings']['start_servers']['title'],
'desc' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['start_servers']['description'], 'desc' => $lng['serversettings']['phpfpm_settings']['start_servers']['description'],
'type' => 'int', 'type' => 'int',
'value' => $result['start_servers'] 'value' => $result['start_servers']
), ),
'min_spare_servers' => array( 'min_spare_servers' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['min_spare_servers']['title'], 'label' => $lng['serversettings']['phpfpm_settings']['min_spare_servers']['title'],
'desc' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['min_spare_servers']['description'], 'desc' => $lng['serversettings']['phpfpm_settings']['min_spare_servers']['description'],
'type' => 'int', 'type' => 'int',
'value' => $result['min_spare_servers'] 'value' => $result['min_spare_servers']
), ),
'max_spare_servers' => array( 'max_spare_servers' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['max_spare_servers']['title'], 'label' => $lng['serversettings']['phpfpm_settings']['max_spare_servers']['title'],
'desc' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['max_spare_servers']['description'], 'desc' => $lng['serversettings']['phpfpm_settings']['max_spare_servers']['description'],
'type' => 'int', 'type' => 'int',
'value' => $result['max_spare_servers'] 'value' => $result['max_spare_servers']
), ),
'max_requests' => array( 'max_requests' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['max_requests']['title'], 'label' => $lng['serversettings']['phpfpm_settings']['max_requests']['title'],
'desc' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['max_requests']['description'], 'desc' => $lng['serversettings']['phpfpm_settings']['max_requests']['description'],
'type' => 'int', 'type' => 'int',
'value' => $result['max_requests'] 'value' => $result['max_requests']
), ),
'idle_timeout' => array( 'idle_timeout' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['idle_timeout']['title'], 'label' => $lng['serversettings']['phpfpm_settings']['idle_timeout']['title'],
'desc' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['idle_timeout']['description'], 'desc' => $lng['serversettings']['phpfpm_settings']['idle_timeout']['description'],
'type' => 'int', 'type' => 'int',
'value' => $result['idle_timeout'] 'value' => $result['idle_timeout']
), ),
'limit_extensions' => array( 'limit_extensions' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['limit_extensions']['title'], 'label' => $lng['serversettings']['phpfpm_settings']['limit_extensions']['title'],
'desc' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['limit_extensions']['description'], 'desc' => $lng['serversettings']['phpfpm_settings']['limit_extensions']['description'],
'type' => 'text', 'type' => 'text',
'value' => $result['limit_extensions'] 'value' => $result['limit_extensions']
) )

View File

@@ -16,63 +16,63 @@
*/ */
return array( return array(
'phpconfig_add' => array( 'phpconfig_add' => array(
'title' => \Froxlor\I18N\Lang::getAll()['admin']['phpsettings']['addsettings'], 'title' => $lng['admin']['phpsettings']['addsettings'],
'image' => 'icons/phpsettings_add.png', 'image' => 'icons/phpsettings_add.png',
'sections' => array( 'sections' => array(
'section_a' => array( 'section_a' => array(
'title' => \Froxlor\I18N\Lang::getAll()['admin']['phpsettings']['addsettings'], 'title' => $lng['admin']['phpsettings']['addsettings'],
'image' => 'icons/phpsettings_add.png', 'image' => 'icons/phpsettings_add.png',
'fields' => array( 'fields' => array(
'description' => array( 'description' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['phpsettings']['description'], 'label' => $lng['admin']['phpsettings']['description'],
'type' => 'text', 'type' => 'text',
'maxlength' => 50 'maxlength' => 50
), ),
'binary' => array( 'binary' => array(
'visible' => (\Froxlor\Settings::Get('system.mod_fcgid') == 1 ? true : false), 'visible' => (\Froxlor\Settings::Get('system.mod_fcgid') == 1 ? true : false),
'label' => \Froxlor\I18N\Lang::getAll()['admin']['phpsettings']['binary'], 'label' => $lng['admin']['phpsettings']['binary'],
'type' => 'text', 'type' => 'text',
'maxlength' => 255, 'maxlength' => 255,
'value' => '/usr/bin/php-cgi' 'value' => '/usr/bin/php-cgi'
), ),
'fpmconfig' => array( 'fpmconfig' => array(
'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false), 'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false),
'label' => \Froxlor\I18N\Lang::getAll()['admin']['phpsettings']['fpmdesc'], 'label' => $lng['admin']['phpsettings']['fpmdesc'],
'type' => 'select', 'type' => 'select',
'select_var' => $fpmconfigs 'select_var' => $fpmconfigs
), ),
'file_extensions' => array( 'file_extensions' => array(
'visible' => (\Froxlor\Settings::Get('system.mod_fcgid') == 1 ? true : false), 'visible' => (\Froxlor\Settings::Get('system.mod_fcgid') == 1 ? true : false),
'label' => \Froxlor\I18N\Lang::getAll()['admin']['phpsettings']['file_extensions'], 'label' => $lng['admin']['phpsettings']['file_extensions'],
'desc' => \Froxlor\I18N\Lang::getAll()['admin']['phpsettings']['file_extensions_note'], 'desc' => $lng['admin']['phpsettings']['file_extensions_note'],
'type' => 'text', 'type' => 'text',
'maxlength' => 255, 'maxlength' => 255,
'value' => 'php' 'value' => 'php'
), ),
'mod_fcgid_starter' => array( 'mod_fcgid_starter' => array(
'visible' => (\Froxlor\Settings::Get('system.mod_fcgid') == 1 ? true : false), 'visible' => (\Froxlor\Settings::Get('system.mod_fcgid') == 1 ? true : false),
'label' => \Froxlor\I18N\Lang::getAll()['admin']['mod_fcgid_starter']['title'], 'label' => $lng['admin']['mod_fcgid_starter']['title'],
'type' => 'text' 'type' => 'text'
), ),
'mod_fcgid_maxrequests' => array( 'mod_fcgid_maxrequests' => array(
'visible' => (\Froxlor\Settings::Get('system.mod_fcgid') == 1 ? true : false), 'visible' => (\Froxlor\Settings::Get('system.mod_fcgid') == 1 ? true : false),
'label' => \Froxlor\I18N\Lang::getAll()['admin']['mod_fcgid_maxrequests']['title'], 'label' => $lng['admin']['mod_fcgid_maxrequests']['title'],
'type' => 'text' 'type' => 'text'
), ),
'mod_fcgid_umask' => array( 'mod_fcgid_umask' => array(
'visible' => (\Froxlor\Settings::Get('system.mod_fcgid') == 1 ? true : false), 'visible' => (\Froxlor\Settings::Get('system.mod_fcgid') == 1 ? true : false),
'label' => \Froxlor\I18N\Lang::getAll()['admin']['mod_fcgid_umask']['title'], 'label' => $lng['admin']['mod_fcgid_umask']['title'],
'type' => 'text', 'type' => 'text',
'maxlength' => 3, 'maxlength' => 3,
'value' => '022' 'value' => '022'
), ),
'phpfpm_enable_slowlog' => array( 'phpfpm_enable_slowlog' => array(
'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false), 'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false),
'label' => \Froxlor\I18N\Lang::getAll()['admin']['phpsettings']['enable_slowlog'], 'label' => $lng['admin']['phpsettings']['enable_slowlog'],
'type' => 'checkbox', 'type' => 'checkbox',
'values' => array( 'values' => array(
array( array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'], 'label' => $lng['panel']['yes'],
'value' => '1' 'value' => '1'
) )
), ),
@@ -80,25 +80,25 @@ return array(
), ),
'phpfpm_reqtermtimeout' => array( 'phpfpm_reqtermtimeout' => array(
'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false), 'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false),
'label' => \Froxlor\I18N\Lang::getAll()['admin']['phpsettings']['request_terminate_timeout'], 'label' => $lng['admin']['phpsettings']['request_terminate_timeout'],
'type' => 'text', 'type' => 'text',
'maxlength' => 10, 'maxlength' => 10,
'value' => '60s' 'value' => '60s'
), ),
'phpfpm_reqslowtimeout' => array( 'phpfpm_reqslowtimeout' => array(
'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false), 'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false),
'label' => \Froxlor\I18N\Lang::getAll()['admin']['phpsettings']['request_slowlog_timeout'], 'label' => $lng['admin']['phpsettings']['request_slowlog_timeout'],
'type' => 'text', 'type' => 'text',
'maxlength' => 10, 'maxlength' => 10,
'value' => '5s' 'value' => '5s'
), ),
'phpfpm_pass_authorizationheader' => array( 'phpfpm_pass_authorizationheader' => array(
'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false), 'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false),
'label' => \Froxlor\I18N\Lang::getAll()['admin']['phpsettings']['pass_authorizationheader'], 'label' => $lng['admin']['phpsettings']['pass_authorizationheader'],
'type' => 'checkbox', 'type' => 'checkbox',
'values' => array( 'values' => array(
array( array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'], 'label' => $lng['panel']['yes'],
'value' => '1' 'value' => '1'
) )
), ),
@@ -106,11 +106,11 @@ return array(
), ),
'override_fpmconfig' => array( 'override_fpmconfig' => array(
'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false), 'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false),
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['override_fpmconfig'], 'label' => $lng['serversettings']['phpfpm_settings']['override_fpmconfig'],
'type' => 'checkbox', 'type' => 'checkbox',
'values' => array( 'values' => array(
array( array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'], 'label' => $lng['panel']['yes'],
'value' => '1' 'value' => '1'
) )
), ),
@@ -118,63 +118,63 @@ return array(
), ),
'pm' => array( 'pm' => array(
'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false), 'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false),
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['pm'], 'label' => $lng['serversettings']['phpfpm_settings']['pm'],
'desc' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['override_fpmconfig_addinfo'], 'desc' => $lng['serversettings']['phpfpm_settings']['override_fpmconfig_addinfo'],
'type' => 'select', 'type' => 'select',
'select_var' => $pm_select 'select_var' => $pm_select
), ),
'max_children' => array( 'max_children' => array(
'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false), 'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false),
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['max_children']['title'], 'label' => $lng['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'], 'desc' => $lng['serversettings']['phpfpm_settings']['max_children']['description'] . $lng['serversettings']['phpfpm_settings']['override_fpmconfig_addinfo'],
'type' => 'int', 'type' => 'int',
'value' => 1 'value' => 1
), ),
'start_servers' => array( 'start_servers' => array(
'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false), 'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false),
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['start_servers']['title'], 'label' => $lng['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'], 'desc' => $lng['serversettings']['phpfpm_settings']['start_servers']['description'] . $lng['serversettings']['phpfpm_settings']['override_fpmconfig_addinfo'],
'type' => 'int', 'type' => 'int',
'value' => 20 'value' => 20
), ),
'min_spare_servers' => array( 'min_spare_servers' => array(
'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false), 'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false),
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['min_spare_servers']['title'], 'label' => $lng['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'], 'desc' => $lng['serversettings']['phpfpm_settings']['min_spare_servers']['description'] . $lng['serversettings']['phpfpm_settings']['override_fpmconfig_addinfo'],
'type' => 'int', 'type' => 'int',
'value' => 5 'value' => 5
), ),
'max_spare_servers' => array( 'max_spare_servers' => array(
'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false), 'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false),
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['max_spare_servers']['title'], 'label' => $lng['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'], 'desc' => $lng['serversettings']['phpfpm_settings']['max_spare_servers']['description'] . $lng['serversettings']['phpfpm_settings']['override_fpmconfig_addinfo'],
'type' => 'int', 'type' => 'int',
'value' => 35 'value' => 35
), ),
'max_requests' => array( 'max_requests' => array(
'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false), 'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false),
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['max_requests']['title'], 'label' => $lng['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'], 'desc' => $lng['serversettings']['phpfpm_settings']['max_requests']['description'] . $lng['serversettings']['phpfpm_settings']['override_fpmconfig_addinfo'],
'type' => 'int', 'type' => 'int',
'value' => 0 'value' => 0
), ),
'idle_timeout' => array( 'idle_timeout' => array(
'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false), 'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false),
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['idle_timeout']['title'], 'label' => $lng['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'], 'desc' => $lng['serversettings']['phpfpm_settings']['idle_timeout']['description'] . $lng['serversettings']['phpfpm_settings']['override_fpmconfig_addinfo'],
'type' => 'int', 'type' => 'int',
'value' => 30 'value' => 30
), ),
'limit_extensions' => array( 'limit_extensions' => array(
'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false), 'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false),
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['limit_extensions']['title'], 'label' => $lng['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'], 'desc' => $lng['serversettings']['phpfpm_settings']['limit_extensions']['description'] . $lng['serversettings']['phpfpm_settings']['override_fpmconfig_addinfo'],
'type' => 'text', 'type' => 'text',
'value' => '.php' 'value' => '.php'
), ),
'phpsettings' => array( 'phpsettings' => array(
'style' => 'align-top', 'style' => 'align-top',
'label' => \Froxlor\I18N\Lang::getAll()['admin']['phpsettings']['phpinisettings'], 'label' => $lng['admin']['phpsettings']['phpinisettings'],
'type' => 'textarea', 'type' => 'textarea',
'cols' => 80, 'cols' => 80,
'rows' => 20, 'rows' => 20,

View File

@@ -16,66 +16,66 @@
*/ */
return array( return array(
'phpconfig_edit' => array( 'phpconfig_edit' => array(
'title' => \Froxlor\I18N\Lang::getAll()['admin']['phpsettings']['editsettings'], 'title' => $lng['admin']['phpsettings']['editsettings'],
'image' => 'icons/phpsettings_edit.png', 'image' => 'icons/phpsettings_edit.png',
'sections' => array( 'sections' => array(
'section_a' => array( 'section_a' => array(
'title' => \Froxlor\I18N\Lang::getAll()['admin']['phpsettings']['editsettings'], 'title' => $lng['admin']['phpsettings']['editsettings'],
'image' => 'icons/phpsettings_edit.png', 'image' => 'icons/phpsettings_edit.png',
'fields' => array( 'fields' => array(
'description' => array( 'description' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['phpsettings']['description'], 'label' => $lng['admin']['phpsettings']['description'],
'type' => 'text', 'type' => 'text',
'maxlength' => 50, 'maxlength' => 50,
'value' => $result['description'] 'value' => $result['description']
), ),
'binary' => array( 'binary' => array(
'visible' => (\Froxlor\Settings::Get('system.mod_fcgid') == 1 ? true : false), 'visible' => (\Froxlor\Settings::Get('system.mod_fcgid') == 1 ? true : false),
'label' => \Froxlor\I18N\Lang::getAll()['admin']['phpsettings']['binary'], 'label' => $lng['admin']['phpsettings']['binary'],
'type' => 'text', 'type' => 'text',
'maxlength' => 255, 'maxlength' => 255,
'value' => $result['binary'] 'value' => $result['binary']
), ),
'fpmconfig' => array( 'fpmconfig' => array(
'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false), 'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false),
'label' => \Froxlor\I18N\Lang::getAll()['admin']['phpsettings']['fpmdesc'], 'label' => $lng['admin']['phpsettings']['fpmdesc'],
'type' => 'select', 'type' => 'select',
'select_var' => $fpmconfigs 'select_var' => $fpmconfigs
), ),
'file_extensions' => array( 'file_extensions' => array(
'visible' => (\Froxlor\Settings::Get('system.mod_fcgid') == 1 ? true : false), 'visible' => (\Froxlor\Settings::Get('system.mod_fcgid') == 1 ? true : false),
'label' => \Froxlor\I18N\Lang::getAll()['admin']['phpsettings']['file_extensions'], 'label' => $lng['admin']['phpsettings']['file_extensions'],
'desc' => \Froxlor\I18N\Lang::getAll()['admin']['phpsettings']['file_extensions_note'], 'desc' => $lng['admin']['phpsettings']['file_extensions_note'],
'type' => 'text', 'type' => 'text',
'maxlength' => 255, 'maxlength' => 255,
'value' => $result['file_extensions'] 'value' => $result['file_extensions']
), ),
'mod_fcgid_starter' => array( 'mod_fcgid_starter' => array(
'visible' => (\Froxlor\Settings::Get('system.mod_fcgid') == 1 ? true : false), 'visible' => (\Froxlor\Settings::Get('system.mod_fcgid') == 1 ? true : false),
'label' => \Froxlor\I18N\Lang::getAll()['admin']['mod_fcgid_starter']['title'], 'label' => $lng['admin']['mod_fcgid_starter']['title'],
'type' => 'text', 'type' => 'text',
'value' => ((int) $result['mod_fcgid_starter'] != - 1 ? $result['mod_fcgid_starter'] : '') 'value' => ((int) $result['mod_fcgid_starter'] != - 1 ? $result['mod_fcgid_starter'] : '')
), ),
'mod_fcgid_maxrequests' => array( 'mod_fcgid_maxrequests' => array(
'visible' => (\Froxlor\Settings::Get('system.mod_fcgid') == 1 ? true : false), 'visible' => (\Froxlor\Settings::Get('system.mod_fcgid') == 1 ? true : false),
'label' => \Froxlor\I18N\Lang::getAll()['admin']['mod_fcgid_maxrequests']['title'], 'label' => $lng['admin']['mod_fcgid_maxrequests']['title'],
'type' => 'text', 'type' => 'text',
'value' => ((int) $result['mod_fcgid_maxrequests'] != - 1 ? $result['mod_fcgid_maxrequests'] : '') 'value' => ((int) $result['mod_fcgid_maxrequests'] != - 1 ? $result['mod_fcgid_maxrequests'] : '')
), ),
'mod_fcgid_umask' => array( 'mod_fcgid_umask' => array(
'visible' => (\Froxlor\Settings::Get('system.mod_fcgid') == 1 ? true : false), 'visible' => (\Froxlor\Settings::Get('system.mod_fcgid') == 1 ? true : false),
'label' => \Froxlor\I18N\Lang::getAll()['admin']['mod_fcgid_umask']['title'], 'label' => $lng['admin']['mod_fcgid_umask']['title'],
'type' => 'text', 'type' => 'text',
'maxlength' => 3, 'maxlength' => 3,
'value' => $result['mod_fcgid_umask'] 'value' => $result['mod_fcgid_umask']
), ),
'phpfpm_enable_slowlog' => array( 'phpfpm_enable_slowlog' => array(
'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false), 'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false),
'label' => \Froxlor\I18N\Lang::getAll()['admin']['phpsettings']['enable_slowlog'], 'label' => $lng['admin']['phpsettings']['enable_slowlog'],
'type' => 'checkbox', 'type' => 'checkbox',
'values' => array( 'values' => array(
array( array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'], 'label' => $lng['panel']['yes'],
'value' => '1' 'value' => '1'
) )
), ),
@@ -85,25 +85,25 @@ return array(
), ),
'phpfpm_reqtermtimeout' => array( 'phpfpm_reqtermtimeout' => array(
'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false), 'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false),
'label' => \Froxlor\I18N\Lang::getAll()['admin']['phpsettings']['request_terminate_timeout'], 'label' => $lng['admin']['phpsettings']['request_terminate_timeout'],
'type' => 'text', 'type' => 'text',
'maxlength' => 10, 'maxlength' => 10,
'value' => $result['fpm_reqterm'] 'value' => $result['fpm_reqterm']
), ),
'phpfpm_reqslowtimeout' => array( 'phpfpm_reqslowtimeout' => array(
'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false), 'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false),
'label' => \Froxlor\I18N\Lang::getAll()['admin']['phpsettings']['request_slowlog_timeout'], 'label' => $lng['admin']['phpsettings']['request_slowlog_timeout'],
'type' => 'text', 'type' => 'text',
'maxlength' => 10, 'maxlength' => 10,
'value' => $result['fpm_reqslow'] 'value' => $result['fpm_reqslow']
), ),
'phpfpm_pass_authorizationheader' => array( 'phpfpm_pass_authorizationheader' => array(
'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false), 'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false),
'label' => \Froxlor\I18N\Lang::getAll()['admin']['phpsettings']['pass_authorizationheader'], 'label' => $lng['admin']['phpsettings']['pass_authorizationheader'],
'type' => 'checkbox', 'type' => 'checkbox',
'values' => array( 'values' => array(
array( array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'], 'label' => $lng['panel']['yes'],
'value' => '1' 'value' => '1'
) )
), ),
@@ -112,11 +112,11 @@ return array(
) )
), ),
'override_fpmconfig' => array( 'override_fpmconfig' => array(
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['override_fpmconfig'], 'label' => $lng['serversettings']['phpfpm_settings']['override_fpmconfig'],
'type' => 'checkbox', 'type' => 'checkbox',
'values' => array( 'values' => array(
array( array(
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'], 'label' => $lng['panel']['yes'],
'value' => '1' 'value' => '1'
) )
), ),
@@ -126,63 +126,63 @@ return array(
), ),
'pm' => array( 'pm' => array(
'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false), 'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false),
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['pm'], 'label' => $lng['serversettings']['phpfpm_settings']['pm'],
'desc' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['override_fpmconfig_addinfo'], 'desc' => $lng['serversettings']['phpfpm_settings']['override_fpmconfig_addinfo'],
'type' => 'select', 'type' => 'select',
'select_var' => $pm_select 'select_var' => $pm_select
), ),
'max_children' => array( 'max_children' => array(
'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false), 'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false),
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['max_children']['title'], 'label' => $lng['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'], 'desc' => $lng['serversettings']['phpfpm_settings']['max_children']['description'] . $lng['serversettings']['phpfpm_settings']['override_fpmconfig_addinfo'],
'type' => 'int', 'type' => 'int',
'value' => $result['max_children'] 'value' => $result['max_children']
), ),
'start_servers' => array( 'start_servers' => array(
'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false), 'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false),
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['start_servers']['title'], 'label' => $lng['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'], 'desc' => $lng['serversettings']['phpfpm_settings']['start_servers']['description'] . $lng['serversettings']['phpfpm_settings']['override_fpmconfig_addinfo'],
'type' => 'int', 'type' => 'int',
'value' => $result['start_servers'] 'value' => $result['start_servers']
), ),
'min_spare_servers' => array( 'min_spare_servers' => array(
'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false), 'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false),
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['min_spare_servers']['title'], 'label' => $lng['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'], 'desc' => $lng['serversettings']['phpfpm_settings']['min_spare_servers']['description'] . $lng['serversettings']['phpfpm_settings']['override_fpmconfig_addinfo'],
'type' => 'int', 'type' => 'int',
'value' => $result['min_spare_servers'] 'value' => $result['min_spare_servers']
), ),
'max_spare_servers' => array( 'max_spare_servers' => array(
'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false), 'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false),
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['max_spare_servers']['title'], 'label' => $lng['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'], 'desc' => $lng['serversettings']['phpfpm_settings']['max_spare_servers']['description'] . $lng['serversettings']['phpfpm_settings']['override_fpmconfig_addinfo'],
'type' => 'int', 'type' => 'int',
'value' => $result['max_spare_servers'] 'value' => $result['max_spare_servers']
), ),
'max_requests' => array( 'max_requests' => array(
'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false), 'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false),
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['max_requests']['title'], 'label' => $lng['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'], 'desc' => $lng['serversettings']['phpfpm_settings']['max_requests']['description'] . $lng['serversettings']['phpfpm_settings']['override_fpmconfig_addinfo'],
'type' => 'int', 'type' => 'int',
'value' => $result['max_requests'] 'value' => $result['max_requests']
), ),
'idle_timeout' => array( 'idle_timeout' => array(
'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false), 'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false),
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['idle_timeout']['title'], 'label' => $lng['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'], 'desc' => $lng['serversettings']['phpfpm_settings']['idle_timeout']['description'] . $lng['serversettings']['phpfpm_settings']['override_fpmconfig_addinfo'],
'type' => 'int', 'type' => 'int',
'value' => $result['idle_timeout'] 'value' => $result['idle_timeout']
), ),
'limit_extensions' => array( 'limit_extensions' => array(
'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false), 'visible' => (\Froxlor\Settings::Get('phpfpm.enabled') == 1 ? true : false),
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['limit_extensions']['title'], 'label' => $lng['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'], 'desc' => $lng['serversettings']['phpfpm_settings']['limit_extensions']['description'] . $lng['serversettings']['phpfpm_settings']['override_fpmconfig_addinfo'],
'type' => 'text', 'type' => 'text',
'value' => $result['limit_extensions'] 'value' => $result['limit_extensions']
), ),
'phpsettings' => array( 'phpsettings' => array(
'style' => 'align-top', 'style' => 'align-top',
'label' => \Froxlor\I18N\Lang::getAll()['admin']['phpsettings']['phpinisettings'], 'label' => $lng['admin']['phpsettings']['phpinisettings'],
'type' => 'textarea', 'type' => 'textarea',
'cols' => 80, 'cols' => 80,
'rows' => 20, 'rows' => 20,

View File

@@ -16,19 +16,19 @@
*/ */
return array( return array(
'plans_add' => array( 'plans_add' => array(
'title' => \Froxlor\I18N\Lang::getAll()['admin']['plans']['add'], 'title' => $lng['admin']['plans']['add'],
'image' => 'icons/templates_add_big.png', 'image' => 'icons/templates_add_big.png',
'sections' => array( 'sections' => array(
'section_a' => array( 'section_a' => array(
'title' => \Froxlor\I18N\Lang::getAll()['admin']['plans']['plan_details'], 'title' => $lng['admin']['plans']['plan_details'],
'image' => 'icons/templates_add_big.png', 'image' => 'icons/templates_add_big.png',
'fields' => array( 'fields' => array(
'name' => array( 'name' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['plans']['name'], 'label' => $lng['admin']['plans']['name'],
'type' => 'text' 'type' => 'text'
), ),
'description' => array( 'description' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['plans']['description'], 'label' => $lng['admin']['plans']['description'],
'type' => 'textarea', 'type' => 'textarea',
'cols' => 60, 'cols' => 60,
'rows' => 12 'rows' => 12

View File

@@ -16,20 +16,20 @@
*/ */
return array( return array(
'plans_edit' => array( 'plans_edit' => array(
'title' => \Froxlor\I18N\Lang::getAll()['admin']['plans']['edit'], 'title' => $lng['admin']['plans']['edit'],
'image' => 'icons/templates_edit_big.png', 'image' => 'icons/templates_edit_big.png',
'sections' => array( 'sections' => array(
'section_a' => array( 'section_a' => array(
'title' => \Froxlor\I18N\Lang::getAll()['admin']['plans']['plan_details'], 'title' => $lng['admin']['plans']['plan_details'],
'image' => 'icons/templates_edit_big.png', 'image' => 'icons/templates_edit_big.png',
'fields' => array( 'fields' => array(
'name' => array( 'name' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['plans']['name'], 'label' => $lng['admin']['plans']['name'],
'type' => 'text', 'type' => 'text',
'value' => $result['name'] 'value' => $result['name']
), ),
'description' => array( 'description' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['plans']['description'], 'label' => $lng['admin']['plans']['description'],
'type' => 'textarea', 'type' => 'textarea',
'cols' => 60, 'cols' => 60,
'rows' => 12, 'rows' => 12,

View File

@@ -16,20 +16,20 @@
*/ */
return array( return array(
'filetemplate_add' => array( 'filetemplate_add' => array(
'title' => \Froxlor\I18N\Lang::getAll()['admin']['templates']['template_add'], 'title' => $lng['admin']['templates']['template_add'],
'image' => 'icons/templates_add.png', 'image' => 'icons/templates_add.png',
'sections' => array( 'sections' => array(
'section_a' => array( 'section_a' => array(
'title' => \Froxlor\I18N\Lang::getAll()['admin']['templates']['template_add'], 'title' => $lng['admin']['templates']['template_add'],
'image' => 'icons/templates_add.png', 'image' => 'icons/templates_add.png',
'fields' => array( 'fields' => array(
'template' => array( 'template' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['templates']['action'], 'label' => $lng['admin']['templates']['action'],
'type' => 'select', 'type' => 'select',
'select_var' => $free_templates 'select_var' => $free_templates
), ),
'filecontent' => array( 'filecontent' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['templates']['filecontent'], 'label' => $lng['admin']['templates']['filecontent'],
'type' => 'textarea', 'type' => 'textarea',
'cols' => 60, 'cols' => 60,
'rows' => 12 'rows' => 12

View File

@@ -16,21 +16,21 @@
*/ */
return array( return array(
'filetemplate_edit' => array( 'filetemplate_edit' => array(
'title' => \Froxlor\I18N\Lang::getAll()['admin']['templates']['template_edit'], 'title' => $lng['admin']['templates']['template_edit'],
'image' => 'icons/templates_edit.png', 'image' => 'icons/templates_edit.png',
'sections' => array( 'sections' => array(
'section_a' => array( 'section_a' => array(
'title' => \Froxlor\I18N\Lang::getAll()['admin']['templates']['template_edit'], 'title' => $lng['admin']['templates']['template_edit'],
'image' => 'icons/templates_edit.png', 'image' => 'icons/templates_edit.png',
'fields' => array( 'fields' => array(
'template' => array( 'template' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['templates']['action'], 'label' => $lng['admin']['templates']['action'],
'type' => 'hidden', 'type' => 'hidden',
'value' => \Froxlor\I18N\Lang::getAll()['admin']['templates'][$row['varname']], 'value' => $lng['admin']['templates'][$row['varname']],
'display' => \Froxlor\I18N\Lang::getAll()['admin']['templates'][$row['varname']] 'display' => $lng['admin']['templates'][$row['varname']]
), ),
'filecontent' => array( 'filecontent' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['templates']['filecontent'], 'label' => $lng['admin']['templates']['filecontent'],
'type' => 'textarea', 'type' => 'textarea',
'cols' => 60, 'cols' => 60,
'rows' => 12, 'rows' => 12,

View File

@@ -16,32 +16,32 @@
*/ */
return array( return array(
'template_add' => array( 'template_add' => array(
'title' => \Froxlor\I18N\Lang::getAll()['admin']['templates']['template_add'], 'title' => $lng['admin']['templates']['template_add'],
'image' => 'icons/templates_add.png', 'image' => 'icons/templates_add.png',
'sections' => array( 'sections' => array(
'section_a' => array( 'section_a' => array(
'title' => \Froxlor\I18N\Lang::getAll()['admin']['templates']['template_add'], 'title' => $lng['admin']['templates']['template_add'],
'image' => 'icons/templates_add.png', 'image' => 'icons/templates_add.png',
'fields' => array( 'fields' => array(
'language' => array( 'language' => array(
'label' => \Froxlor\I18N\Lang::getAll()['login']['language'], 'label' => $lng['login']['language'],
'type' => 'hidden', 'type' => 'hidden',
'value' => $language, 'value' => $language,
'display' => $language 'display' => $language
), ),
'template' => array( 'template' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['templates']['action'], 'label' => $lng['admin']['templates']['action'],
'type' => 'hidden', 'type' => 'hidden',
'value' => $template, 'value' => $template,
'display' => \Froxlor\I18N\Lang::getAll()['admin']['templates'][$template] 'display' => $lng['admin']['templates'][$template]
), ),
'subject' => array( 'subject' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['templates']['subject'], 'label' => $lng['admin']['templates']['subject'],
'type' => 'text', 'type' => 'text',
'value' => $subject 'value' => $subject
), ),
'mailbody' => array( 'mailbody' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['templates']['mailbody'], 'label' => $lng['admin']['templates']['mailbody'],
'type' => 'textarea', 'type' => 'textarea',
'value' => $body, 'value' => $body,
'cols' => 60, 'cols' => 60,

View File

@@ -16,32 +16,32 @@
*/ */
return array( return array(
'template_edit' => array( 'template_edit' => array(
'title' => \Froxlor\I18N\Lang::getAll()['admin']['templates']['template_edit'], 'title' => $lng['admin']['templates']['template_edit'],
'image' => 'icons/templates_edit.png', 'image' => 'icons/templates_edit.png',
'sections' => array( 'sections' => array(
'section_a' => array( 'section_a' => array(
'title' => \Froxlor\I18N\Lang::getAll()['admin']['templates']['template_edit'], 'title' => $lng['admin']['templates']['template_edit'],
'image' => 'icons/templates_edit.png', 'image' => 'icons/templates_edit.png',
'fields' => array( 'fields' => array(
'language' => array( 'language' => array(
'label' => \Froxlor\I18N\Lang::getAll()['login']['language'], 'label' => $lng['login']['language'],
'type' => 'hidden', 'type' => 'hidden',
'value' => $language, 'value' => $language,
'display' => $language 'display' => $language
), ),
'template' => array( 'template' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['templates']['action'], 'label' => $lng['admin']['templates']['action'],
'type' => 'hidden', 'type' => 'hidden',
'value' => $template, 'value' => $template,
'display' => $template 'display' => $template
), ),
'subject' => array( 'subject' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['templates']['subject'], 'label' => $lng['admin']['templates']['subject'],
'type' => 'text', 'type' => 'text',
'value' => $subject 'value' => $subject
), ),
'mailbody' => array( 'mailbody' => array(
'label' => \Froxlor\I18N\Lang::getAll()['admin']['templates']['mailbody'], 'label' => $lng['admin']['templates']['mailbody'],
'type' => 'textarea', 'type' => 'textarea',
'cols' => 60, 'cols' => 60,
'rows' => 12, 'rows' => 12,

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

Some files were not shown because too many files have changed in this diff Show More