refactor global array
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
4
2fa.php
4
2fa.php
@@ -47,7 +47,7 @@ if ($action == 'delete') {
|
|||||||
'd2fa' => "",
|
'd2fa' => "",
|
||||||
'id' => $uid
|
'id' => $uid
|
||||||
));
|
));
|
||||||
\Froxlor\UI\Response::standard_success($lng['2fa']['2fa_removed']);
|
\Froxlor\UI\Response::standard_success(\Froxlor\I18N\Lang::getAll()['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($lng['2fa']['2fa_added'], $filename, $s));
|
\Froxlor\UI\Response::standard_success(sprintf(\Froxlor\I18N\Lang::getAll()['2fa']['2fa_added'], $filename, $s));
|
||||||
}
|
}
|
||||||
|
|
||||||
$log->logAction(USR_ACTION, LOG_NOTICE, "viewed 2fa::overview");
|
$log->logAction(USR_ACTION, LOG_NOTICE, "viewed 2fa::overview");
|
||||||
|
|||||||
@@ -19,12 +19,12 @@
|
|||||||
return array(
|
return array(
|
||||||
'groups' => array(
|
'groups' => array(
|
||||||
'panel' => array(
|
'panel' => array(
|
||||||
'title' => $lng['admin']['panelsettings'],
|
'title' => \Froxlor\I18N\Lang::getAll()['admin']['panelsettings'],
|
||||||
'fields' => array(
|
'fields' => array(
|
||||||
'panel_standardlanguage' => array(
|
'panel_standardlanguage' => array(
|
||||||
'label' => array(
|
'label' => array(
|
||||||
'title' => $lng['login']['language'],
|
'title' => \Froxlor\I18N\Lang::getAll()['login']['language'],
|
||||||
'description' => $lng['serversettings']['language']['description']
|
'description' => \Froxlor\I18N\Lang::getAll()['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' => $lng['panel']['theme'],
|
'title' => \Froxlor\I18N\Lang::getAll()['panel']['theme'],
|
||||||
'description' => $lng['serversettings']['default_theme']
|
'description' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['panel_allow_theme_change_customer'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['panel_allow_theme_change_admin'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['natsorting'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['no_robots'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['paging'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['pathedit'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['manual'],
|
'Manual' => \Froxlor\I18N\Lang::getAll()['serversettings']['manual'],
|
||||||
'Dropdown' => $lng['serversettings']['dropdown']
|
'Dropdown' => \Froxlor\I18N\Lang::getAll()['serversettings']['dropdown']
|
||||||
),
|
),
|
||||||
'save_method' => 'storeSettingField'
|
'save_method' => 'storeSettingField'
|
||||||
),
|
),
|
||||||
'panel_adminmail' => array(
|
'panel_adminmail' => array(
|
||||||
'label' => $lng['serversettings']['adminmail'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['adminmail_defname'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['adminmail_return'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['decimal_places'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['phpmyadmin_url'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['webmail_url'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['webftp_url'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['show_version_login'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['show_version_footer'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['show_news_feed'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['customer_show_news_feed'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['customer_news_feed_url'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['panel_allow_domain_change_admin'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['panel_allow_domain_change_customer'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['panel_phpconfigs_hidestdsubdomain'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['panel_customer_hide_options'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['menue']['email']['email'],
|
'email' => \Froxlor\I18N\Lang::getAll()['menue']['email']['email'],
|
||||||
'mysql' => $lng['menue']['mysql']['mysql'],
|
'mysql' => \Froxlor\I18N\Lang::getAll()['menue']['mysql']['mysql'],
|
||||||
'domains' => $lng['menue']['domains']['domains'],
|
'domains' => \Froxlor\I18N\Lang::getAll()['menue']['domains']['domains'],
|
||||||
'ftp' => $lng['menue']['ftp']['ftp'],
|
'ftp' => \Froxlor\I18N\Lang::getAll()['menue']['ftp']['ftp'],
|
||||||
'extras' => $lng['menue']['extras']['extras'],
|
'extras' => \Froxlor\I18N\Lang::getAll()['menue']['extras']['extras'],
|
||||||
'extras.directoryprotection' => $lng['menue']['extras']['extras'] . " / " . $lng['menue']['extras']['directoryprotection'],
|
'extras.directoryprotection' => \Froxlor\I18N\Lang::getAll()['menue']['extras']['extras'] . " / " . \Froxlor\I18N\Lang::getAll()['menue']['extras']['directoryprotection'],
|
||||||
'extras.pathoptions' => $lng['menue']['extras']['extras'] . " / " . $lng['menue']['extras']['pathoptions'],
|
'extras.pathoptions' => \Froxlor\I18N\Lang::getAll()['menue']['extras']['extras'] . " / " . \Froxlor\I18N\Lang::getAll()['menue']['extras']['pathoptions'],
|
||||||
'extras.logger' => $lng['menue']['extras']['extras'] . " / " . $lng['menue']['logger']['logger'],
|
'extras.logger' => \Froxlor\I18N\Lang::getAll()['menue']['extras']['extras'] . " / " . \Froxlor\I18N\Lang::getAll()['menue']['logger']['logger'],
|
||||||
'extras.backup' => $lng['menue']['extras']['extras'] . " / " . $lng['menue']['extras']['backup'],
|
'extras.backup' => \Froxlor\I18N\Lang::getAll()['menue']['extras']['extras'] . " / " . \Froxlor\I18N\Lang::getAll()['menue']['extras']['backup'],
|
||||||
'traffic' => $lng['menue']['traffic']['traffic'],
|
'traffic' => \Froxlor\I18N\Lang::getAll()['menue']['traffic']['traffic'],
|
||||||
'traffic.http' => $lng['menue']['traffic']['traffic'] . " / HTTP",
|
'traffic.http' => \Froxlor\I18N\Lang::getAll()['menue']['traffic']['traffic'] . " / HTTP",
|
||||||
'traffic.ftp' => $lng['menue']['traffic']['traffic'] . " / FTP",
|
'traffic.ftp' => \Froxlor\I18N\Lang::getAll()['menue']['traffic']['traffic'] . " / FTP",
|
||||||
'traffic.mail' => $lng['menue']['traffic']['traffic'] . " / Mail"
|
'traffic.mail' => \Froxlor\I18N\Lang::getAll()['menue']['traffic']['traffic'] . " / Mail"
|
||||||
),
|
),
|
||||||
'save_method' => 'storeSettingField'
|
'save_method' => 'storeSettingField'
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -19,10 +19,10 @@
|
|||||||
return array(
|
return array(
|
||||||
'groups' => array(
|
'groups' => array(
|
||||||
'accounts' => array(
|
'accounts' => array(
|
||||||
'title' => $lng['admin']['accountsettings'],
|
'title' => \Froxlor\I18N\Lang::getAll()['admin']['accountsettings'],
|
||||||
'fields' => array(
|
'fields' => array(
|
||||||
'session_sessiontimeout' => array(
|
'session_sessiontimeout' => array(
|
||||||
'label' => $lng['serversettings']['session_timeout'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['session_allow_multiple_login'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['login_domain_login'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['maxloginattempts'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['deactivatetime'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['2fa']['2fa_enabled'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['panel_password_min_length'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['panel_password_alpha_lower'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['panel_password_alpha_upper'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['panel_password_numeric'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['panel_password_special_char_required'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['panel_password_special_char'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['panel_password_regex'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['accountprefix'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['mysqlprefix'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['ftpprefix'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['ftpdomain'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['allow_password_reset'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['allow_password_reset_admin'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['backupenabled'],
|
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['backupenabled'],
|
||||||
'settinggroup' => 'system',
|
'settinggroup' => 'system',
|
||||||
'varname' => 'backupenabled',
|
'varname' => 'backupenabled',
|
||||||
'type' => 'bool',
|
'type' => 'bool',
|
||||||
|
|||||||
@@ -19,10 +19,10 @@
|
|||||||
return array(
|
return array(
|
||||||
'groups' => array(
|
'groups' => array(
|
||||||
'system' => array(
|
'system' => array(
|
||||||
'title' => $lng['admin']['systemsettings'],
|
'title' => \Froxlor\I18N\Lang::getAll()['admin']['systemsettings'],
|
||||||
'fields' => array(
|
'fields' => array(
|
||||||
'system_documentroot_prefix' => array(
|
'system_documentroot_prefix' => array(
|
||||||
'label' => $lng['serversettings']['documentroot_prefix'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['documentroot_use_default_value'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['ipaddress'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['defaultip'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['defaultsslip'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['hostname'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['enable_api'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['validate_domain'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['stdsubdomainhost'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['mysql_access_host'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['nssextrausers'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['index_file_extension'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['system_store_index_file_subs'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['report']['report'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['report']['webmax'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['report']['trafficmax'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['mail_use_smtp'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['mail_smtp_host'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['mail_smtp_port'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['mail_smtp_usetls'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['mail_smtp_auth'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['mail_smtp_user'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['mail_smtp_passwd'],
|
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['mail_smtp_passwd'],
|
||||||
'settinggroup' => 'system',
|
'settinggroup' => 'system',
|
||||||
'varname' => 'mail_smtp_passwd',
|
'varname' => 'mail_smtp_passwd',
|
||||||
'type' => 'hiddenString',
|
'type' => 'hiddenString',
|
||||||
|
|||||||
@@ -17,13 +17,13 @@
|
|||||||
return array(
|
return array(
|
||||||
'groups' => array(
|
'groups' => array(
|
||||||
'froxlorvhost' => array(
|
'froxlorvhost' => array(
|
||||||
'title' => $lng['admin']['froxlorvhost'],
|
'title' => \Froxlor\I18N\Lang::getAll()['admin']['froxlorvhost'],
|
||||||
'fields' => array(
|
'fields' => array(
|
||||||
/**
|
/**
|
||||||
* Webserver-Vhost
|
* Webserver-Vhost
|
||||||
*/
|
*/
|
||||||
'system_froxlordirectlyviahostname' => array(
|
'system_froxlordirectlyviahostname' => array(
|
||||||
'label' => $lng['serversettings']['froxlordirectlyviahostname'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['le_froxlor_enabled'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['le_froxlor_redirect'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['domain_hsts_maxage'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['domain_hsts_incsub'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['domain_hsts_preload'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['mod_fcgid_ownvhost'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['mod_fcgid_user'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['mod_fcgid_group'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['mod_fcgid']['defaultini_ownvhost'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['phpfpm']['ownvhost'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['phpfpm']['vhost_httpuser'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['phpfpm']['vhost_httpgroup'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['mod_fcgid']['defaultini_ownvhost'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['dns_createhostnameentry'],
|
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['dns_createhostnameentry'],
|
||||||
'settinggroup' => 'system',
|
'settinggroup' => 'system',
|
||||||
'varname' => 'dns_createhostnameentry',
|
'varname' => 'dns_createhostnameentry',
|
||||||
'type' => 'bool',
|
'type' => 'bool',
|
||||||
|
|||||||
@@ -17,10 +17,10 @@
|
|||||||
return array(
|
return array(
|
||||||
'groups' => array(
|
'groups' => array(
|
||||||
'crond' => array(
|
'crond' => array(
|
||||||
'title' => $lng['admin']['cronsettings'],
|
'title' => \Froxlor\I18N\Lang::getAll()['admin']['cronsettings'],
|
||||||
'fields' => array(
|
'fields' => array(
|
||||||
'system_cronconfig' => array(
|
'system_cronconfig' => array(
|
||||||
'label' => $lng['serversettings']['system_cronconfig'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['system_croncmdline'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['system_crondreload'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['system_cron_allowautoupdate'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['cron']['debug'],
|
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['cron']['debug'],
|
||||||
'settinggroup' => 'system',
|
'settinggroup' => 'system',
|
||||||
'varname' => 'debug_cron',
|
'varname' => 'debug_cron',
|
||||||
'type' => 'bool',
|
'type' => 'bool',
|
||||||
|
|||||||
@@ -19,10 +19,10 @@
|
|||||||
return array(
|
return array(
|
||||||
'groups' => array(
|
'groups' => array(
|
||||||
'webserver' => array(
|
'webserver' => array(
|
||||||
'title' => $lng['admin']['webserversettings'],
|
'title' => \Froxlor\I18N\Lang::getAll()['admin']['webserversettings'],
|
||||||
'fields' => array(
|
'fields' => array(
|
||||||
'system_webserver' => array(
|
'system_webserver' => array(
|
||||||
'label' => $lng['admin']['webserver'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['apache_24'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['apache_itksupport'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['http2_support'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['dhparams_file'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['webserver_user'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['webserver_group'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['apacheconf_vhost'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['apacheconf_diroptions'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['apacheconf_htpasswddir'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['logfiles_directory'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['logfiles_script'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['logfiles_piped'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['logfiles_format'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['logfiles_type'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['customerssl_directory'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['phpappendopenbasedir'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['deactivateddocroot'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['default_vhostconf'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['apache_globaldiropt'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['apachereload_command'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['phpreload_command'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['nginx_php_backend'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['nginx_fastcgiparams'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['defaultwebsrverrhandler_enabled'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['defaultwebsrverrhandler_err401'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['defaultwebsrverrhandler_err403'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['defaultwebsrverrhandler_err404'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['defaultwebsrverrhandler_err500'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['customredirect_enabled'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['customredirect_default'],
|
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['customredirect_default'],
|
||||||
'settinggroup' => 'customredirect',
|
'settinggroup' => 'customredirect',
|
||||||
'varname' => 'default',
|
'varname' => 'default',
|
||||||
'type' => 'option',
|
'type' => 'option',
|
||||||
|
|||||||
@@ -19,10 +19,10 @@
|
|||||||
return array(
|
return array(
|
||||||
'groups' => array(
|
'groups' => array(
|
||||||
'ssl' => array(
|
'ssl' => array(
|
||||||
'title' => $lng['admin']['sslsettings'],
|
'title' => \Froxlor\I18N\Lang::getAll()['admin']['sslsettings'],
|
||||||
'fields' => array(
|
'fields' => array(
|
||||||
'system_ssl_enabled' => array(
|
'system_ssl_enabled' => array(
|
||||||
'label' => $lng['serversettings']['ssl']['use_ssl'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['ssl']['ssl_protocols'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['ssl']['ssl_cipher_list'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['ssl']['ssl_cert_file'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['ssl']['ssl_key_file'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['ipsandports']['ssl_cert_chainfile'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['ssl']['ssl_ca_file'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['ssl']['apache24_ocsp_cache_path'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['leenabled'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['letsencryptacmeconf'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['leapiversion'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['letsencryptca'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['letsencryptcountrycode'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['letsencryptstate'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['letsencryptchallengepath'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['letsencryptkeysize'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['letsencryptreuseold'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['disable_le_selfcheck'],
|
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['disable_le_selfcheck'],
|
||||||
'settinggroup' => 'system',
|
'settinggroup' => 'system',
|
||||||
'varname' => 'disable_le_selfcheck',
|
'varname' => 'disable_le_selfcheck',
|
||||||
'type' => 'bool',
|
'type' => 'bool',
|
||||||
|
|||||||
@@ -17,14 +17,14 @@
|
|||||||
return array(
|
return array(
|
||||||
'groups' => array(
|
'groups' => array(
|
||||||
'fcgid' => array(
|
'fcgid' => array(
|
||||||
'title' => $lng['admin']['fcgid_settings'],
|
'title' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['mod_fcgid'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['mod_fcgid']['configdir'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['mod_fcgid']['tmpdir'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['mod_fcgid']['peardir'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['mod_fcgid']['wrapper'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['mod_fcgid']['starter'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['mod_fcgid']['maxrequests'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['mod_fcgid']['defaultini'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['mod_fcgid']['idle_timeout'],
|
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['mod_fcgid']['idle_timeout'],
|
||||||
'settinggroup' => 'system',
|
'settinggroup' => 'system',
|
||||||
'varname' => 'mod_fcgid_idle_timeout',
|
'varname' => 'mod_fcgid_idle_timeout',
|
||||||
'type' => 'int',
|
'type' => 'int',
|
||||||
|
|||||||
@@ -17,10 +17,10 @@
|
|||||||
return array(
|
return array(
|
||||||
'groups' => array(
|
'groups' => array(
|
||||||
'phpfpm' => array(
|
'phpfpm' => array(
|
||||||
'title' => $lng['admin']['phpfpm_settings'],
|
'title' => \Froxlor\I18N\Lang::getAll()['admin']['phpfpm_settings'],
|
||||||
'fields' => array(
|
'fields' => array(
|
||||||
'system_phpfpm_enabled' => array(
|
'system_phpfpm_enabled' => array(
|
||||||
'label' => $lng['serversettings']['phpfpm'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['mod_fcgid']['defaultini'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['phpfpm_settings']['aliasconfigdir'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['mod_fcgid']['tmpdir'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['mod_fcgid']['peardir'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['phpfpm_settings']['envpath'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['phpfpm_settings']['ipcdir'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['phpfpm']['use_mod_proxy'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['phpfpm']['ini_flags'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['phpfpm']['ini_values'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['phpfpm']['ini_admin_flags'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['phpfpm']['ini_admin_values'],
|
'label' => \Froxlor\I18N\Lang::getAll()['phpfpm']['ini_admin_values'],
|
||||||
'settinggroup' => 'phpfpm',
|
'settinggroup' => 'phpfpm',
|
||||||
'varname' => 'ini_admin_values',
|
'varname' => 'ini_admin_values',
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
|
|||||||
@@ -17,10 +17,10 @@
|
|||||||
return array(
|
return array(
|
||||||
'groups' => array(
|
'groups' => array(
|
||||||
'perl' => array(
|
'perl' => array(
|
||||||
'title' => $lng['admin']['perl_settings'],
|
'title' => \Froxlor\I18N\Lang::getAll()['admin']['perl_settings'],
|
||||||
'fields' => array(
|
'fields' => array(
|
||||||
'perl_path' => array(
|
'perl_path' => array(
|
||||||
'label' => $lng['serversettings']['perl_path'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['perl']['suexecworkaround'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['perl']['suexeccgipath'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['perl_server'],
|
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['perl_server'],
|
||||||
'settinggroup' => 'serversettings',
|
'settinggroup' => 'serversettings',
|
||||||
'varname' => 'perl_server',
|
'varname' => 'perl_server',
|
||||||
'type' => 'string',
|
'type' => 'string',
|
||||||
|
|||||||
@@ -19,24 +19,24 @@
|
|||||||
return array(
|
return array(
|
||||||
'groups' => array(
|
'groups' => array(
|
||||||
'statistics' => array(
|
'statistics' => array(
|
||||||
'title' => $lng['admin']['statisticsettings'],
|
'title' => \Froxlor\I18N\Lang::getAll()['admin']['statisticsettings'],
|
||||||
'fields' => array(
|
'fields' => array(
|
||||||
'system_webalizer_quiet' => array(
|
'system_webalizer_quiet' => array(
|
||||||
'label' => $lng['serversettings']['webalizer_quiet'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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 => $lng['admin']['webalizer']['normal'],
|
0 => \Froxlor\I18N\Lang::getAll()['admin']['webalizer']['normal'],
|
||||||
1 => $lng['admin']['webalizer']['quiet'],
|
1 => \Froxlor\I18N\Lang::getAll()['admin']['webalizer']['quiet'],
|
||||||
2 => $lng['admin']['webalizer']['veryquiet']
|
2 => \Froxlor\I18N\Lang::getAll()['admin']['webalizer']['veryquiet']
|
||||||
),
|
),
|
||||||
'save_method' => 'storeSettingField'
|
'save_method' => 'storeSettingField'
|
||||||
),
|
),
|
||||||
'system_awstats_enabled' => array(
|
'system_awstats_enabled' => array(
|
||||||
'label' => $lng['serversettings']['awstats_enabled'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['awstats_path'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['awstats_awstatspath'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['awstats_conf'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['awstats_icons'],
|
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['awstats_icons'],
|
||||||
'settinggroup' => 'system',
|
'settinggroup' => 'system',
|
||||||
'varname' => 'awstats_icons',
|
'varname' => 'awstats_icons',
|
||||||
'type' => 'string',
|
'type' => 'string',
|
||||||
|
|||||||
@@ -19,10 +19,10 @@
|
|||||||
return array(
|
return array(
|
||||||
'groups' => array(
|
'groups' => array(
|
||||||
'mail' => array(
|
'mail' => array(
|
||||||
'title' => $lng['admin']['mailserversettings'],
|
'title' => \Froxlor\I18N\Lang::getAll()['admin']['mailserversettings'],
|
||||||
'fields' => array(
|
'fields' => array(
|
||||||
'system_vmail_uid' => array(
|
'system_vmail_uid' => array(
|
||||||
'label' => $lng['serversettings']['vmail_uid'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['vmail_gid'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['vmail_homedir'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['vmail_maildirname'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['sendalternativemail'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['mail_quota_enabled'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['mail_quota'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['catchall_enabled'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['mailtraffic_enabled'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['mdaserver'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['mdalog'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['mtaserver'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['mtalog'],
|
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['mtalog'],
|
||||||
'settinggroup' => 'system',
|
'settinggroup' => 'system',
|
||||||
'varname' => 'mtalog',
|
'varname' => 'mtalog',
|
||||||
'type' => 'string',
|
'type' => 'string',
|
||||||
|
|||||||
@@ -19,10 +19,10 @@
|
|||||||
return array(
|
return array(
|
||||||
'groups' => array(
|
'groups' => array(
|
||||||
'ftpserver' => array(
|
'ftpserver' => array(
|
||||||
'title' => $lng['admin']['ftpserversettings'],
|
'title' => \Froxlor\I18N\Lang::getAll()['admin']['ftpserversettings'],
|
||||||
'fields' => array(
|
'fields' => array(
|
||||||
'ftpserver' => array(
|
'ftpserver' => array(
|
||||||
'label' => $lng['admin']['ftpserver'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['ftpserver'],
|
||||||
'settinggroup' => 'system',
|
'settinggroup' => 'system',
|
||||||
'varname' => 'ftpserver',
|
'varname' => 'ftpserver',
|
||||||
'type' => 'option',
|
'type' => 'option',
|
||||||
|
|||||||
@@ -19,10 +19,10 @@
|
|||||||
return array(
|
return array(
|
||||||
'groups' => array(
|
'groups' => array(
|
||||||
'nameserver' => array(
|
'nameserver' => array(
|
||||||
'title' => $lng['admin']['nameserversettings'],
|
'title' => \Froxlor\I18N\Lang::getAll()['admin']['nameserversettings'],
|
||||||
'fields' => array(
|
'fields' => array(
|
||||||
'nameserver_enable' => array(
|
'nameserver_enable' => array(
|
||||||
'label' => $lng['serversettings']['bindenable'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['dnseditorenable'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['dns_server'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['bindconf_directory'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['bindreload_command'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['nameservers'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['mxservers'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['axfrservers'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['mail_also_with_mxservers'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['defaultttl'],
|
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['defaultttl'],
|
||||||
'settinggroup' => 'system',
|
'settinggroup' => 'system',
|
||||||
'varname' => 'defaultttl',
|
'varname' => 'defaultttl',
|
||||||
'type' => 'int',
|
'type' => 'int',
|
||||||
|
|||||||
@@ -19,10 +19,10 @@
|
|||||||
return array(
|
return array(
|
||||||
'groups' => array(
|
'groups' => array(
|
||||||
'logging' => array(
|
'logging' => array(
|
||||||
'title' => $lng['admin']['loggersettings'],
|
'title' => \Froxlor\I18N\Lang::getAll()['admin']['loggersettings'],
|
||||||
'fields' => array(
|
'fields' => array(
|
||||||
'logger_enabled' => array(
|
'logger_enabled' => array(
|
||||||
'label' => $lng['serversettings']['logger']['enable'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['logger']['severity'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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 => $lng['admin']['logger']['normal'],
|
1 => \Froxlor\I18N\Lang::getAll()['admin']['logger']['normal'],
|
||||||
2 => $lng['admin']['logger']['paranoid']
|
2 => \Froxlor\I18N\Lang::getAll()['admin']['logger']['paranoid']
|
||||||
),
|
),
|
||||||
'save_method' => 'storeSettingField'
|
'save_method' => 'storeSettingField'
|
||||||
),
|
),
|
||||||
'logger_logtypes' => array(
|
'logger_logtypes' => array(
|
||||||
'label' => $lng['serversettings']['logger']['types'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['logger']['logfile'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['logger']['logcron'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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 => $lng['serversettings']['logger']['logcronoption']['never'],
|
0 => \Froxlor\I18N\Lang::getAll()['serversettings']['logger']['logcronoption']['never'],
|
||||||
1 => $lng['serversettings']['logger']['logcronoption']['once'],
|
1 => \Froxlor\I18N\Lang::getAll()['serversettings']['logger']['logcronoption']['once'],
|
||||||
2 => $lng['serversettings']['logger']['logcronoption']['always']
|
2 => \Froxlor\I18N\Lang::getAll()['serversettings']['logger']['logcronoption']['always']
|
||||||
),
|
),
|
||||||
'save_method' => 'storeSettingField'
|
'save_method' => 'storeSettingField'
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -19,10 +19,10 @@
|
|||||||
return array(
|
return array(
|
||||||
'groups' => array(
|
'groups' => array(
|
||||||
'dkim' => array(
|
'dkim' => array(
|
||||||
'title' => $lng['admin']['dkimsettings'],
|
'title' => \Froxlor\I18N\Lang::getAll()['admin']['dkimsettings'],
|
||||||
'fields' => array(
|
'fields' => array(
|
||||||
'dkim_enabled' => array(
|
'dkim_enabled' => array(
|
||||||
'label' => $lng['dkim']['use_dkim'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['dkim']['dkim_prefix'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['dkim']['dkim_domains'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['dkim']['dkim_dkimkeys'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['dkim']['dkim_algorithm'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['dkim']['dkim_servicetype'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['dkim']['dkim_keylength']['title'],
|
'title' => \Froxlor\I18N\Lang::getAll()['dkim']['dkim_keylength']['title'],
|
||||||
'description' => sprintf($lng['dkim']['dkim_keylength']['description'], \Froxlor\Settings::Get('dkim.dkim_prefix'))
|
'description' => sprintf(\Froxlor\I18N\Lang::getAll()['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' => $lng['dkim']['dkim_notes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['dkim']['dkim_add_adsp'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['dkim']['dkim_add_adsppolicy'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['dkim']['dkimrestart_command'],
|
'label' => \Froxlor\I18N\Lang::getAll()['dkim']['dkimrestart_command'],
|
||||||
'settinggroup' => 'dkim',
|
'settinggroup' => 'dkim',
|
||||||
'varname' => 'dkimrestart_command',
|
'varname' => 'dkimrestart_command',
|
||||||
'type' => 'string',
|
'type' => 'string',
|
||||||
|
|||||||
@@ -17,10 +17,10 @@
|
|||||||
return array(
|
return array(
|
||||||
'groups' => array(
|
'groups' => array(
|
||||||
'spf' => array(
|
'spf' => array(
|
||||||
'title' => $lng['admin']['spfsettings'],
|
'title' => \Froxlor\I18N\Lang::getAll()['admin']['spfsettings'],
|
||||||
'fields' => array(
|
'fields' => array(
|
||||||
'spf_enabled' => array(
|
'spf_enabled' => array(
|
||||||
'label' => $lng['spf']['use_spf'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['spf']['spf_entry'],
|
'label' => \Froxlor\I18N\Lang::getAll()['spf']['spf_entry'],
|
||||||
'settinggroup' => 'spf',
|
'settinggroup' => 'spf',
|
||||||
'varname' => 'spf_entry',
|
'varname' => 'spf_entry',
|
||||||
'type' => 'string',
|
'type' => 'string',
|
||||||
|
|||||||
@@ -19,10 +19,10 @@
|
|||||||
return array(
|
return array(
|
||||||
'groups' => array(
|
'groups' => array(
|
||||||
'security' => array(
|
'security' => array(
|
||||||
'title' => $lng['admin']['security_settings'],
|
'title' => \Froxlor\I18N\Lang::getAll()['admin']['security_settings'],
|
||||||
'fields' => array(
|
'fields' => array(
|
||||||
'panel_unix_names' => array(
|
'panel_unix_names' => array(
|
||||||
'label' => $lng['serversettings']['unix_names'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['mailpwcleartext'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['passwordcryptfunc'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['allow_error_report_admin'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['allow_error_report_customer'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['allow_allow_customer_shell'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['available_shells'],
|
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['available_shells'],
|
||||||
'settinggroup' => 'system',
|
'settinggroup' => 'system',
|
||||||
'varname' => 'available_shells',
|
'varname' => 'available_shells',
|
||||||
'type' => 'string',
|
'type' => 'string',
|
||||||
|
|||||||
@@ -16,10 +16,10 @@
|
|||||||
return array(
|
return array(
|
||||||
'groups' => array(
|
'groups' => array(
|
||||||
'diskquota' => array(
|
'diskquota' => array(
|
||||||
'title' => $lng['diskquota'],
|
'title' => \Froxlor\I18N\Lang::getAll()['diskquota'],
|
||||||
'fields' => array(
|
'fields' => array(
|
||||||
'diskquota_enabled' => array(
|
'diskquota_enabled' => array(
|
||||||
'label' => $lng['serversettings']['diskquota_enabled'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['diskquota_repquota_path']['description'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['diskquota_quotatool_path']['description'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['diskquota_customer_partition']['description'],
|
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['diskquota_customer_partition']['description'],
|
||||||
'settinggroup' => 'system',
|
'settinggroup' => 'system',
|
||||||
'varname' => 'diskquota_customer_partition',
|
'varname' => 'diskquota_customer_partition',
|
||||||
'type' => 'string',
|
'type' => 'string',
|
||||||
|
|||||||
@@ -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' => $lng['login']['username'],
|
'loginname' => \Froxlor\I18N\Lang::getAll()['login']['username'],
|
||||||
'name' => $lng['customer']['name'],
|
'name' => \Froxlor\I18N\Lang::getAll()['customer']['name'],
|
||||||
'diskspace' => $lng['customer']['diskspace'],
|
'diskspace' => \Froxlor\I18N\Lang::getAll()['customer']['diskspace'],
|
||||||
'diskspace_used' => $lng['customer']['diskspace'] . ' (' . $lng['panel']['used'] . ')',
|
'diskspace_used' => \Froxlor\I18N\Lang::getAll()['customer']['diskspace'] . ' (' . \Froxlor\I18N\Lang::getAll()['panel']['used'] . ')',
|
||||||
'traffic' => $lng['customer']['traffic'],
|
'traffic' => \Froxlor\I18N\Lang::getAll()['customer']['traffic'],
|
||||||
'traffic_used' => $lng['customer']['traffic'] . ' (' . $lng['panel']['used'] . ')',
|
'traffic_used' => \Froxlor\I18N\Lang::getAll()['customer']['traffic'] . ' (' . \Froxlor\I18N\Lang::getAll()['panel']['used'] . ')',
|
||||||
'deactivated' => $lng['admin']['deactivated']
|
'deactivated' => \Froxlor\I18N\Lang::getAll()['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($lng['admin']['allips'], "-1");
|
$ipaddress = \Froxlor\UI\HTML::makeoption(\Froxlor\I18N\Lang::getAll()['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', $lng['customer']['unlimited'], '-1', false, '0', true, true);
|
$customers_ul = \Froxlor\UI\HTML::makecheckbox('customers_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);
|
$diskspace_ul = \Froxlor\UI\HTML::makecheckbox('diskspace_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);
|
$traffic_ul = \Froxlor\UI\HTML::makecheckbox('traffic_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);
|
$domains_ul = \Froxlor\UI\HTML::makecheckbox('domains_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);
|
$subdomains_ul = \Froxlor\UI\HTML::makecheckbox('subdomains_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);
|
$emails_ul = \Froxlor\UI\HTML::makecheckbox('emails_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_accounts_ul = \Froxlor\UI\HTML::makecheckbox('email_accounts_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_forwarders_ul = \Froxlor\UI\HTML::makecheckbox('email_forwarders_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);
|
$email_quota_ul = \Froxlor\UI\HTML::makecheckbox('email_quota_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);
|
$ftps_ul = \Froxlor\UI\HTML::makecheckbox('ftps_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);
|
$mysqls_ul = \Froxlor\UI\HTML::makecheckbox('mysqls_ul', \Froxlor\I18N\Lang::getAll()['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', $lng['customer']['unlimited'], '-1', false, $result['customers'], true, true);
|
$customers_ul = \Froxlor\UI\HTML::makecheckbox('customers_ul', \Froxlor\I18N\Lang::getAll()['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', $lng['customer']['unlimited'], '-1', false, $result['diskspace'], true, true);
|
$diskspace_ul = \Froxlor\UI\HTML::makecheckbox('diskspace_ul', \Froxlor\I18N\Lang::getAll()['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', $lng['customer']['unlimited'], '-1', false, $result['traffic'], true, true);
|
$traffic_ul = \Froxlor\UI\HTML::makecheckbox('traffic_ul', \Froxlor\I18N\Lang::getAll()['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', $lng['customer']['unlimited'], '-1', false, $result['domains'], true, true);
|
$domains_ul = \Froxlor\UI\HTML::makecheckbox('domains_ul', \Froxlor\I18N\Lang::getAll()['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', $lng['customer']['unlimited'], '-1', false, $result['subdomains'], true, true);
|
$subdomains_ul = \Froxlor\UI\HTML::makecheckbox('subdomains_ul', \Froxlor\I18N\Lang::getAll()['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', $lng['customer']['unlimited'], '-1', false, $result['emails'], true, true);
|
$emails_ul = \Froxlor\UI\HTML::makecheckbox('emails_ul', \Froxlor\I18N\Lang::getAll()['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', $lng['customer']['unlimited'], '-1', false, $result['email_accounts'], true, true);
|
$email_accounts_ul = \Froxlor\UI\HTML::makecheckbox('email_accounts_ul', \Froxlor\I18N\Lang::getAll()['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', $lng['customer']['unlimited'], '-1', false, $result['email_forwarders'], true, true);
|
$email_forwarders_ul = \Froxlor\UI\HTML::makecheckbox('email_forwarders_ul', \Froxlor\I18N\Lang::getAll()['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', $lng['customer']['unlimited'], '-1', false, $result['email_quota'], true, true);
|
$email_quota_ul = \Froxlor\UI\HTML::makecheckbox('email_quota_ul', \Froxlor\I18N\Lang::getAll()['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', $lng['customer']['unlimited'], '-1', false, $result['ftps'], true, true);
|
$ftps_ul = \Froxlor\UI\HTML::makecheckbox('ftps_ul', \Froxlor\I18N\Lang::getAll()['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', $lng['customer']['unlimited'], '-1', false, $result['mysqls'], true, true);
|
$mysqls_ul = \Froxlor\UI\HTML::makecheckbox('mysqls_ul', \Froxlor\I18N\Lang::getAll()['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($lng['admin']['allips'], "-1", $result['ip']);
|
$ipaddress = \Froxlor\UI\HTML::makeoption(\Froxlor\I18N\Lang::getAll()['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
|
||||||
");
|
");
|
||||||
|
|||||||
@@ -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($lng['error']['no_apcuinfo']);
|
\Froxlor\UI\Response::standard_error(\Froxlor\I18N\Lang::getAll()['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($lng['apcuinfo']['sharedmemval'], $mem['num_seg'], $seg_size, $cache['memory_type']);
|
$sharedmem = sprintf(\Froxlor\I18N\Lang::getAll()['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'] = $lng['logger']['unknown'];
|
$cache['file_upload_progress'] = \Froxlor\I18N\Lang::getAll()['logger']['unknown'];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (! isset($cache['num_expunges'])) {
|
if (! isset($cache['num_expunges'])) {
|
||||||
$cache['num_expunges'] = $lng['logger']['unknown'];
|
$cache['num_expunges'] = \Froxlor\I18N\Lang::getAll()['logger']['unknown'];
|
||||||
}
|
}
|
||||||
|
|
||||||
$runtimelines = '';
|
$runtimelines = '';
|
||||||
|
|||||||
@@ -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($lng['panel']['default']) . ")";
|
$title = $title . " (" . strtolower(\Froxlor\I18N\Lang::getAll()['panel']['default']) . ")";
|
||||||
}
|
}
|
||||||
$daemons_select .= \Froxlor\UI\HTML::makeoption($title, $di);
|
$daemons_select .= \Froxlor\UI\HTML::makeoption($title, $di);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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' => $lng['cron']['lastrun'],
|
'c.lastrun' => \Froxlor\I18N\Lang::getAll()['cron']['lastrun'],
|
||||||
'c.interval' => $lng['cron']['interval'],
|
'c.interval' => \Froxlor\I18N\Lang::getAll()['cron']['interval'],
|
||||||
'c.isactive' => $lng['cron']['isactive']
|
'c.isactive' => \Froxlor\I18N\Lang::getAll()['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) ? $lng['panel']['yes'] : $lng['panel']['no'];
|
$row['isactive'] = ((int) $row['isactive'] == 1) ? \Froxlor\I18N\Lang::getAll()['panel']['yes'] : \Froxlor\I18N\Lang::getAll()['panel']['no'];
|
||||||
|
|
||||||
$description = $lng['crondesc'][$row['desc_lng_key']];
|
$description = \Froxlor\I18N\Lang::getAll()['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($lng['cronmgmt']['minutes'], 'MINUTE', $interval_nfo[1]);
|
$interval_interval .= \Froxlor\UI\HTML::makeoption(\Froxlor\I18N\Lang::getAll()['cronmgmt']['minutes'], 'MINUTE', $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']['hours'], 'HOUR', $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']['days'], 'DAY', $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']['weeks'], 'WEEK', $interval_nfo[1]);
|
||||||
$interval_interval .= \Froxlor\UI\HTML::makeoption($lng['cronmgmt']['months'], 'MONTH', $interval_nfo[1]);
|
$interval_interval .= \Froxlor\UI\HTML::makeoption(\Froxlor\I18N\Lang::getAll()['cronmgmt']['months'], 'MONTH', $interval_nfo[1]);
|
||||||
// end of interval
|
// end of interval
|
||||||
|
|
||||||
$change_cronfile = false;
|
$change_cronfile = false;
|
||||||
|
|||||||
@@ -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' => $lng['login']['username'],
|
'c.loginname' => \Froxlor\I18N\Lang::getAll()['login']['username'],
|
||||||
'a.loginname' => $lng['admin']['admin'],
|
'a.loginname' => \Froxlor\I18N\Lang::getAll()['admin']['admin'],
|
||||||
'c.name' => $lng['customer']['name'],
|
'c.name' => \Froxlor\I18N\Lang::getAll()['customer']['name'],
|
||||||
'c.email' => $lng['customer']['email'],
|
'c.email' => \Froxlor\I18N\Lang::getAll()['customer']['email'],
|
||||||
'c.firstname' => $lng['customer']['firstname'],
|
'c.firstname' => \Froxlor\I18N\Lang::getAll()['customer']['firstname'],
|
||||||
'c.company' => $lng['customer']['company'],
|
'c.company' => \Froxlor\I18N\Lang::getAll()['customer']['company'],
|
||||||
'c.diskspace' => $lng['customer']['diskspace'],
|
'c.diskspace' => \Froxlor\I18N\Lang::getAll()['customer']['diskspace'],
|
||||||
'c.diskspace_used' => $lng['customer']['diskspace'] . ' (' . $lng['panel']['used'] . ')',
|
'c.diskspace_used' => \Froxlor\I18N\Lang::getAll()['customer']['diskspace'] . ' (' . \Froxlor\I18N\Lang::getAll()['panel']['used'] . ')',
|
||||||
'c.traffic' => $lng['customer']['traffic'],
|
'c.traffic' => \Froxlor\I18N\Lang::getAll()['customer']['traffic'],
|
||||||
'c.traffic_used' => $lng['customer']['traffic'] . ' (' . $lng['panel']['used'] . ')'
|
'c.traffic_used' => \Froxlor\I18N\Lang::getAll()['customer']['traffic'] . ' (' . \Froxlor\I18N\Lang::getAll()['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) ? $lng['panel']['neverloggedin'] : date('d.m.Y', $row['lastlogin_succ']);
|
$last_login = ((int) $row['lastlogin_succ'] == 0) ? \Froxlor\I18N\Lang::getAll()['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', $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);
|
||||||
$traffic_ul = \Froxlor\UI\HTML::makecheckbox('traffic_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);
|
||||||
$subdomains_ul = \Froxlor\UI\HTML::makecheckbox('subdomains_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);
|
||||||
$emails_ul = \Froxlor\UI\HTML::makecheckbox('emails_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);
|
||||||
$email_accounts_ul = \Froxlor\UI\HTML::makecheckbox('email_accounts_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_forwarders_ul = \Froxlor\UI\HTML::makecheckbox('email_forwarders_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_quota_ul = \Froxlor\UI\HTML::makecheckbox('email_quota_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);
|
||||||
$ftps_ul = \Froxlor\UI\HTML::makecheckbox('ftps_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);
|
||||||
$mysqls_ul = \Froxlor\UI\HTML::makecheckbox('mysqls_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);
|
||||||
|
|
||||||
$gender_options = \Froxlor\UI\HTML::makeoption($lng['gender']['undef'], 0, true, 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']['male'], 1, null, 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']['female'], 2, null, true, true);
|
$gender_options .= \Froxlor\UI\HTML::makeoption(\Froxlor\I18N\Lang::getAll()['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', $lng['customer']['unlimited'], '-1', false, $result['diskspace'], true, true);
|
$diskspace_ul = \Froxlor\UI\HTML::makecheckbox('diskspace_ul', \Froxlor\I18N\Lang::getAll()['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', $lng['customer']['unlimited'], '-1', false, $result['traffic'], true, true);
|
$traffic_ul = \Froxlor\UI\HTML::makecheckbox('traffic_ul', \Froxlor\I18N\Lang::getAll()['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', $lng['customer']['unlimited'], '-1', false, $result['subdomains'], true, true);
|
$subdomains_ul = \Froxlor\UI\HTML::makecheckbox('subdomains_ul', \Froxlor\I18N\Lang::getAll()['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', $lng['customer']['unlimited'], '-1', false, $result['emails'], true, true);
|
$emails_ul = \Froxlor\UI\HTML::makecheckbox('emails_ul', \Froxlor\I18N\Lang::getAll()['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', $lng['customer']['unlimited'], '-1', false, $result['email_accounts'], true, true);
|
$email_accounts_ul = \Froxlor\UI\HTML::makecheckbox('email_accounts_ul', \Froxlor\I18N\Lang::getAll()['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', $lng['customer']['unlimited'], '-1', false, $result['email_forwarders'], true, true);
|
$email_forwarders_ul = \Froxlor\UI\HTML::makecheckbox('email_forwarders_ul', \Froxlor\I18N\Lang::getAll()['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', $lng['customer']['unlimited'], '-1', false, $result['email_quota'], true, true);
|
$email_quota_ul = \Froxlor\UI\HTML::makecheckbox('email_quota_ul', \Froxlor\I18N\Lang::getAll()['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', $lng['customer']['unlimited'], '-1', false, $result['ftps'], true, true);
|
$ftps_ul = \Froxlor\UI\HTML::makecheckbox('ftps_ul', \Froxlor\I18N\Lang::getAll()['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', $lng['customer']['unlimited'], '-1', false, $result['mysqls'], true, true);
|
$mysqls_ul = \Froxlor\UI\HTML::makecheckbox('mysqls_ul', \Froxlor\I18N\Lang::getAll()['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($lng['gender']['undef'], 0, ($result['gender'] == '0' ? true : false), true, true);
|
$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']['male'], 1, ($result['gender'] == '1' ? 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']['female'], 2, ($result['gender'] == '2' ? true : false), true, true);
|
$gender_options .= \Froxlor\UI\HTML::makeoption(\Froxlor\I18N\Lang::getAll()['gender']['female'], 2, ($result['gender'] == '2' ? true : false), true, true);
|
||||||
|
|
||||||
$phpconfigs = array();
|
$phpconfigs = array();
|
||||||
$configs = Database::query("
|
$configs = Database::query("
|
||||||
|
|||||||
@@ -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' => $lng['domains']['domainname'],
|
'd.domain' => \Froxlor\I18N\Lang::getAll()['domains']['domainname'],
|
||||||
'c.name' => $lng['customer']['name'],
|
'c.name' => \Froxlor\I18N\Lang::getAll()['customer']['name'],
|
||||||
'c.firstname' => $lng['customer']['firstname'],
|
'c.firstname' => \Froxlor\I18N\Lang::getAll()['customer']['firstname'],
|
||||||
'c.company' => $lng['customer']['company'],
|
'c.company' => \Froxlor\I18N\Lang::getAll()['customer']['company'],
|
||||||
'c.loginname' => $lng['login']['username'],
|
'c.loginname' => \Froxlor\I18N\Lang::getAll()['login']['username'],
|
||||||
'd.aliasdomain' => $lng['domains']['aliasdomain']
|
'd.aliasdomain' => \Froxlor\I18N\Lang::getAll()['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($lng['panel']['please_choose'], 0, 0, true);
|
$customers = \Froxlor\UI\HTML::makeoption(\Froxlor\I18N\Lang::getAll()['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($lng['domains']['noaliasdomain'], 0, NULL, true);
|
$domains = \Froxlor\UI\HTML::makeoption(\Froxlor\I18N\Lang::getAll()['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($lng['domains']['nosubtomaindomain'], 0, NULL, true);
|
$subtodomains = \Froxlor\UI\HTML::makeoption(\Froxlor\I18N\Lang::getAll()['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($lng['domains']['serveraliasoption_wildcard'], '0', '0', true, true);
|
$serveraliasoptions .= \Froxlor\UI\HTML::makeoption(\Froxlor\I18N\Lang::getAll()['domains']['serveraliasoption_wildcard'], '0', '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_www'], '1', '0', true, true);
|
||||||
$serveraliasoptions .= \Froxlor\UI\HTML::makeoption($lng['domains']['serveraliasoption_none'], '2', '0', true, true);
|
$serveraliasoptions .= \Froxlor\UI\HTML::makeoption(\Froxlor\I18N\Lang::getAll()['domains']['serveraliasoption_none'], '2', '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']['never'], '0', '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']['choosableno'], '1', '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']['choosableyes'], '2', '0', true, true);
|
||||||
$subcanemaildomain .= \Froxlor\UI\HTML::makeoption($lng['admin']['subcanemaildomain']['always'], '3', '0', true, true);
|
$subcanemaildomain .= \Froxlor\UI\HTML::makeoption(\Froxlor\I18N\Lang::getAll()['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($lng['domains']['noaliasdomain'], 0, null, true);
|
$domains = \Froxlor\UI\HTML::makeoption(\Froxlor\I18N\Lang::getAll()['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($lng['domains']['nosubtomaindomain'], 0, null, true);
|
$subtodomains = \Froxlor\UI\HTML::makeoption(\Froxlor\I18N\Lang::getAll()['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($lng['domains']['serveraliasoption_wildcard'], '0', $_value, true, true);
|
$serveraliasoptions .= \Froxlor\UI\HTML::makeoption(\Froxlor\I18N\Lang::getAll()['domains']['serveraliasoption_wildcard'], '0', $_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_www'], '1', $_value, true, true);
|
||||||
$serveraliasoptions .= \Froxlor\UI\HTML::makeoption($lng['domains']['serveraliasoption_none'], '2', $_value, true, true);
|
$serveraliasoptions .= \Froxlor\UI\HTML::makeoption(\Froxlor\I18N\Lang::getAll()['domains']['serveraliasoption_none'], '2', $_value, 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']['never'], '0', $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']['choosableno'], '1', $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']['choosableyes'], '2', $result['subcanemaildomain'], true, true);
|
||||||
$subcanemaildomain .= \Froxlor\UI\HTML::makeoption($lng['admin']['subcanemaildomain']['always'], '3', $result['subcanemaildomain'], true, true);
|
$subcanemaildomain .= \Froxlor\UI\HTML::makeoption(\Froxlor\I18N\Lang::getAll()['admin']['subcanemaildomain']['always'], '3', $result['subcanemaildomain'], true, true);
|
||||||
$speciallogfile = ($result['speciallogfile'] == 1 ? $lng['panel']['yes'] : $lng['panel']['no']);
|
$speciallogfile = ($result['speciallogfile'] == 1 ? \Froxlor\I18N\Lang::getAll()['panel']['yes'] : \Froxlor\I18N\Lang::getAll()['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($lng['admin']['speciallogwarning'], $lng['admin']['delete_statistics']);
|
$speciallogwarning = sprintf(\Froxlor\I18N\Lang::getAll()['admin']['speciallogwarning'], \Froxlor\I18N\Lang::getAll()['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($lng['panel']['please_choose'], 0, 0, true);
|
$customers = \Froxlor\UI\HTML::makeoption(\Froxlor\I18N\Lang::getAll()['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");
|
||||||
|
|||||||
@@ -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 = $lng['admin']['lookfornewversion']['clickhere'];
|
$lookfornewversion_lable = \Froxlor\I18N\Lang::getAll()['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', $lng['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', \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()['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 = $lng['admin']['noloadavailable'];
|
$load = \Froxlor\I18N\Lang::getAll()['admin']['noloadavailable'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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' => $lng['admin']['ipsandports']['ip'],
|
'ip' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['ip'],
|
||||||
'port' => $lng['admin']['ipsandports']['port']
|
'port' => \Froxlor\I18N\Lang::getAll()['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 = '';
|
||||||
|
|||||||
@@ -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' => $lng['logger']['date'],
|
'date' => \Froxlor\I18N\Lang::getAll()['logger']['date'],
|
||||||
'type' => $lng['logger']['type'],
|
'type' => \Froxlor\I18N\Lang::getAll()['logger']['type'],
|
||||||
'user' => $lng['logger']['user'],
|
'user' => \Froxlor\I18N\Lang::getAll()['logger']['user'],
|
||||||
'text' => $lng['logger']['action']
|
'text' => \Froxlor\I18N\Lang::getAll()['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 = $lng['admin']['customer'];
|
$_action = \Froxlor\I18N\Lang::getAll()['admin']['customer'];
|
||||||
break;
|
break;
|
||||||
case RES_ACTION:
|
case RES_ACTION:
|
||||||
$_action = $lng['logger']['reseller'];
|
$_action = \Froxlor\I18N\Lang::getAll()['logger']['reseller'];
|
||||||
break;
|
break;
|
||||||
case ADM_ACTION:
|
case ADM_ACTION:
|
||||||
$_action = $lng['logger']['admin'];
|
$_action = \Froxlor\I18N\Lang::getAll()['logger']['admin'];
|
||||||
break;
|
break;
|
||||||
case CRON_ACTION:
|
case CRON_ACTION:
|
||||||
$_action = $lng['logger']['cron'];
|
$_action = \Froxlor\I18N\Lang::getAll()['logger']['cron'];
|
||||||
break;
|
break;
|
||||||
case LOGIN_ACTION:
|
case LOGIN_ACTION:
|
||||||
$_action = $lng['logger']['login'];
|
$_action = \Froxlor\I18N\Lang::getAll()['logger']['login'];
|
||||||
break;
|
break;
|
||||||
case LOG_ERROR:
|
case LOG_ERROR:
|
||||||
$_action = $lng['logger']['intern'];
|
$_action = \Froxlor\I18N\Lang::getAll()['logger']['intern'];
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
$_action = $lng['logger']['unknown'];
|
$_action = \Froxlor\I18N\Lang::getAll()['logger']['unknown'];
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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 = $lng['message']['noreceipients'];
|
$successmessage = \Froxlor\I18N\Lang::getAll()['message']['noreceipients'];
|
||||||
} else {
|
} else {
|
||||||
$successmessage = str_replace('%s', $sentitems, $lng['message']['success']);
|
$successmessage = str_replace('%s', $sentitems, \Froxlor\I18N\Lang::getAll()['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($lng['panel']['reseller'], 0);
|
$receipients .= \Froxlor\UI\HTML::makeoption(\Froxlor\I18N\Lang::getAll()['panel']['reseller'], 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
$receipients .= \Froxlor\UI\HTML::makeoption($lng['panel']['customer'], 1);
|
$receipients .= \Froxlor\UI\HTML::makeoption(\Froxlor\I18N\Lang::getAll()['panel']['customer'], 1);
|
||||||
eval("echo \"" . \Froxlor\UI\Template::getTemplate('message/message') . "\";");
|
eval("echo \"" . \Froxlor\UI\Template::getTemplate('message/message') . "\";");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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($lng['error']['no_opcacheinfo']);
|
\Froxlor\UI\Response::standard_error(\Froxlor\I18N\Lang::getAll()['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 = $lng['opcacheinfo']['novalue'];
|
$value = \Froxlor\I18N\Lang::getAll()['opcacheinfo']['novalue'];
|
||||||
}
|
}
|
||||||
if ($value === true) {
|
if ($value === true) {
|
||||||
$value = $lng['opcacheinfo']['true'];
|
$value = \Froxlor\I18N\Lang::getAll()['opcacheinfo']['true'];
|
||||||
}
|
}
|
||||||
if ($value === false) {
|
if ($value === false) {
|
||||||
$value = $lng['opcacheinfo']['false'];
|
$value = \Froxlor\I18N\Lang::getAll()['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']) : $lng['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']) : \Froxlor\I18N\Lang::getAll()['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'] ? $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'])))),
|
'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'])))),
|
||||||
'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) : ''),
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ if ($page == 'overview') {
|
|||||||
}
|
}
|
||||||
$count ++;
|
$count ++;
|
||||||
if ($subdomains_count == 0 && empty($domains)) {
|
if ($subdomains_count == 0 && empty($domains)) {
|
||||||
$domains = $lng['admin']['phpsettings']['notused'];
|
$domains = \Froxlor\I18N\Lang::getAll()['admin']['phpsettings']['notused'];
|
||||||
}
|
}
|
||||||
eval("\$tablecontent.=\"" . \Froxlor\UI\Template::getTemplate("phpconfig/overview_overview") . "\";");
|
eval("\$tablecontent.=\"" . \Froxlor\UI\Template::getTemplate("phpconfig/overview_overview") . "\";");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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' => $lng['admin']['plans']['name'],
|
'p.name' => \Froxlor\I18N\Lang::getAll()['admin']['plans']['name'],
|
||||||
'p.description' => $lng['admin']['plans']['description'],
|
'p.description' => \Froxlor\I18N\Lang::getAll()['admin']['plans']['description'],
|
||||||
'adminname' => $lng['admin']['admin'],
|
'adminname' => \Froxlor\I18N\Lang::getAll()['admin']['admin'],
|
||||||
'p.ts' => $lng['admin']['plans']['last_update']
|
'p.ts' => \Froxlor\I18N\Lang::getAll()['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', $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);
|
||||||
$traffic_ul = \Froxlor\UI\HTML::makecheckbox('traffic_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);
|
||||||
$subdomains_ul = \Froxlor\UI\HTML::makecheckbox('subdomains_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);
|
||||||
$emails_ul = \Froxlor\UI\HTML::makecheckbox('emails_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);
|
||||||
$email_accounts_ul = \Froxlor\UI\HTML::makecheckbox('email_accounts_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_forwarders_ul = \Froxlor\UI\HTML::makecheckbox('email_forwarders_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_quota_ul = \Froxlor\UI\HTML::makecheckbox('email_quota_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);
|
||||||
$ftps_ul = \Froxlor\UI\HTML::makecheckbox('ftps_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);
|
||||||
$mysqls_ul = \Froxlor\UI\HTML::makecheckbox('mysqls_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);
|
||||||
|
|
||||||
$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', $lng['customer']['unlimited'], '-1', false, $result['diskspace'], true, true);
|
$diskspace_ul = \Froxlor\UI\HTML::makecheckbox('diskspace_ul', \Froxlor\I18N\Lang::getAll()['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', $lng['customer']['unlimited'], '-1', false, $result['traffic'], true, true);
|
$traffic_ul = \Froxlor\UI\HTML::makecheckbox('traffic_ul', \Froxlor\I18N\Lang::getAll()['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', $lng['customer']['unlimited'], '-1', false, $result['subdomains'], true, true);
|
$subdomains_ul = \Froxlor\UI\HTML::makecheckbox('subdomains_ul', \Froxlor\I18N\Lang::getAll()['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', $lng['customer']['unlimited'], '-1', false, $result['emails'], true, true);
|
$emails_ul = \Froxlor\UI\HTML::makecheckbox('emails_ul', \Froxlor\I18N\Lang::getAll()['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', $lng['customer']['unlimited'], '-1', false, $result['email_accounts'], true, true);
|
$email_accounts_ul = \Froxlor\UI\HTML::makecheckbox('email_accounts_ul', \Froxlor\I18N\Lang::getAll()['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', $lng['customer']['unlimited'], '-1', false, $result['email_forwarders'], true, true);
|
$email_forwarders_ul = \Froxlor\UI\HTML::makecheckbox('email_forwarders_ul', \Froxlor\I18N\Lang::getAll()['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', $lng['customer']['unlimited'], '-1', false, $result['email_quota'], true, true);
|
$email_quota_ul = \Froxlor\UI\HTML::makecheckbox('email_quota_ul', \Froxlor\I18N\Lang::getAll()['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', $lng['customer']['unlimited'], '-1', false, $result['ftps'], true, true);
|
$ftps_ul = \Froxlor\UI\HTML::makecheckbox('ftps_ul', \Froxlor\I18N\Lang::getAll()['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', $lng['customer']['unlimited'], '-1', false, $result['mysqls'], true, true);
|
$mysqls_ul = \Froxlor\UI\HTML::makecheckbox('mysqls_ul', \Froxlor\I18N\Lang::getAll()['customer']['unlimited'], '-1', false, $result['mysqls'], true, true);
|
||||||
if ($result['mysqls'] == '-1') {
|
if ($result['mysqls'] == '-1') {
|
||||||
$result['mysqls'] = '';
|
$result['mysqls'] = '';
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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($lng['error']['session_timeout'], $lng['error']['session_timeout_desc']);
|
\Froxlor\UI\Response::standard_error(\Froxlor\I18N\Lang::getAll()['error']['session_timeout'], \Froxlor\I18N\Lang::getAll()['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($lng['error']['no_phpinfo']);
|
\Froxlor\UI\Response::standard_error(\Froxlor\I18N\Lang::getAll()['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 = $lng['integrity_check'][$check];
|
$checkdesc = \Froxlor\I18N\Lang::getAll()['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") . "\";");
|
||||||
|
|||||||
@@ -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 = $lng['admin']['templates'][$action];
|
$template = \Froxlor\I18N\Lang::getAll()['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'] . ' - ' . $lng['admin']['templates'][str_replace('_subject', '', $result['varname'])] . "'");
|
$log->logAction(ADM_ACTION, LOG_INFO, "deleted template '" . $result['language'] . ' - ' . \Froxlor\I18N\Lang::getAll()['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'] . ' - ' . $lng['admin']['templates'][str_replace('_subject', '', $result['varname'])]);
|
), $result['language'] . ' - ' . \Froxlor\I18N\Lang::getAll()['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 '" . $lng['admin']['templates'][$row['varname']] . "'");
|
$log->logAction(ADM_ACTION, LOG_INFO, "deleted template '" . \Froxlor\I18N\Lang::getAll()['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
|
||||||
), $lng['admin']['templates'][$row['varname']]);
|
), \Froxlor\I18N\Lang::getAll()['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 = $lng['mails'][$template]['subject'];
|
$subject = \Froxlor\I18N\Lang::getAll()['mails'][$template]['subject'];
|
||||||
$body = str_replace('\n', "\n", $lng['mails'][$template]['mailbody']);
|
$body = str_replace('\n', "\n", \Froxlor\I18N\Lang::getAll()['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($lng['admin']['templates'][$template], $template, NULL, true, true, $language_file) . "\n";
|
$template_options .= \Froxlor\UI\HTML::makeoption(\Froxlor\I18N\Lang::getAll()['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($lng['admin']['templates'][$template], $template, '', true);
|
$free_templates .= \Froxlor\UI\HTML::makeoption(\Froxlor\I18N\Lang::getAll()['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 = $lng['admin']['templates'][str_replace('_subject', '', $result['varname'])];
|
$template = \Froxlor\I18N\Lang::getAll()['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`
|
||||||
|
|||||||
@@ -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'] = $lng['traffic']['customer'];
|
$overview['type'] = \Froxlor\I18N\Lang::getAll()['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' => $lng['traffic']['months']['total']
|
'name' => \Froxlor\I18N\Lang::getAll()['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'));
|
||||||
|
|||||||
@@ -83,7 +83,7 @@ if ($page == 'overview') {
|
|||||||
$new_version = $version;
|
$new_version = $version;
|
||||||
$new_db_version = $dbversion;
|
$new_db_version = $dbversion;
|
||||||
|
|
||||||
$ui_text = $lng['update']['update_information']['part_a'];
|
$ui_text = \Froxlor\I18N\Lang::getAll()['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 .= $lng['update']['update_information']['part_b'];
|
$update_information .= \Froxlor\I18N\Lang::getAll()['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 = $lng['update']['noupdatesavail'];
|
$success_message = \Froxlor\I18N\Lang::getAll()['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') . "\";");
|
||||||
}
|
}
|
||||||
|
|||||||
12
api_keys.php
12
api_keys.php
@@ -59,7 +59,7 @@ if ($action == 'delete') {
|
|||||||
Database::pexecute($del_stmt, array(
|
Database::pexecute($del_stmt, array(
|
||||||
'id' => $id
|
'id' => $id
|
||||||
));
|
));
|
||||||
$success_message = sprintf($lng['apikeys']['apikey_removed'], $id);
|
$success_message = sprintf(\Froxlor\I18N\Lang::getAll()['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 = $lng['apikeys']['apikey_added'];
|
$success_message = \Froxlor\I18N\Lang::getAll()['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' => $lng['login']['username']
|
'a.loginname' => \Froxlor\I18N\Lang::getAll()['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' => $lng['login']['username']
|
'c.loginname' => \Froxlor\I18N\Lang::getAll()['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' => $lng['login']['username']
|
'a.loginname' => \Froxlor\I18N\Lang::getAll()['login']['username']
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -165,7 +165,7 @@ $apikeys = "";
|
|||||||
|
|
||||||
if (count($all_keys) == 0) {
|
if (count($all_keys) == 0) {
|
||||||
$count = 0;
|
$count = 0;
|
||||||
$message = $lng['apikeys']['no_api_keys'];
|
$message = \Froxlor\I18N\Lang::getAll()['apikeys']['no_api_keys'];
|
||||||
$sortcode = "";
|
$sortcode = "";
|
||||||
$searchcode = "";
|
$searchcode = "";
|
||||||
$pagingcode = "";
|
$pagingcode = "";
|
||||||
|
|||||||
@@ -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' => $lng['domains']['domainname']
|
'd.domain' => \Froxlor\I18N\Lang::getAll()['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($lng['domains']['noaliasdomain'], 0, NULL, true);
|
$aliasdomains = \Froxlor\UI\HTML::makeoption(\Froxlor\I18N\Lang::getAll()['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'] . ' (' . $lng['redirect_desc'][$rc['desc']] . ')', $rc['id']);
|
$redirectcode .= \Froxlor\UI\HTML::makeoption($rc['code'] . ' (' . \Froxlor\I18N\Lang::getAll()['redirect_desc'][$rc['desc']] . ')', $rc['id']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -288,7 +288,7 @@ if ($page == 'overview') {
|
|||||||
$ssl_ipsandports = 'notempty';
|
$ssl_ipsandports = 'notempty';
|
||||||
}
|
}
|
||||||
|
|
||||||
$openbasedir = \Froxlor\UI\HTML::makeoption($lng['domain']['docroot'], 0, NULL, true) . \Froxlor\UI\HTML::makeoption($lng['domain']['homedir'], 1, NULL, true);
|
$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);
|
||||||
$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($lng['domains']['noaliasdomain'], 0, $result['aliasdomain'], true);
|
$domains = \Froxlor\UI\HTML::makeoption(\Froxlor\I18N\Lang::getAll()['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'] . ' (' . $lng['redirect_desc'][$rc['desc']] . ')', $rc['id'], $def_code);
|
$redirectcode .= \Froxlor\UI\HTML::makeoption($rc['code'] . ' (' . \Froxlor\I18N\Lang::getAll()['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($lng['domain']['docroot'], 0, $result['openbasedir_path'], true) . \Froxlor\UI\HTML::makeoption($lng['domain']['homedir'], 1, $result['openbasedir_path'], true);
|
$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);
|
||||||
|
|
||||||
// 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($lng['domains']['serveraliasoption_wildcard'], '0', $_value, true, true);
|
$serveraliasoptions .= \Froxlor\UI\HTML::makeoption(\Froxlor\I18N\Lang::getAll()['domains']['serveraliasoption_wildcard'], '0', $_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_www'], '1', $_value, true, true);
|
||||||
$serveraliasoptions .= \Froxlor\UI\HTML::makeoption($lng['domains']['serveraliasoption_none'], '2', $_value, true, true);
|
$serveraliasoptions .= \Froxlor\UI\HTML::makeoption(\Froxlor\I18N\Lang::getAll()['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`
|
||||||
|
|||||||
@@ -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' => $lng['domains']['domainname'],
|
'd.domain' => \Froxlor\I18N\Lang::getAll()['domains']['domainname'],
|
||||||
'm.email_full' => $lng['emails']['emailaddress'],
|
'm.email_full' => \Froxlor\I18N\Lang::getAll()['emails']['emailaddress'],
|
||||||
'm.destination' => $lng['emails']['forwarders']
|
'm.destination' => \Froxlor\I18N\Lang::getAll()['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`
|
||||||
|
|||||||
@@ -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' => $lng['login']['username'],
|
'username' => \Froxlor\I18N\Lang::getAll()['login']['username'],
|
||||||
'path' => $lng['panel']['path']
|
'path' => \Froxlor\I18N\Lang::getAll()['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' => $lng['panel']['path'],
|
'path' => \Froxlor\I18N\Lang::getAll()['panel']['path'],
|
||||||
'options_indexes' => $lng['extras']['view_directory'],
|
'options_indexes' => \Froxlor\I18N\Lang::getAll()['extras']['view_directory'],
|
||||||
'error404path' => $lng['extras']['error404path'],
|
'error404path' => \Froxlor\I18N\Lang::getAll()['extras']['error404path'],
|
||||||
'error403path' => $lng['extras']['error403path'],
|
'error403path' => \Froxlor\I18N\Lang::getAll()['extras']['error403path'],
|
||||||
'error500path' => $lng['extras']['error500path'],
|
'error500path' => \Froxlor\I18N\Lang::getAll()['extras']['error500path'],
|
||||||
'options_cgi' => $lng['extras']['execute_perl']
|
'options_cgi' => \Froxlor\I18N\Lang::getAll()['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', $lng['panel']['yes'], $row['options_indexes']);
|
$row['options_indexes'] = str_replace('1', \Froxlor\I18N\Lang::getAll()['panel']['yes'], $row['options_indexes']);
|
||||||
$row['options_indexes'] = str_replace('0', $lng['panel']['no'], $row['options_indexes']);
|
$row['options_indexes'] = str_replace('0', \Froxlor\I18N\Lang::getAll()['panel']['no'], $row['options_indexes']);
|
||||||
$row['options_cgi'] = str_replace('1', $lng['panel']['yes'], $row['options_cgi']);
|
$row['options_cgi'] = str_replace('1', \Froxlor\I18N\Lang::getAll()['panel']['yes'], $row['options_cgi']);
|
||||||
$row['options_cgi'] = str_replace('0', $lng['panel']['no'], $row['options_cgi']);
|
$row['options_cgi'] = str_replace('0', \Froxlor\I18N\Lang::getAll()['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') ? $lng['panel']['yes'] : $lng['panel']['no'];
|
$row['backup_web'] = ($row['backup_web'] == '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_mail'] = ($row['backup_mail'] == '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'];
|
$row['backup_dbs'] = ($row['backup_dbs'] == '1') ? \Froxlor\I18N\Lang::getAll()['panel']['yes'] : \Froxlor\I18N\Lang::getAll()['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';
|
||||||
|
|||||||
@@ -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' => $lng['login']['username'],
|
'username' => \Froxlor\I18N\Lang::getAll()['login']['username'],
|
||||||
'homedir' => $lng['panel']['path'],
|
'homedir' => \Froxlor\I18N\Lang::getAll()['panel']['path'],
|
||||||
'description' => $lng['panel']['ftpdesc']
|
'description' => \Froxlor\I18N\Lang::getAll()['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);
|
||||||
|
|
||||||
|
|||||||
@@ -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', $lng['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', \Froxlor\I18N\Lang::getAll()['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']) : '';
|
||||||
|
|
||||||
|
|||||||
@@ -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' => $lng['logger']['date'],
|
'date' => \Froxlor\I18N\Lang::getAll()['logger']['date'],
|
||||||
'type' => $lng['logger']['type'],
|
'type' => \Froxlor\I18N\Lang::getAll()['logger']['type'],
|
||||||
'user' => $lng['logger']['user'],
|
'user' => \Froxlor\I18N\Lang::getAll()['logger']['user'],
|
||||||
'text' => $lng['logger']['action']
|
'text' => \Froxlor\I18N\Lang::getAll()['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 = $lng['admin']['customer'];
|
$_action = \Froxlor\I18N\Lang::getAll()['admin']['customer'];
|
||||||
break;
|
break;
|
||||||
case RES_ACTION:
|
case RES_ACTION:
|
||||||
$_action = $lng['logger']['reseller'];
|
$_action = \Froxlor\I18N\Lang::getAll()['logger']['reseller'];
|
||||||
break;
|
break;
|
||||||
case ADM_ACTION:
|
case ADM_ACTION:
|
||||||
$_action = $lng['logger']['admin'];
|
$_action = \Froxlor\I18N\Lang::getAll()['logger']['admin'];
|
||||||
break;
|
break;
|
||||||
case CRON_ACTION:
|
case CRON_ACTION:
|
||||||
$_action = $lng['logger']['cron'];
|
$_action = \Froxlor\I18N\Lang::getAll()['logger']['cron'];
|
||||||
break;
|
break;
|
||||||
case LOGIN_ACTION:
|
case LOGIN_ACTION:
|
||||||
$_action = $lng['logger']['login'];
|
$_action = \Froxlor\I18N\Lang::getAll()['logger']['login'];
|
||||||
break;
|
break;
|
||||||
case LOG_ERROR:
|
case LOG_ERROR:
|
||||||
$_action = $lng['logger']['intern'];
|
$_action = \Froxlor\I18N\Lang::getAll()['logger']['intern'];
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
$_action = $lng['logger']['unknown'];
|
$_action = \Froxlor\I18N\Lang::getAll()['logger']['unknown'];
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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();
|
||||||
$lng['mysql']['description'] = str_replace('<SQL_HOST>', $sql['host'], $lng['mysql']['description']);
|
\Froxlor\I18N\Lang::getAll()['mysql']['description'] = str_replace('<SQL_HOST>', $sql['host'], \Froxlor\I18N\Lang::getAll()['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' => $lng['mysql']['databasename'],
|
'databasename' => \Froxlor\I18N\Lang::getAll()['mysql']['databasename'],
|
||||||
'description' => $lng['mysql']['databasedescription']
|
'description' => \Froxlor\I18N\Lang::getAll()['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 . "`
|
||||||
|
|||||||
@@ -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 = $lng['traffic']['months'][intval($row['month'])] . ' ' . $row['year'];
|
$show = \Froxlor\I18N\Lang::getAll()['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'] = $lng['traffic']['months'][intval($row['month'])] . " " . $row['year'];
|
$traf['monthname'] = \Froxlor\I18N\Lang::getAll()['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')) {
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ if ($action == 'add_record' && ! empty($_POST)) {
|
|||||||
'content' => $content,
|
'content' => $content,
|
||||||
'ttl' => $ttl
|
'ttl' => $ttl
|
||||||
))->add();
|
))->add();
|
||||||
$success_message = $lng['success']['dns_record_added'];
|
$success_message = \Froxlor\I18N\Lang::getAll()['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 = $lng['success']['dns_record_deleted'];
|
$success_message = \Froxlor\I18N\Lang::getAll()['success']['dns_record_deleted'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
36
index.php
36
index.php
@@ -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($lng['mails']['2fa']['mailbody'], $replace_arr));
|
$mail_body = html_entity_decode(\Froxlor\PhpHelper::replace_variables(\Froxlor\I18N\Lang::getAll()['mails']['2fa']['mailbody'], $replace_arr));
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$mail->Subject = $lng['mails']['2fa']['subject'];
|
$mail->Subject = \Froxlor\I18N\Lang::getAll()['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($lng['login']['profile_lng'], 'profile', 'profile', true, true);
|
$language_options .= \Froxlor\UI\HTML::makeoption(\Froxlor\I18N\Lang::getAll()['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 = $lng['pwdreminder']['success'];
|
$successmessage = \Froxlor\I18N\Lang::getAll()['pwdreminder']['success'];
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
$message = $lng['error']['login'];
|
$message = \Froxlor\I18N\Lang::getAll()['error']['login'];
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
$message = sprintf($lng['error']['login_blocked'], Settings::Get('login.deactivatetime'));
|
$message = sprintf(\Froxlor\I18N\Lang::getAll()['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, $lng['error']['errorsendingmail']);
|
$message = str_replace('%s', $cmail, \Froxlor\I18N\Lang::getAll()['error']['errorsendingmail']);
|
||||||
break;
|
break;
|
||||||
case 5:
|
case 5:
|
||||||
$message = $lng['error']['user_banned'];
|
$message = \Froxlor\I18N\Lang::getAll()['error']['user_banned'];
|
||||||
break;
|
break;
|
||||||
case 6:
|
case 6:
|
||||||
$successmessage = $lng['pwdreminder']['changed'];
|
$successmessage = \Froxlor\I18N\Lang::getAll()['pwdreminder']['changed'];
|
||||||
break;
|
break;
|
||||||
case 7:
|
case 7:
|
||||||
$message = $lng['pwdreminder']['wrongcode'];
|
$message = \Froxlor\I18N\Lang::getAll()['pwdreminder']['wrongcode'];
|
||||||
break;
|
break;
|
||||||
case 8:
|
case 8:
|
||||||
$message = $lng['pwdreminder']['notallowed'];
|
$message = \Froxlor\I18N\Lang::getAll()['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 = $lng['update']['updateinprogress_onlyadmincanlogin'];
|
$update_in_progress = \Froxlor\I18N\Lang::getAll()['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'] : $lng['mails']['password_reset']['subject']), $replace_arr));
|
$mail_subject = html_entity_decode(\Froxlor\PhpHelper::replace_variables((($result['value'] != '') ? $result['value'] : \Froxlor\I18N\Lang::getAll()['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'] : $lng['mails']['password_reset']['mailbody']), $replace_arr));
|
$mail_body = html_entity_decode(\Froxlor\PhpHelper::replace_variables((($result['value'] != '') ? $result['value'] : \Froxlor\I18N\Lang::getAll()['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 = $lng['login']['combination_not_found'];
|
$message = \Froxlor\I18N\Lang::getAll()['login']['combination_not_found'];
|
||||||
}
|
}
|
||||||
|
|
||||||
unset($user);
|
unset($user);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$message = $lng['login']['usernotfound'];
|
$message = \Froxlor\I18N\Lang::getAll()['login']['usernotfound'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($adminchecked) {
|
if ($adminchecked) {
|
||||||
if (Settings::Get('panel.allow_preset_admin') != '1') {
|
if (Settings::Get('panel.allow_preset_admin') != '1') {
|
||||||
$message = $lng['pwdreminder']['notallowed'];
|
$message = \Froxlor\I18N\Lang::getAll()['pwdreminder']['notallowed'];
|
||||||
unset($adminchecked);
|
unset($adminchecked);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (Settings::Get('panel.allow_preset') != '1') {
|
if (Settings::Get('panel.allow_preset') != '1') {
|
||||||
$message = $lng['pwdreminder']['notallowed'];
|
$message = \Froxlor\I18N\Lang::getAll()['pwdreminder']['notallowed'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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> ';
|
$question = '<strong>Do you want to use wildcard-entries for existing domains?:</strong> ';
|
||||||
$question .= \Froxlor\UI\HTML::makeyesno('update_domainwildcardentry', '1', '0', '1');
|
$question .= \Froxlor\UI\HTML::makeyesno('update_domainwildcardentry', '1', '0', '1');
|
||||||
|
|
||||||
eval("\$return.=\"" . getTemplate("update/preconfigitem") . "\";");
|
eval("\$return.=\"" . \Froxlor\UI\Template::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> <input type="text" class="text" name="update_adminmail" value="' . Settings::Get('panel.adminmail') . '" />';
|
$question = '<strong>Please specify a new admin-email address:</strong> <input type="text" class="text" name="update_adminmail" value="' . Settings::Get('panel.adminmail') . '" />';
|
||||||
eval("\$return.=\"" . getTemplate("update/preconfigitem") . "\";");
|
eval("\$return.=\"" . \Froxlor\UI\Template::getTemplate("update/preconfigitem") . "\";");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -65,7 +65,7 @@ function parseAndOutputPreconfig(&$has_preconfig, &$return, $current_version, $c
|
|||||||
$question .= 'Path/URL for error 403: <input type="text" class="text" name="update_deferr_403" /><br /><br />';
|
$question .= 'Path/URL for error 403: <input type="text" class="text" name="update_deferr_403" /><br /><br />';
|
||||||
}
|
}
|
||||||
$question .= 'Path/URL for error 404: <input type="text" class="text" name="update_deferr_404" />';
|
$question .= 'Path/URL for error 404: <input type="text" class="text" name="update_deferr_404" />';
|
||||||
eval("\$return.=\"" . getTemplate("update/preconfigitem") . "\";");
|
eval("\$return.=\"" . \Froxlor\UI\Template::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> ';
|
$question = '<strong>Which should be the default ticket-priority?:</strong> ';
|
||||||
$question .= '<select name="update_deftic_priority">';
|
$question .= '<select name="update_deftic_priority">';
|
||||||
$priorities = makeoption($lng['ticket']['high'], '1', '2');
|
$priorities = \Froxlor\UI\HTML::makeoption(\Froxlor\I18N\Lang::getAll()['ticket']['high'], '1', '2');
|
||||||
$priorities .= makeoption($lng['ticket']['normal'], '2', '2');
|
$priorities .= \Froxlor\UI\HTML::makeoption(\Froxlor\I18N\Lang::getAll()['ticket']['normal'], '2', '2');
|
||||||
$priorities .= makeoption($lng['ticket']['low'], '3', '2');
|
$priorities .= \Froxlor\UI\HTML::makeoption(\Froxlor\I18N\Lang::getAll()['ticket']['low'], '3', '2');
|
||||||
$question .= $priorities . '</select>';
|
$question .= $priorities . '</select>';
|
||||||
eval("\$return.=\"" . getTemplate("update/preconfigitem") . "\";");
|
eval("\$return.=\"" . \Froxlor\UI\Template::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 .= makeoption($desc, $idx, '1');
|
$configs .= \Froxlor\UI\HTML::makeoption($desc, $idx, '1');
|
||||||
}
|
}
|
||||||
$question .= $configs . '</select>';
|
$question .= $configs . '</select>';
|
||||||
eval("\$return.=\"" . getTemplate("update/preconfigitem") . "\";");
|
eval("\$return.=\"" . \Froxlor\UI\Template::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> ';
|
$question = '<strong>Used FTPd-software:</strong> ';
|
||||||
$question .= '<select name="update_defsys_ftpserver">';
|
$question .= '<select name="update_defsys_ftpserver">';
|
||||||
$question .= makeoption('ProFTPd', 'proftpd', 'proftpd');
|
$question .= \Froxlor\UI\HTML::makeoption('ProFTPd', 'proftpd', 'proftpd');
|
||||||
$question .= makeoption('PureFTPd', 'pureftpd', 'proftpd');
|
$question .= \Froxlor\UI\HTML::makeoption('PureFTPd', 'pureftpd', 'proftpd');
|
||||||
$question .= '</select>';
|
$question .= '</select>';
|
||||||
eval("\$return.=\"" . getTemplate("update/preconfigitem") . "\";");
|
eval("\$return.=\"" . \Froxlor\UI\Template::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> ';
|
$question .= '<strong>Select default redirect code (default: empty):</strong> ';
|
||||||
$question .= '<select name="update_customredirect_default">';
|
$question .= '<select name="update_customredirect_default">';
|
||||||
$redirects = makeoption('--- (' . $lng['redirect_desc']['rc_default'] . ')', 1, '1');
|
$redirects = \Froxlor\UI\HTML::makeoption('--- (' . \Froxlor\I18N\Lang::getAll()['redirect_desc']['rc_default'] . ')', 1, '1');
|
||||||
$redirects .= makeoption('301 (' . $lng['redirect_desc']['rc_movedperm'] . ')', 2, '1');
|
$redirects .= \Froxlor\UI\HTML::makeoption('301 (' . \Froxlor\I18N\Lang::getAll()['redirect_desc']['rc_movedperm'] . ')', 2, '1');
|
||||||
$redirects .= makeoption('302 (' . $lng['redirect_desc']['rc_found'] . ')', 3, '1');
|
$redirects .= \Froxlor\UI\HTML::makeoption('302 (' . \Froxlor\I18N\Lang::getAll()['redirect_desc']['rc_found'] . ')', 3, '1');
|
||||||
$redirects .= makeoption('303 (' . $lng['redirect_desc']['rc_seeother'] . ')', 4, '1');
|
$redirects .= \Froxlor\UI\HTML::makeoption('303 (' . \Froxlor\I18N\Lang::getAll()['redirect_desc']['rc_seeother'] . ')', 4, '1');
|
||||||
$redirects .= makeoption('307 (' . $lng['redirect_desc']['rc_tempred'] . ')', 5, '1');
|
$redirects .= \Froxlor\UI\HTML::makeoption('307 (' . \Froxlor\I18N\Lang::getAll()['redirect_desc']['rc_tempred'] . ')', 5, '1');
|
||||||
$question .= $redirects . '</select>';
|
$question .= $redirects . '</select>';
|
||||||
eval("\$return.=\"" . getTemplate("update/preconfigitem") . "\";");
|
eval("\$return.=\"" . \Froxlor\UI\Template::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.=\"" . getTemplate("update/preconfigitem") . "\";");
|
eval("\$return.=\"" . \Froxlor\UI\Template::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> ';
|
$question = '<strong>Do you want these A-records to be created even with MX servers given?:</strong> ';
|
||||||
$question .= \Froxlor\UI\HTML::makeyesno('update_defdns_mailentry', '1', '0', '0');
|
$question .= \Froxlor\UI\HTML::makeyesno('update_defdns_mailentry', '1', '0', '0');
|
||||||
eval("\$return.=\"" . getTemplate("update/preconfigitem") . "\";");
|
eval("\$return.=\"" . \Froxlor\UI\Template::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.=\"" . getTemplate("update/preconfigitem") . "\";");
|
eval("\$return.=\"" . \Froxlor\UI\Template::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> ';
|
$question = '<strong>Do you want Froxlor to be reached directly via the hostname?:</strong> ';
|
||||||
$question .= \Froxlor\UI\HTML::makeyesno('update_directlyviahostname', '1', '0', '0');
|
$question .= \Froxlor\UI\HTML::makeyesno('update_directlyviahostname', '1', '0', '0');
|
||||||
eval("\$return.=\"" . getTemplate("update/preconfigitem") . "\";");
|
eval("\$return.=\"" . \Froxlor\UI\Template::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> ';
|
$question = '<strong>Enter a regular expression to force a higher password complexity (leave empty for none):</strong> ';
|
||||||
$question .= '<input type="text" class="text" name="update_pwdregex" value="" />';
|
$question .= '<input type="text" class="text" name="update_pwdregex" value="" />';
|
||||||
eval("\$return.=\"" . getTemplate("update/preconfigitem") . "\";");
|
eval("\$return.=\"" . \Froxlor\UI\Template::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> ';
|
$question = '<strong>Path to perl (default \'/usr/bin/perl\'):</strong> ';
|
||||||
$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.=\"" . getTemplate("update/preconfigitem") . "\";");
|
eval("\$return.=\"" . \Froxlor\UI\Template::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: ';
|
$question .= 'Local group: ';
|
||||||
$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.=\"" . getTemplate("update/preconfigitem") . "\";");
|
eval("\$return.=\"" . \Froxlor\UI\Template::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): ';
|
$question .= 'Path for symlinks (must be within suexec path): ';
|
||||||
$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.=\"" . getTemplate("update/preconfigitem") . "\";");
|
eval("\$return.=\"" . \Froxlor\UI\Template::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> ';
|
$question = '<strong>Path to \'awstats.pl\'?:</strong> ';
|
||||||
$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.=\"" . getTemplate("update/preconfigitem") . "\";");
|
eval("\$return.=\"" . \Froxlor\UI\Template::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> ';
|
$question = '<strong>How many autoresponders should your customers be able to add?:</strong> ';
|
||||||
$question .= '<input type="text" class="text" name="update_autoresponder_default" value="0" /> ' . \Froxlor\UI\HTML::makecheckbox('update_autoresponder_default', $lng['customer']['unlimited'], '-1', false, 0, true, true) . '<br />';
|
$question .= '<input type="text" class="text" name="update_autoresponder_default" value="0" /> ' . \Froxlor\UI\HTML::makecheckbox('update_autoresponder_default', \Froxlor\I18N\Lang::getAll()['customer']['unlimited'], '-1', false, 0, true, true) . '<br />';
|
||||||
eval("\$return.=\"" . getTemplate("update/preconfigitem") . "\";");
|
eval("\$return.=\"" . \Froxlor\UI\Template::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 .= makeoption($desc, $idx, '1');
|
$configs .= \Froxlor\UI\HTML::makeoption($desc, $idx, '1');
|
||||||
}
|
}
|
||||||
$question .= $configs . '</select>';
|
$question .= $configs . '</select>';
|
||||||
eval("\$return.=\"" . getTemplate("update/preconfigitem") . "\";");
|
eval("\$return.=\"" . \Froxlor\UI\Template::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> ';
|
$question = '<strong>Path to AWSTats icons folder:</strong> ';
|
||||||
$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.=\"" . getTemplate("update/preconfigitem") . "\";");
|
eval("\$return.=\"" . \Froxlor\UI\Template::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> ';
|
$question = '<strong>Enter filename (leave empty for none):</strong> ';
|
||||||
$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.=\"" . getTemplate("update/preconfigitem") . "\";");
|
eval("\$return.=\"" . \Froxlor\UI\Template::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> ';
|
$question = '<strong>Do you want to enable domain-login for all customers?:</strong> ';
|
||||||
$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.=\"" . getTemplate("update/preconfigitem") . "\";");
|
eval("\$return.=\"" . \Froxlor\UI\Template::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.=\"" . getTemplate("update/preconfigitem") . "\";");
|
eval("\$return.=\"" . \Froxlor\UI\Template::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: ';
|
$question .= 'Please specify the php-fpm rocess manager control: ';
|
||||||
$question .= '<select name="update_phpfpm_pm">';
|
$question .= '<select name="update_phpfpm_pm">';
|
||||||
$redirects = makeoption('static', 'static', 'static');
|
$redirects = \Froxlor\UI\HTML::makeoption('static', 'static', 'static');
|
||||||
$redirects .= makeoption('dynamic', 'dynamic', 'static');
|
$redirects .= \Froxlor\UI\HTML::makeoption('dynamic', 'dynamic', 'static');
|
||||||
$question .= $redirects . '</select><br /><br />';
|
$question .= $redirects . '</select><br /><br />';
|
||||||
$question .= 'Please specify the number of child processes: ';
|
$question .= 'Please specify the number of child processes: ';
|
||||||
$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: ';
|
$question .= 'Please specify the desired maximum number of idle server processes: ';
|
||||||
$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.=\"" . getTemplate("update/preconfigitem") . "\";");
|
eval("\$return.=\"" . \Froxlor\UI\Template::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: ';
|
$question .= 'Local group: ';
|
||||||
$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.=\"" . getTemplate("update/preconfigitem") . "\";");
|
eval("\$return.=\"" . \Froxlor\UI\Template::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: ';
|
$question .= 'Traffic warning level: ';
|
||||||
$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.=\"" . getTemplate("update/preconfigitem") . "\";");
|
eval("\$return.=\"" . \Froxlor\UI\Template::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 .= makeoption($cur_theme, $cur_theme, 'Froxlor');
|
$question .= \Froxlor\UI\HTML::makeoption($cur_theme, $cur_theme, 'Froxlor');
|
||||||
}
|
}
|
||||||
$question .= '</select>';
|
$question .= '</select>';
|
||||||
eval("\$return.=\"" . getTemplate("update/preconfigitem") . "\";");
|
eval("\$return.=\"" . \Froxlor\UI\Template::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 .= makeoption($cur_theme, $cur_theme, 'Froxlor');
|
$question .= \Froxlor\UI\HTML::makeoption($cur_theme, $cur_theme, 'Froxlor');
|
||||||
}
|
}
|
||||||
$question .= '</select>';
|
$question .= '</select>';
|
||||||
|
|
||||||
eval("\$return.=\"" . getTemplate("update/preconfigitem") . "\";");
|
eval("\$return.=\"" . \Froxlor\UI\Template::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> ';
|
$question = '<strong>Do you want to enable the Apache-2.4 modification?:</strong> ';
|
||||||
$question .= \Froxlor\UI\HTML::makeyesno('update_system_apache24', '1', '0', '0');
|
$question .= \Froxlor\UI\HTML::makeyesno('update_system_apache24', '1', '0', '0');
|
||||||
eval("\$return.=\"" . getTemplate("update/preconfigitem") . "\";");
|
eval("\$return.=\"" . \Froxlor\UI\Template::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> ';
|
$question = '<strong>Please enter full path to you nginx/fastcgi_params file (including filename):</strong> ';
|
||||||
$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.=\"" . getTemplate("update/preconfigitem") . "\";");
|
eval("\$return.=\"" . \Froxlor\UI\Template::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> ';
|
$question = '<strong>Do you want to automatically append the domain-name to the documentroot of newly created domains?:</strong> ';
|
||||||
$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.=\"" . getTemplate("update/preconfigitem") . "\";");
|
eval("\$return.=\"" . \Froxlor\UI\Template::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.=\"" . getTemplate("update/preconfigitem") . "\";");
|
eval("\$return.=\"" . \Froxlor\UI\Template::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> ';
|
$question = '<strong>Do you want to hide the standard-subdomains (this can be changed in the settings any time)?:</strong> ';
|
||||||
$question .= \Froxlor\UI\HTML::makeyesno('hide_stdsubdomains', '1', '0', '0');
|
$question .= \Froxlor\UI\HTML::makeyesno('hide_stdsubdomains', '1', '0', '0');
|
||||||
eval("\$return.=\"" . getTemplate("update/preconfigitem") . "\";");
|
eval("\$return.=\"" . \Froxlor\UI\Template::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> ';
|
$question = '<strong>If you want to disallow theme-changing, select "no" from the dropdowns:</strong> ';
|
||||||
$question .= "Admins: " . \Froxlor\UI\HTML::makeyesno('allow_themechange_a', '1', '0', '1') . ' ';
|
$question .= "Admins: " . \Froxlor\UI\HTML::makeyesno('allow_themechange_a', '1', '0', '1') . ' ';
|
||||||
$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.=\"" . getTemplate("update/preconfigitem") . "\";");
|
eval("\$return.=\"" . \Froxlor\UI\Template::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> ';
|
$question = '<strong>Enter a comma-separated list of AXFR servers or leave empty (default):</strong> ';
|
||||||
$question .= '<input type="text" class="text" name="system_afxrservers" value="" />';
|
$question .= '<input type="text" class="text" name="system_afxrservers" value="" />';
|
||||||
eval("\$return.=\"" . getTemplate("update/preconfigitem") . "\";");
|
eval("\$return.=\"" . \Froxlor\UI\Template::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> ';
|
$question = '<strong>Specify the directory for customer ssl-certificates:</strong> ';
|
||||||
$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.=\"" . getTemplate("update/preconfigitem") . "\";");
|
eval("\$return.=\"" . \Froxlor\UI\Template::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.=\"" . getTemplate("update/preconfigitem") . "\";");
|
eval("\$return.=\"" . \Froxlor\UI\Template::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
|
|||||||
</Location>
|
</Location>
|
||||||
</IfModule></pre>';
|
</IfModule></pre>';
|
||||||
$question = '';
|
$question = '';
|
||||||
eval("\$return.=\"" . getTemplate("update/preconfigitem") . "\";");
|
eval("\$return.=\"" . \Froxlor\UI\Template::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.=\"" . getTemplate("update/preconfigitem") . "\";");
|
eval("\$return.=\"" . \Froxlor\UI\Template::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.=\"" . getTemplate("update/preconfigitem") . "\";");
|
eval("\$return.=\"" . \Froxlor\UI\Template::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> ';
|
$question .= '<strong>Do you want to enable error-reporting for customers? (default: no):</strong> ';
|
||||||
$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.=\"" . getTemplate("update/preconfigitem") . "\";");
|
eval("\$return.=\"" . \Froxlor\UI\Template::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> ';
|
$question = '<strong>Do you want to enable the news-feed for admins? (default: yes):</strong> ';
|
||||||
$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.=\"" . getTemplate("update/preconfigitem") . "\";");
|
eval("\$return.=\"" . \Froxlor\UI\Template::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: ';
|
$question .= 'Type of your MTA: ';
|
||||||
$question .= '<select name="mtaserver">';
|
$question .= '<select name="mtaserver">';
|
||||||
$question .= makeoption('Postfix', 'postfix', 'postfix');
|
$question .= \Froxlor\UI\HTML::makeoption('Postfix', 'postfix', 'postfix');
|
||||||
$question .= makeoption('Exim4', 'exim4', 'postfix');
|
$question .= \Froxlor\UI\HTML::makeoption('Exim4', 'exim4', 'postfix');
|
||||||
$question .= '</select><br />';
|
$question .= '</select><br />';
|
||||||
$question .= 'Logfile for your MTA: ';
|
$question .= 'Logfile for your MTA: ';
|
||||||
$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: ';
|
$question .= 'Type of your MDA: ';
|
||||||
$question .= '<select name="mdaserver">';
|
$question .= '<select name="mdaserver">';
|
||||||
$question .= makeoption('Dovecot', 'dovecot', 'dovecot');
|
$question .= \Froxlor\UI\HTML::makeoption('Dovecot', 'dovecot', 'dovecot');
|
||||||
$question .= makeoption('Courier', 'courier', 'dovecot');
|
$question .= \Froxlor\UI\HTML::makeoption('Courier', 'courier', 'dovecot');
|
||||||
$question .= '</select><br /><br />';
|
$question .= '</select><br /><br />';
|
||||||
$question .= 'Logfile for your MDA: ';
|
$question .= 'Logfile for your MDA: ';
|
||||||
$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.=\"" . getTemplate("update/preconfigitem") . "\";");
|
eval("\$return.=\"" . \Froxlor\UI\Template::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.=\"" . getTemplate("update/preconfigitem") . "\";");
|
eval("\$return.=\"" . \Froxlor\UI\Template::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.=\"" . getTemplate("update/preconfigitem") . "\";");
|
eval("\$return.=\"" . \Froxlor\UI\Template::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.=\"" . getTemplate("update/preconfigitem") . "\";");
|
eval("\$return.=\"" . \Froxlor\UI\Template::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> ';
|
$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> ';
|
||||||
$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.=\"" . getTemplate("update/preconfigitem") . "\";");
|
eval("\$return.=\"" . \Froxlor\UI\Template::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> ';
|
$question = '<strong>Do you want to generate a bind-zone for the system-hostname? (default: no):</strong> ';
|
||||||
$question .= \Froxlor\UI\HTML::makeyesno('dns_createhostnameentry', '1', '0', '0') . '<br />';
|
$question .= \Froxlor\UI\HTML::makeyesno('dns_createhostnameentry', '1', '0', '0') . '<br />';
|
||||||
eval("\$return.=\"" . getTemplate("update/preconfigitem") . "\";");
|
eval("\$return.=\"" . \Froxlor\UI\Template::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> ';
|
$question = '<strong>Do you want to receive cron-errors via mail? (default: no):</strong> ';
|
||||||
$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.=\"" . getTemplate("update/preconfigitem") . "\";");
|
eval("\$return.=\"" . \Froxlor\UI\Template::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.=\"" . getTemplate("update/preconfigitem") . "\";");
|
eval("\$return.=\"" . \Froxlor\UI\Template::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> ';
|
$question = '<strong>Do you want to enable Let\'s Encrypt? (default: yes):</strong> ';
|
||||||
$question .= \Froxlor\UI\HTML::makeyesno('enable_letsencrypt', '1', '0', '1') . '<br />';
|
$question .= \Froxlor\UI\HTML::makeyesno('enable_letsencrypt', '1', '0', '1') . '<br />';
|
||||||
eval("\$return.=\"" . getTemplate("update/preconfigitem") . "\";");
|
eval("\$return.=\"" . \Froxlor\UI\Template::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> ';
|
$question = '<strong>Do you want to enable Backup? (default: no):</strong> ';
|
||||||
$question .= \Froxlor\UI\HTML::makeyesno('enable_backup', '1', '0', '0') . '<br />';
|
$question .= \Froxlor\UI\HTML::makeyesno('enable_backup', '1', '0', '0') . '<br />';
|
||||||
eval("\$return.=\"" . getTemplate("update/preconfigitem") . "\";");
|
eval("\$return.=\"" . \Froxlor\UI\Template::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> ';
|
$question = '<strong>Do you want to enable the DNS editor? (default: no):</strong> ';
|
||||||
$question .= \Froxlor\UI\HTML::makeyesno('enable_dns', '1', '0', '0') . '<br />';
|
$question .= \Froxlor\UI\HTML::makeyesno('enable_dns', '1', '0', '0') . '<br />';
|
||||||
eval("\$return.=\"" . getTemplate("update/preconfigitem") . "\";");
|
eval("\$return.=\"" . \Froxlor\UI\Template::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> ';
|
$question = '<strong>Select dns-daemon you want to use:</strong> ';
|
||||||
$question .= '<select name="new_dns_daemon">';
|
$question .= '<select name="new_dns_daemon">';
|
||||||
$dnsdaemons = makeoption('Bind9', 'bind', 'bind');
|
$dnsdaemons = \Froxlor\UI\HTML::makeoption('Bind9', 'bind', 'bind');
|
||||||
$dnsdaemons .= makeoption('PowerDNS', 'pdns', 'bind');
|
$dnsdaemons .= \Froxlor\UI\HTML::makeoption('PowerDNS', 'pdns', 'bind');
|
||||||
$question .= $dnsdaemons . '</select>';
|
$question .= $dnsdaemons . '</select>';
|
||||||
eval("\$return.=\"" . getTemplate("update/preconfigitem") . "\";");
|
eval("\$return.=\"" . \Froxlor\UI\Template::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.=\"" . getTemplate("update/preconfigitem") . "\";");
|
eval("\$return.=\"" . \Froxlor\UI\Template::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.=\"" . getTemplate("update/preconfigitem") . "\";");
|
eval("\$return.=\"" . \Froxlor\UI\Template::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.=\"" . getTemplate("update/preconfigitem") . "\";");
|
eval("\$return.=\"" . \Froxlor\UI\Template::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.=\"" . getTemplate("update/preconfigitem") . "\";");
|
eval("\$return.=\"" . \Froxlor\UI\Template::getTemplate("update/preconfigitem") . "\";");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -135,8 +135,6 @@ 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 . "`");
|
||||||
|
|
||||||
@@ -179,7 +177,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 = $lng;
|
$this->lng = \Froxlor\I18N\Lang::getAll();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -424,13 +424,12 @@ 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 $lng[$match[1]][$match[2]][$match[3]];
|
return \Froxlor\I18N\Lang::getAll()[$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 $lng[$match[1]][$match[2]];
|
return \Froxlor\I18N\Lang::getAll()[$match[1]][$match[2]];
|
||||||
} elseif (isset($match[1]) && $match[1] != '') {
|
} elseif (isset($match[1]) && $match[1] != '') {
|
||||||
return $lng[$match[1]];
|
return \Froxlor\I18N\Lang::getAll()[$match[1]];
|
||||||
}
|
}
|
||||||
return '';
|
return '';
|
||||||
} elseif (preg_match('/^const\.(.*)$/', $matches[1], $match)) {
|
} elseif (preg_match('/^const\.(.*)$/', $matches[1], $match)) {
|
||||||
|
|||||||
@@ -137,13 +137,12 @@ 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 $lng[$match[1]][$match[2]][$match[3]];
|
return \Froxlor\I18N\Lang::getAll()[$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 $lng[$match[1]][$match[2]];
|
return \Froxlor\I18N\Lang::getAll()[$match[1]][$match[2]];
|
||||||
} elseif (isset($match[1]) && $match[1] != '') {
|
} elseif (isset($match[1]) && $match[1] != '') {
|
||||||
return $lng[$match[1]];
|
return \Froxlor\I18N\Lang::getAll()[$match[1]];
|
||||||
}
|
}
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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'] : $lng['mails']['trafficmaxpercent']['subject']), $replace_arr));
|
$mail_subject = html_entity_decode(\Froxlor\PhpHelper::replace_variables((($result2['value'] != '') ? $result2['value'] : \Froxlor\I18N\Lang::getAll()['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'] : $lng['mails']['trafficmaxpercent']['mailbody']), $replace_arr));
|
$mail_body = html_entity_decode(\Froxlor\PhpHelper::replace_variables((($result2['value'] != '') ? $result2['value'] : \Froxlor\I18N\Lang::getAll()['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'] : $lng['mails']['trafficmaxpercent']['subject']), $replace_arr));
|
$mail_subject = html_entity_decode(\Froxlor\PhpHelper::replace_variables((($result2['value'] != '') ? $result2['value'] : \Froxlor\I18N\Lang::getAll()['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'] : $lng['mails']['trafficmaxpercent']['mailbody']), $replace_arr));
|
$mail_body = html_entity_decode(\Froxlor\PhpHelper::replace_variables((($result2['value'] != '') ? $result2['value'] : \Froxlor\I18N\Lang::getAll()['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'] : $lng['mails']['diskmaxpercent']['subject']), $replace_arr));
|
$mail_subject = html_entity_decode(\Froxlor\PhpHelper::replace_variables((($result2['value'] != '') ? $result2['value'] : \Froxlor\I18N\Lang::getAll()['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'] : $lng['mails']['diskmaxpercent']['mailbody']), $replace_arr));
|
$mail_body = html_entity_decode(\Froxlor\PhpHelper::replace_variables((($result2['value'] != '') ? $result2['value'] : \Froxlor\I18N\Lang::getAll()['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'] : $lng['mails']['diskmaxpercent']['subject']), $replace_arr));
|
$mail_subject = html_entity_decode(\Froxlor\PhpHelper::replace_variables((($result2['value'] != '') ? $result2['value'] : \Froxlor\I18N\Lang::getAll()['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'] : $lng['mails']['diskmaxpercent']['mailbody']), $replace_arr));
|
$mail_body = html_entity_decode(\Froxlor\PhpHelper::replace_variables((($result2['value'] != '') ? $result2['value'] : \Froxlor\I18N\Lang::getAll()['mails']['diskmaxpercent']['mailbody']), $replace_arr));
|
||||||
|
|
||||||
$_mailerror = false;
|
$_mailerror = false;
|
||||||
$mailerr_msg = "";
|
$mailerr_msg = "";
|
||||||
|
|||||||
@@ -35,8 +35,6 @@ 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);
|
||||||
|
|
||||||
@@ -44,7 +42,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']] .= ' (' . $lng['redirect_desc'][$rc['desc']] . ')';
|
$codes[$rc['id']] .= ' (' . \Froxlor\I18N\Lang::getAll()['redirect_desc'][$rc['desc']] . ')';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -332,4 +330,4 @@ class Domain
|
|||||||
}
|
}
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -73,9 +73,8 @@ class IpAddr
|
|||||||
|
|
||||||
public static function getSslIpPortCombinations()
|
public static function getSslIpPortCombinations()
|
||||||
{
|
{
|
||||||
global $lng;
|
|
||||||
return array(
|
return array(
|
||||||
'' => $lng['panel']['none_value']
|
'' => \Froxlor\I18N\Lang::getAll()['panel']['none_value']
|
||||||
) + self::getIpPortCombinations(true);
|
) + self::getIpPortCombinations(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -381,8 +381,6 @@ 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();
|
||||||
|
|
||||||
@@ -429,20 +427,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 = $lng['panel']['toomanydirs'];
|
// $field = \Froxlor\I18N\Lang::getAll()['panel']['toomanydirs'];
|
||||||
$field = array(
|
$field = array(
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
'value' => htmlspecialchars($value),
|
'value' => htmlspecialchars($value),
|
||||||
'note' => $lng['panel']['toomanydirs']
|
'note' => \Froxlor\I18N\Lang::getAll()['panel']['toomanydirs']
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// $field = $lng['panel']['dirsmissing'];
|
// $field = \Froxlor\I18N\Lang::getAll()['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' => $lng['panel']['dirsmissing']
|
'note' => \Froxlor\I18N\Lang::getAll()['panel']['dirsmissing']
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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 $lng, $theme;
|
global $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
|
||||||
|
|||||||
@@ -188,20 +188,18 @@ 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 = $lng['cronjobs']['notyetrun'];
|
$lastrun = \Froxlor\I18N\Lang::getAll()['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 = $lng['crondesc'][$row['desc_lng_key']];
|
$text = \Froxlor\I18N\Lang::getAll()['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") . "\";");
|
||||||
@@ -226,8 +224,6 @@ 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);
|
||||||
|
|
||||||
@@ -241,49 +237,49 @@ class Cronjob
|
|||||||
|
|
||||||
// rebuilding webserver-configuration
|
// rebuilding webserver-configuration
|
||||||
if ($row['type'] == '1') {
|
if ($row['type'] == '1') {
|
||||||
$task_desc = $lng['tasks']['rebuild_webserverconfig'];
|
$task_desc = \Froxlor\I18N\Lang::getAll()['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 = $lng['tasks']['adding_customer'];
|
$task_desc = \Froxlor\I18N\Lang::getAll()['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 = $lng['tasks']['rebuild_bindconfig'];
|
$task_desc = \Froxlor\I18N\Lang::getAll()['tasks']['rebuild_bindconfig'];
|
||||||
} // creating ftp-user directory
|
} // creating ftp-user directory
|
||||||
elseif ($row['type'] == '5') {
|
elseif ($row['type'] == '5') {
|
||||||
$task_desc = $lng['tasks']['creating_ftpdir'];
|
$task_desc = \Froxlor\I18N\Lang::getAll()['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 = $lng['tasks']['deleting_customerfiles'];
|
$task_desc = \Froxlor\I18N\Lang::getAll()['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 = $lng['tasks']['remove_emailacc_files'];
|
$task_desc = \Froxlor\I18N\Lang::getAll()['tasks']['remove_emailacc_files'];
|
||||||
} // deleting ftp-account
|
} // deleting ftp-account
|
||||||
elseif ($row['type'] == '8') {
|
elseif ($row['type'] == '8') {
|
||||||
$task_desc = $lng['tasks']['remove_ftpacc_files'];
|
$task_desc = \Froxlor\I18N\Lang::getAll()['tasks']['remove_ftpacc_files'];
|
||||||
} // Set FS - quota
|
} // Set FS - quota
|
||||||
elseif ($row['type'] == '10') {
|
elseif ($row['type'] == '10') {
|
||||||
$task_desc = $lng['tasks']['diskspace_set_quota'];
|
$task_desc = \Froxlor\I18N\Lang::getAll()['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 = $lng['tasks']['backup_customerfiles'];
|
$task_desc = \Froxlor\I18N\Lang::getAll()['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 = $lng['tasks']['regenerating_crond'];
|
$task_desc = \Froxlor\I18N\Lang::getAll()['tasks']['regenerating_crond'];
|
||||||
} // unknown
|
} // unknown
|
||||||
else {
|
else {
|
||||||
$task_desc = "ERROR: Unknown task type '" . $row['type'] . "'";
|
$task_desc = "ERROR: Unknown task type '" . $row['type'] . "'";
|
||||||
@@ -295,13 +291,13 @@ class Cronjob
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (trim($tasks) == '') {
|
if (trim($tasks) == '') {
|
||||||
$value .= '<li>' . $lng['tasks']['noneoutstanding'] . '</li>';
|
$value .= '<li>' . \Froxlor\I18N\Lang::getAll()['tasks']['noneoutstanding'] . '</li>';
|
||||||
} else {
|
} else {
|
||||||
$value .= $tasks;
|
$value .= $tasks;
|
||||||
}
|
}
|
||||||
|
|
||||||
$value .= '</ul>';
|
$value .= '</ul>';
|
||||||
$text = $lng['tasks']['outstanding_tasks'];
|
$text = \Froxlor\I18N\Lang::getAll()['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;
|
||||||
@@ -346,4 +342,4 @@ class Cronjob
|
|||||||
|
|
||||||
die($message);
|
die($message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -116,11 +116,9 @@ 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 => $lng['serversettings']['systemdefault']
|
0 => \Froxlor\I18N\Lang::getAll()['serversettings']['systemdefault']
|
||||||
);
|
);
|
||||||
if (defined('CRYPT_MD5') && CRYPT_MD5 == 1) {
|
if (defined('CRYPT_MD5') && CRYPT_MD5 == 1) {
|
||||||
$available_pwdhashes[1] = 'MD5';
|
$available_pwdhashes[1] = 'MD5';
|
||||||
|
|||||||
@@ -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 $lng, $theme;
|
global $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"' : '') . '>' . $lng['panel']['yes'] . '</option><option value="' . $novalue . '"' . ($yesselected ? '' : ' selected="selected"') . '>' . $lng['panel']['no'] . '</option></select>';
|
<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>';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -264,8 +264,8 @@ class HTML
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($lng['question'][$text])) {
|
if (isset(\Froxlor\I18N\Lang::getAll()['question'][$text])) {
|
||||||
$text = $lng['question'][$text];
|
$text = \Froxlor\I18N\Lang::getAll()['question'][$text];
|
||||||
}
|
}
|
||||||
|
|
||||||
$text = strtr($text, array(
|
$text = strtr($text, array(
|
||||||
@@ -287,12 +287,12 @@ class HTML
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($lng['question'][$text])) {
|
if (isset(\Froxlor\I18N\Lang::getAll()['question'][$text])) {
|
||||||
$text = $lng['question'][$text];
|
$text = \Froxlor\I18N\Lang::getAll()['question'][$text];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($lng['question'][$chk_text])) {
|
if (isset(\Froxlor\I18N\Lang::getAll()['question'][$chk_text])) {
|
||||||
$chk_text = $lng['question'][$chk_text];
|
$chk_text = \Froxlor\I18N\Lang::getAll()['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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ class HtmlForm
|
|||||||
|
|
||||||
public static function genHTMLForm($data = array())
|
public static function genHTMLForm($data = array())
|
||||||
{
|
{
|
||||||
global $lng, $theme;
|
global $theme;
|
||||||
$nob = false;
|
$nob = false;
|
||||||
|
|
||||||
self::$_form = '';
|
self::$_form = '';
|
||||||
@@ -233,7 +233,7 @@ class HtmlForm
|
|||||||
*
|
*
|
||||||
* <code>
|
* <code>
|
||||||
* $data = array(
|
* $data = array(
|
||||||
* 'label' => $lng['customer']['email_imap'],
|
* 'label' => \Froxlor\I18N\Lang::getAll()['customer']['email_imap'],
|
||||||
* 'type' => 'checkbox',
|
* 'type' => 'checkbox',
|
||||||
* 'values' => array(
|
* 'values' => array(
|
||||||
* array( 'label' => 'active',
|
* array( 'label' => 'active',
|
||||||
|
|||||||
@@ -405,8 +405,8 @@ class Paging
|
|||||||
|
|
||||||
$breakorws = ($break ? '<br />' : ' ');
|
$breakorws = ($break ? '<br />' : ' ');
|
||||||
foreach (array(
|
foreach (array(
|
||||||
'asc' => $lng['panel']['ascending'],
|
'asc' => \Froxlor\I18N\Lang::getAll()['panel']['ascending'],
|
||||||
'desc' => $lng['panel']['descending']
|
'desc' => \Froxlor\I18N\Lang::getAll()['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);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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']) . '">' . $lng['panel']['back'] . '</a>';
|
$link = '<a href="' . htmlentities($_SERVER['HTTP_REFERER']) . '">' . \Froxlor\I18N\Lang::getAll()['panel']['back'] . '</a>';
|
||||||
}
|
}
|
||||||
|
|
||||||
$error = '';
|
$error = '';
|
||||||
foreach ($errors as $single_error) {
|
foreach ($errors as $single_error) {
|
||||||
if (isset($lng['error'][$single_error])) {
|
if (isset(\Froxlor\I18N\Lang::getAll()['error'][$single_error])) {
|
||||||
$single_error = $lng['error'][$single_error];
|
$single_error = \Froxlor\I18N\Lang::getAll()['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']) . '">' . $lng['panel']['back'] . '</a>';
|
$link = '<a href="' . htmlentities($_SERVER['HTTP_REFERER']) . '">' . \Froxlor\I18N\Lang::getAll()['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($lng['success'][$success_message])) {
|
if (isset(\Froxlor\I18N\Lang::getAll()['success'][$success_message])) {
|
||||||
$success_message = strtr($lng['success'][$success_message], array(
|
$success_message = strtr(\Froxlor\I18N\Lang::getAll()['success'][$success_message], array(
|
||||||
'%s' => htmlentities($replacer)
|
'%s' => htmlentities($replacer)
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,65 +16,65 @@
|
|||||||
*/
|
*/
|
||||||
return array(
|
return array(
|
||||||
'admin_add' => array(
|
'admin_add' => array(
|
||||||
'title' => $lng['admin']['admin_add'],
|
'title' => \Froxlor\I18N\Lang::getAll()['admin']['admin_add'],
|
||||||
'image' => 'icons/user_add.png',
|
'image' => 'icons/user_add.png',
|
||||||
'sections' => array(
|
'sections' => array(
|
||||||
'section_a' => array(
|
'section_a' => array(
|
||||||
'title' => $lng['admin']['accountdata'],
|
'title' => \Froxlor\I18N\Lang::getAll()['admin']['accountdata'],
|
||||||
'image' => 'icons/user_add.png',
|
'image' => 'icons/user_add.png',
|
||||||
'fields' => array(
|
'fields' => array(
|
||||||
'new_loginname' => array(
|
'new_loginname' => array(
|
||||||
'label' => $lng['login']['username'],
|
'label' => \Froxlor\I18N\Lang::getAll()['login']['username'],
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
'mandatory' => true
|
'mandatory' => true
|
||||||
),
|
),
|
||||||
'admin_password' => array(
|
'admin_password' => array(
|
||||||
'label' => $lng['login']['password'],
|
'label' => \Froxlor\I18N\Lang::getAll()['login']['password'],
|
||||||
'type' => 'password',
|
'type' => 'password',
|
||||||
'mandatory' => true,
|
'mandatory' => true,
|
||||||
'autocomplete' => 'off'
|
'autocomplete' => 'off'
|
||||||
),
|
),
|
||||||
'admin_password_suggestion' => array(
|
'admin_password_suggestion' => array(
|
||||||
'label' => $lng['customer']['generated_pwd'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['login']['language'],
|
'label' => \Froxlor\I18N\Lang::getAll()['login']['language'],
|
||||||
'type' => 'select',
|
'type' => 'select',
|
||||||
'select_var' => $language_options
|
'select_var' => $language_options
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
'section_b' => array(
|
'section_b' => array(
|
||||||
'title' => $lng['admin']['contactdata'],
|
'title' => \Froxlor\I18N\Lang::getAll()['admin']['contactdata'],
|
||||||
'image' => 'icons/user_add.png',
|
'image' => 'icons/user_add.png',
|
||||||
'fields' => array(
|
'fields' => array(
|
||||||
'name' => array(
|
'name' => array(
|
||||||
'label' => $lng['customer']['name'],
|
'label' => \Froxlor\I18N\Lang::getAll()['customer']['name'],
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
'mandatory' => true
|
'mandatory' => true
|
||||||
),
|
),
|
||||||
'email' => array(
|
'email' => array(
|
||||||
'label' => $lng['customer']['email'],
|
'label' => \Froxlor\I18N\Lang::getAll()['customer']['email'],
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
'mandatory' => true
|
'mandatory' => true
|
||||||
),
|
),
|
||||||
'custom_notes' => array(
|
'custom_notes' => array(
|
||||||
'style' => 'align-top',
|
'style' => 'align-top',
|
||||||
'label' => $lng['usersettings']['custom_notes']['title'],
|
'label' => \Froxlor\I18N\Lang::getAll()['usersettings']['custom_notes']['title'],
|
||||||
'desc' => $lng['usersettings']['custom_notes']['description'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['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' => $lng['usersettings']['custom_notes']['show'],
|
'label' => \Froxlor\I18N\Lang::getAll()['usersettings']['custom_notes']['show'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array(
|
array(
|
||||||
'label' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
|
||||||
'value' => '1'
|
'value' => '1'
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
@@ -83,27 +83,27 @@ return array(
|
|||||||
)
|
)
|
||||||
),
|
),
|
||||||
'section_c' => array(
|
'section_c' => array(
|
||||||
'title' => $lng['admin']['servicedata'],
|
'title' => \Froxlor\I18N\Lang::getAll()['admin']['servicedata'],
|
||||||
'image' => 'icons/user_add.png',
|
'image' => 'icons/user_add.png',
|
||||||
'fields' => array(
|
'fields' => array(
|
||||||
'ipaddress' => array(
|
'ipaddress' => array(
|
||||||
'label' => $lng['serversettings']['ipaddress']['title'],
|
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['ipaddress']['title'],
|
||||||
'type' => 'select',
|
'type' => 'select',
|
||||||
'select_var' => $ipaddress
|
'select_var' => $ipaddress
|
||||||
),
|
),
|
||||||
'change_serversettings' => array(
|
'change_serversettings' => array(
|
||||||
'label' => $lng['admin']['change_serversettings'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['change_serversettings'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array(
|
array(
|
||||||
'label' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
|
||||||
'value' => '1'
|
'value' => '1'
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
'value' => array()
|
'value' => array()
|
||||||
),
|
),
|
||||||
'customers' => array(
|
'customers' => array(
|
||||||
'label' => $lng['admin']['customers'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['customers_see_all'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['customers_see_all'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array(
|
array(
|
||||||
'label' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
|
||||||
'value' => '1'
|
'value' => '1'
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
'value' => array()
|
'value' => array()
|
||||||
),
|
),
|
||||||
'domains' => array(
|
'domains' => array(
|
||||||
'label' => $lng['admin']['domains'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['domains_see_all'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['domains_see_all'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array(
|
array(
|
||||||
'label' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
|
||||||
'value' => '1'
|
'value' => '1'
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
'value' => array()
|
'value' => array()
|
||||||
),
|
),
|
||||||
'caneditphpsettings' => array(
|
'caneditphpsettings' => array(
|
||||||
'label' => $lng['admin']['caneditphpsettings'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['caneditphpsettings'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array(
|
array(
|
||||||
'label' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
|
||||||
'value' => '1'
|
'value' => '1'
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
'value' => array()
|
'value' => array()
|
||||||
),
|
),
|
||||||
'diskspace' => array(
|
'diskspace' => array(
|
||||||
'label' => $lng['customer']['diskspace'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['customer']['traffic'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['customer']['subdomains'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['customer']['emails'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['customer']['accounts'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['customer']['forwarders'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['customer']['email_quota'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['customer']['ftps'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['customer']['mysqls'],
|
'label' => \Froxlor\I18N\Lang::getAll()['customer']['mysqls'],
|
||||||
'type' => 'textul',
|
'type' => 'textul',
|
||||||
'value' => 0,
|
'value' => 0,
|
||||||
'maxlength' => 9,
|
'maxlength' => 9,
|
||||||
|
|||||||
@@ -16,24 +16,24 @@
|
|||||||
*/
|
*/
|
||||||
return array(
|
return array(
|
||||||
'admin_edit' => array(
|
'admin_edit' => array(
|
||||||
'title' => $lng['admin']['admin_edit'],
|
'title' => \Froxlor\I18N\Lang::getAll()['admin']['admin_edit'],
|
||||||
'image' => 'icons/user_edit.png',
|
'image' => 'icons/user_edit.png',
|
||||||
'sections' => array(
|
'sections' => array(
|
||||||
'section_a' => array(
|
'section_a' => array(
|
||||||
'title' => $lng['admin']['accountdata'],
|
'title' => \Froxlor\I18N\Lang::getAll()['admin']['accountdata'],
|
||||||
'image' => 'icons/user_edit.png',
|
'image' => 'icons/user_edit.png',
|
||||||
'fields' => array(
|
'fields' => array(
|
||||||
'loginname' => array(
|
'loginname' => array(
|
||||||
'label' => $lng['login']['username'],
|
'label' => \Froxlor\I18N\Lang::getAll()['login']['username'],
|
||||||
'type' => 'label',
|
'type' => 'label',
|
||||||
'value' => $result['loginname']
|
'value' => $result['loginname']
|
||||||
),
|
),
|
||||||
'deactivated' => array(
|
'deactivated' => array(
|
||||||
'label' => $lng['admin']['deactivated_user'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['deactivated_user'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array(
|
array(
|
||||||
'label' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['login']['password'] . ' (' . $lng['panel']['emptyfornochanges'] . ')',
|
'label' => \Froxlor\I18N\Lang::getAll()['login']['password'] . ' (' . \Froxlor\I18N\Lang::getAll()['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' => $lng['customer']['generated_pwd'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['login']['language'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['contactdata'],
|
'title' => \Froxlor\I18N\Lang::getAll()['admin']['contactdata'],
|
||||||
'image' => 'icons/user_edit.png',
|
'image' => 'icons/user_edit.png',
|
||||||
'fields' => array(
|
'fields' => array(
|
||||||
'name' => array(
|
'name' => array(
|
||||||
'label' => $lng['customer']['name'],
|
'label' => \Froxlor\I18N\Lang::getAll()['customer']['name'],
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
'mandatory' => true,
|
'mandatory' => true,
|
||||||
'value' => $result['name']
|
'value' => $result['name']
|
||||||
),
|
),
|
||||||
'email' => array(
|
'email' => array(
|
||||||
'label' => $lng['customer']['email'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['usersettings']['custom_notes']['title'],
|
'label' => \Froxlor\I18N\Lang::getAll()['usersettings']['custom_notes']['title'],
|
||||||
'desc' => $lng['usersettings']['custom_notes']['description'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['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' => $lng['usersettings']['custom_notes']['show'],
|
'label' => \Froxlor\I18N\Lang::getAll()['usersettings']['custom_notes']['show'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array(
|
array(
|
||||||
'label' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
|
||||||
'value' => '1'
|
'value' => '1'
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
@@ -104,21 +104,21 @@ return array(
|
|||||||
)
|
)
|
||||||
),
|
),
|
||||||
'section_c' => array(
|
'section_c' => array(
|
||||||
'title' => $lng['admin']['servicedata'],
|
'title' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['ipaddress']['title'],
|
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['ipaddress']['title'],
|
||||||
'type' => 'select',
|
'type' => 'select',
|
||||||
'select_var' => $ipaddress
|
'select_var' => $ipaddress
|
||||||
),
|
),
|
||||||
'change_serversettings' => array(
|
'change_serversettings' => array(
|
||||||
'label' => $lng['admin']['change_serversettings'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['change_serversettings'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array(
|
array(
|
||||||
'label' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
|
||||||
'value' => '1'
|
'value' => '1'
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
@@ -127,7 +127,7 @@ return array(
|
|||||||
)
|
)
|
||||||
),
|
),
|
||||||
'customers' => array(
|
'customers' => array(
|
||||||
'label' => $lng['admin']['customers'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['customers_see_all'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['customers_see_all'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array(
|
array(
|
||||||
'label' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
|
||||||
'value' => '1'
|
'value' => '1'
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
@@ -148,7 +148,7 @@ return array(
|
|||||||
)
|
)
|
||||||
),
|
),
|
||||||
'domains' => array(
|
'domains' => array(
|
||||||
'label' => $lng['admin']['domains'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['domains_see_all'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['domains_see_all'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array(
|
array(
|
||||||
'label' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
|
||||||
'value' => '1'
|
'value' => '1'
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
@@ -169,11 +169,11 @@ return array(
|
|||||||
)
|
)
|
||||||
),
|
),
|
||||||
'caneditphpsettings' => array(
|
'caneditphpsettings' => array(
|
||||||
'label' => $lng['admin']['caneditphpsettings'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['caneditphpsettings'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array(
|
array(
|
||||||
'label' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
|
||||||
'value' => '1'
|
'value' => '1'
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
@@ -182,7 +182,7 @@ return array(
|
|||||||
)
|
)
|
||||||
),
|
),
|
||||||
'diskspace' => array(
|
'diskspace' => array(
|
||||||
'label' => $lng['customer']['diskspace'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['customer']['traffic'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['customer']['subdomains'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['customer']['emails'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['customer']['accounts'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['customer']['forwarders'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['customer']['email_quota'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['customer']['ftps'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['customer']['mysqls'],
|
'label' => \Froxlor\I18N\Lang::getAll()['customer']['mysqls'],
|
||||||
'type' => 'textul',
|
'type' => 'textul',
|
||||||
'value' => $result['mysqls'],
|
'value' => $result['mysqls'],
|
||||||
'maxlength' => 9,
|
'maxlength' => 9,
|
||||||
|
|||||||
@@ -16,11 +16,11 @@
|
|||||||
*/
|
*/
|
||||||
return array(
|
return array(
|
||||||
'cronjobs_edit' => array(
|
'cronjobs_edit' => array(
|
||||||
'title' => $lng['admin']['cronjob_edit'],
|
'title' => \Froxlor\I18N\Lang::getAll()['admin']['cronjob_edit'],
|
||||||
'image' => 'icons/clock_edit.png',
|
'image' => 'icons/clock_edit.png',
|
||||||
'sections' => array(
|
'sections' => array(
|
||||||
'section_a' => array(
|
'section_a' => array(
|
||||||
'title' => $lng['cronjob']['cronjobsettings'],
|
'title' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['activated'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['activated'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array(
|
array(
|
||||||
'label' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
|
||||||
'value' => '1'
|
'value' => '1'
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
@@ -42,12 +42,12 @@ return array(
|
|||||||
)
|
)
|
||||||
),
|
),
|
||||||
'interval_value' => array(
|
'interval_value' => array(
|
||||||
'label' => $lng['cronjob']['cronjobintervalv'],
|
'label' => \Froxlor\I18N\Lang::getAll()['cronjob']['cronjobintervalv'],
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
'value' => $interval_value
|
'value' => $interval_value
|
||||||
),
|
),
|
||||||
'interval_interval' => array(
|
'interval_interval' => array(
|
||||||
'label' => $lng['cronjob']['cronjobinterval'],
|
'label' => \Froxlor\I18N\Lang::getAll()['cronjob']['cronjobinterval'],
|
||||||
'type' => 'select',
|
'type' => 'select',
|
||||||
'select_var' => $interval_interval
|
'select_var' => $interval_interval
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -16,23 +16,23 @@
|
|||||||
*/
|
*/
|
||||||
return array(
|
return array(
|
||||||
'customer_add' => array(
|
'customer_add' => array(
|
||||||
'title' => $lng['admin']['customer_add'],
|
'title' => \Froxlor\I18N\Lang::getAll()['admin']['customer_add'],
|
||||||
'image' => 'icons/user_add.png',
|
'image' => 'icons/user_add.png',
|
||||||
'sections' => array(
|
'sections' => array(
|
||||||
'section_a' => array(
|
'section_a' => array(
|
||||||
'title' => $lng['admin']['accountdata'],
|
'title' => \Froxlor\I18N\Lang::getAll()['admin']['accountdata'],
|
||||||
'image' => 'icons/user_add.png',
|
'image' => 'icons/user_add.png',
|
||||||
'fields' => array(
|
'fields' => array(
|
||||||
'new_loginname' => array(
|
'new_loginname' => array(
|
||||||
'label' => $lng['login']['username'],
|
'label' => \Froxlor\I18N\Lang::getAll()['login']['username'],
|
||||||
'type' => 'text'
|
'type' => 'text'
|
||||||
),
|
),
|
||||||
'createstdsubdomain' => array(
|
'createstdsubdomain' => array(
|
||||||
'label' => $lng['admin']['stdsubdomain_add'] . '?',
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['stdsubdomain_add'] . '?',
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array(
|
array(
|
||||||
'label' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
|
||||||
'value' => '1'
|
'value' => '1'
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
@@ -41,11 +41,11 @@ return array(
|
|||||||
)
|
)
|
||||||
),
|
),
|
||||||
'store_defaultindex' => array(
|
'store_defaultindex' => array(
|
||||||
'label' => $lng['admin']['store_defaultindex'] . '?',
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['store_defaultindex'] . '?',
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array(
|
array(
|
||||||
'label' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
|
||||||
'value' => '1'
|
'value' => '1'
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
@@ -54,22 +54,22 @@ return array(
|
|||||||
)
|
)
|
||||||
),
|
),
|
||||||
'new_customer_password' => array(
|
'new_customer_password' => array(
|
||||||
'label' => $lng['login']['password'],
|
'label' => \Froxlor\I18N\Lang::getAll()['login']['password'],
|
||||||
'type' => 'password',
|
'type' => 'password',
|
||||||
'autocomplete' => 'off'
|
'autocomplete' => 'off'
|
||||||
),
|
),
|
||||||
'new_customer_password_suggestion' => array(
|
'new_customer_password_suggestion' => array(
|
||||||
'label' => $lng['customer']['generated_pwd'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['sendpassword'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['sendpassword'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array(
|
array(
|
||||||
'label' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
|
||||||
'value' => '1'
|
'value' => '1'
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
@@ -78,79 +78,79 @@ return array(
|
|||||||
)
|
)
|
||||||
),
|
),
|
||||||
'def_language' => array(
|
'def_language' => array(
|
||||||
'label' => $lng['login']['language'],
|
'label' => \Froxlor\I18N\Lang::getAll()['login']['language'],
|
||||||
'type' => 'select',
|
'type' => 'select',
|
||||||
'select_var' => $language_options
|
'select_var' => $language_options
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
'section_b' => array(
|
'section_b' => array(
|
||||||
'title' => $lng['admin']['contactdata'],
|
'title' => \Froxlor\I18N\Lang::getAll()['admin']['contactdata'],
|
||||||
'image' => 'icons/user_add.png',
|
'image' => 'icons/user_add.png',
|
||||||
'fields' => array(
|
'fields' => array(
|
||||||
'name' => array(
|
'name' => array(
|
||||||
'label' => $lng['customer']['name'],
|
'label' => \Froxlor\I18N\Lang::getAll()['customer']['name'],
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
'mandatory_ex' => true
|
'mandatory_ex' => true
|
||||||
),
|
),
|
||||||
'firstname' => array(
|
'firstname' => array(
|
||||||
'label' => $lng['customer']['firstname'],
|
'label' => \Froxlor\I18N\Lang::getAll()['customer']['firstname'],
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
'mandatory_ex' => true
|
'mandatory_ex' => true
|
||||||
),
|
),
|
||||||
'gender' => array(
|
'gender' => array(
|
||||||
'label' => $lng['gender']['title'],
|
'label' => \Froxlor\I18N\Lang::getAll()['gender']['title'],
|
||||||
'type' => 'select',
|
'type' => 'select',
|
||||||
'select_var' => $gender_options
|
'select_var' => $gender_options
|
||||||
),
|
),
|
||||||
'company' => array(
|
'company' => array(
|
||||||
'label' => $lng['customer']['company'],
|
'label' => \Froxlor\I18N\Lang::getAll()['customer']['company'],
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
'mandatory_ex' => true
|
'mandatory_ex' => true
|
||||||
),
|
),
|
||||||
'street' => array(
|
'street' => array(
|
||||||
'label' => $lng['customer']['street'],
|
'label' => \Froxlor\I18N\Lang::getAll()['customer']['street'],
|
||||||
'type' => 'text'
|
'type' => 'text'
|
||||||
),
|
),
|
||||||
'zipcode' => array(
|
'zipcode' => array(
|
||||||
'label' => $lng['customer']['zipcode'],
|
'label' => \Froxlor\I18N\Lang::getAll()['customer']['zipcode'],
|
||||||
'type' => 'text'
|
'type' => 'text'
|
||||||
),
|
),
|
||||||
'city' => array(
|
'city' => array(
|
||||||
'label' => $lng['customer']['city'],
|
'label' => \Froxlor\I18N\Lang::getAll()['customer']['city'],
|
||||||
'type' => 'text'
|
'type' => 'text'
|
||||||
),
|
),
|
||||||
'phone' => array(
|
'phone' => array(
|
||||||
'label' => $lng['customer']['phone'],
|
'label' => \Froxlor\I18N\Lang::getAll()['customer']['phone'],
|
||||||
'type' => 'text'
|
'type' => 'text'
|
||||||
),
|
),
|
||||||
'fax' => array(
|
'fax' => array(
|
||||||
'label' => $lng['customer']['fax'],
|
'label' => \Froxlor\I18N\Lang::getAll()['customer']['fax'],
|
||||||
'type' => 'text'
|
'type' => 'text'
|
||||||
),
|
),
|
||||||
'email' => array(
|
'email' => array(
|
||||||
'label' => $lng['customer']['email'],
|
'label' => \Froxlor\I18N\Lang::getAll()['customer']['email'],
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
'mandatory' => true
|
'mandatory' => true
|
||||||
),
|
),
|
||||||
'customernumber' => array(
|
'customernumber' => array(
|
||||||
'label' => $lng['customer']['customernumber'],
|
'label' => \Froxlor\I18N\Lang::getAll()['customer']['customernumber'],
|
||||||
'type' => 'text'
|
'type' => 'text'
|
||||||
),
|
),
|
||||||
'custom_notes' => array(
|
'custom_notes' => array(
|
||||||
'style' => 'align-top',
|
'style' => 'align-top',
|
||||||
'label' => $lng['usersettings']['custom_notes']['title'],
|
'label' => \Froxlor\I18N\Lang::getAll()['usersettings']['custom_notes']['title'],
|
||||||
'desc' => $lng['usersettings']['custom_notes']['description'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['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' => $lng['usersettings']['custom_notes']['show'],
|
'label' => \Froxlor\I18N\Lang::getAll()['usersettings']['custom_notes']['show'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array(
|
array(
|
||||||
'label' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['plans']['use_plan'],
|
'title' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['plans']['use_plan'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['plans']['use_plan'],
|
||||||
'type' => 'select',
|
'type' => 'select',
|
||||||
'select_var' => $hosting_plans
|
'select_var' => $hosting_plans
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
'section_c' => array(
|
'section_c' => array(
|
||||||
'title' => $lng['admin']['servicedata'],
|
'title' => \Froxlor\I18N\Lang::getAll()['admin']['servicedata'],
|
||||||
'image' => 'icons/user_add.png',
|
'image' => 'icons/user_add.png',
|
||||||
'fields' => array(
|
'fields' => array(
|
||||||
'diskspace' => array(
|
'diskspace' => array(
|
||||||
'label' => $lng['customer']['diskspace'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['customer']['traffic'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['customer']['subdomains'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['customer']['emails'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['customer']['accounts'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['customer']['forwarders'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['customer']['email_quota'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['customer']['email_imap'],
|
'label' => \Froxlor\I18N\Lang::getAll()['customer']['email_imap'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array(
|
array(
|
||||||
'label' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
|
||||||
'value' => '1'
|
'value' => '1'
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
@@ -246,11 +246,11 @@ return array(
|
|||||||
'mandatory' => true
|
'mandatory' => true
|
||||||
),
|
),
|
||||||
'email_pop3' => array(
|
'email_pop3' => array(
|
||||||
'label' => $lng['customer']['email_pop3'],
|
'label' => \Froxlor\I18N\Lang::getAll()['customer']['email_pop3'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array(
|
array(
|
||||||
'label' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
|
||||||
'value' => '1'
|
'value' => '1'
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
@@ -260,14 +260,14 @@ return array(
|
|||||||
'mandatory' => true
|
'mandatory' => true
|
||||||
),
|
),
|
||||||
'ftps' => array(
|
'ftps' => array(
|
||||||
'label' => $lng['customer']['ftps'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['customer']['mysqls'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['phpenabled'] . '?',
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['phpenabled'] . '?',
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array(
|
array(
|
||||||
'label' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['phpsettings']['title'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['perlenabled'] . '?',
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['perlenabled'] . '?',
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array(
|
array(
|
||||||
'label' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
|
||||||
'value' => '1'
|
'value' => '1'
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
'dnsenabled' => array(
|
'dnsenabled' => array(
|
||||||
'label' => $lng['admin']['dnsenabled'] . '?',
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['dnsenabled'] . '?',
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array(
|
array(
|
||||||
'label' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['logviewenabled'] . '?',
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['logviewenabled'] . '?',
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array(
|
array(
|
||||||
'label' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
|
||||||
'value' => '1'
|
'value' => '1'
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -16,29 +16,29 @@
|
|||||||
*/
|
*/
|
||||||
return array(
|
return array(
|
||||||
'customer_edit' => array(
|
'customer_edit' => array(
|
||||||
'title' => $lng['admin']['customer_edit'],
|
'title' => \Froxlor\I18N\Lang::getAll()['admin']['customer_edit'],
|
||||||
'image' => 'icons/user_edit.png',
|
'image' => 'icons/user_edit.png',
|
||||||
'sections' => array(
|
'sections' => array(
|
||||||
'section_a' => array(
|
'section_a' => array(
|
||||||
'title' => $lng['admin']['accountdata'],
|
'title' => \Froxlor\I18N\Lang::getAll()['admin']['accountdata'],
|
||||||
'image' => 'icons/user_edit.png',
|
'image' => 'icons/user_edit.png',
|
||||||
'fields' => array(
|
'fields' => array(
|
||||||
'loginname' => array(
|
'loginname' => array(
|
||||||
'label' => $lng['login']['username'],
|
'label' => \Froxlor\I18N\Lang::getAll()['login']['username'],
|
||||||
'type' => 'label',
|
'type' => 'label',
|
||||||
'value' => $result['loginname']
|
'value' => $result['loginname']
|
||||||
),
|
),
|
||||||
'documentroot' => array(
|
'documentroot' => array(
|
||||||
'label' => $lng['customer']['documentroot'],
|
'label' => \Froxlor\I18N\Lang::getAll()['customer']['documentroot'],
|
||||||
'type' => 'label',
|
'type' => 'label',
|
||||||
'value' => $result['documentroot']
|
'value' => $result['documentroot']
|
||||||
),
|
),
|
||||||
'createstdsubdomain' => array(
|
'createstdsubdomain' => array(
|
||||||
'label' => $lng['admin']['stdsubdomain_add'] . '?',
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['stdsubdomain_add'] . '?',
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array(
|
array(
|
||||||
'label' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
|
||||||
'value' => '1'
|
'value' => '1'
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
@@ -47,11 +47,11 @@ return array(
|
|||||||
)
|
)
|
||||||
),
|
),
|
||||||
'deactivated' => array(
|
'deactivated' => array(
|
||||||
'label' => $lng['admin']['deactivated_user'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['deactivated_user'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array(
|
array(
|
||||||
'label' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
|
||||||
'value' => '1'
|
'value' => '1'
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
@@ -60,101 +60,101 @@ return array(
|
|||||||
)
|
)
|
||||||
),
|
),
|
||||||
'new_customer_password' => array(
|
'new_customer_password' => array(
|
||||||
'label' => $lng['login']['password'] . ' (' . $lng['panel']['emptyfornochanges'] . ')',
|
'label' => \Froxlor\I18N\Lang::getAll()['login']['password'] . ' (' . \Froxlor\I18N\Lang::getAll()['panel']['emptyfornochanges'] . ')',
|
||||||
'type' => 'password',
|
'type' => 'password',
|
||||||
'autocomplete' => 'off'
|
'autocomplete' => 'off'
|
||||||
),
|
),
|
||||||
'new_customer_password_suggestion' => array(
|
'new_customer_password_suggestion' => array(
|
||||||
'label' => $lng['customer']['generated_pwd'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['login']['language'],
|
'label' => \Froxlor\I18N\Lang::getAll()['login']['language'],
|
||||||
'type' => 'select',
|
'type' => 'select',
|
||||||
'select_var' => $language_options
|
'select_var' => $language_options
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
'section_b' => array(
|
'section_b' => array(
|
||||||
'title' => $lng['admin']['contactdata'],
|
'title' => \Froxlor\I18N\Lang::getAll()['admin']['contactdata'],
|
||||||
'image' => 'icons/user_edit.png',
|
'image' => 'icons/user_edit.png',
|
||||||
'fields' => array(
|
'fields' => array(
|
||||||
'name' => array(
|
'name' => array(
|
||||||
'label' => $lng['customer']['name'],
|
'label' => \Froxlor\I18N\Lang::getAll()['customer']['name'],
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
'mandatory_ex' => true,
|
'mandatory_ex' => true,
|
||||||
'value' => $result['name']
|
'value' => $result['name']
|
||||||
),
|
),
|
||||||
'firstname' => array(
|
'firstname' => array(
|
||||||
'label' => $lng['customer']['firstname'],
|
'label' => \Froxlor\I18N\Lang::getAll()['customer']['firstname'],
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
'mandatory_ex' => true,
|
'mandatory_ex' => true,
|
||||||
'value' => $result['firstname']
|
'value' => $result['firstname']
|
||||||
),
|
),
|
||||||
'gender' => array(
|
'gender' => array(
|
||||||
'label' => $lng['gender']['title'],
|
'label' => \Froxlor\I18N\Lang::getAll()['gender']['title'],
|
||||||
'type' => 'select',
|
'type' => 'select',
|
||||||
'select_var' => $gender_options
|
'select_var' => $gender_options
|
||||||
),
|
),
|
||||||
'company' => array(
|
'company' => array(
|
||||||
'label' => $lng['customer']['company'],
|
'label' => \Froxlor\I18N\Lang::getAll()['customer']['company'],
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
'mandatory_ex' => true,
|
'mandatory_ex' => true,
|
||||||
'value' => $result['company']
|
'value' => $result['company']
|
||||||
),
|
),
|
||||||
'street' => array(
|
'street' => array(
|
||||||
'label' => $lng['customer']['street'],
|
'label' => \Froxlor\I18N\Lang::getAll()['customer']['street'],
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
'value' => $result['street']
|
'value' => $result['street']
|
||||||
),
|
),
|
||||||
'zipcode' => array(
|
'zipcode' => array(
|
||||||
'label' => $lng['customer']['zipcode'],
|
'label' => \Froxlor\I18N\Lang::getAll()['customer']['zipcode'],
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
'value' => $result['zipcode']
|
'value' => $result['zipcode']
|
||||||
),
|
),
|
||||||
'city' => array(
|
'city' => array(
|
||||||
'label' => $lng['customer']['city'],
|
'label' => \Froxlor\I18N\Lang::getAll()['customer']['city'],
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
'value' => $result['city']
|
'value' => $result['city']
|
||||||
),
|
),
|
||||||
'phone' => array(
|
'phone' => array(
|
||||||
'label' => $lng['customer']['phone'],
|
'label' => \Froxlor\I18N\Lang::getAll()['customer']['phone'],
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
'value' => $result['phone']
|
'value' => $result['phone']
|
||||||
),
|
),
|
||||||
'fax' => array(
|
'fax' => array(
|
||||||
'label' => $lng['customer']['fax'],
|
'label' => \Froxlor\I18N\Lang::getAll()['customer']['fax'],
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
'value' => $result['fax']
|
'value' => $result['fax']
|
||||||
),
|
),
|
||||||
'email' => array(
|
'email' => array(
|
||||||
'label' => $lng['customer']['email'],
|
'label' => \Froxlor\I18N\Lang::getAll()['customer']['email'],
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
'mandatory' => true,
|
'mandatory' => true,
|
||||||
'value' => $result['email']
|
'value' => $result['email']
|
||||||
),
|
),
|
||||||
'customernumber' => array(
|
'customernumber' => array(
|
||||||
'label' => $lng['customer']['customernumber'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['usersettings']['custom_notes']['title'],
|
'label' => \Froxlor\I18N\Lang::getAll()['usersettings']['custom_notes']['title'],
|
||||||
'desc' => $lng['usersettings']['custom_notes']['description'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['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' => $lng['usersettings']['custom_notes']['show'],
|
'label' => \Froxlor\I18N\Lang::getAll()['usersettings']['custom_notes']['show'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array(
|
array(
|
||||||
'label' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['plans']['use_plan'],
|
'title' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['plans']['use_plan'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['plans']['use_plan'],
|
||||||
'type' => 'select',
|
'type' => 'select',
|
||||||
'select_var' => $hosting_plans
|
'select_var' => $hosting_plans
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
'section_c' => array(
|
'section_c' => array(
|
||||||
'title' => $lng['admin']['servicedata'],
|
'title' => \Froxlor\I18N\Lang::getAll()['admin']['servicedata'],
|
||||||
'image' => 'icons/user_edit.png',
|
'image' => 'icons/user_edit.png',
|
||||||
'fields' => array(
|
'fields' => array(
|
||||||
'diskspace' => array(
|
'diskspace' => array(
|
||||||
'label' => $lng['customer']['diskspace'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['customer']['traffic'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['customer']['subdomains'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['customer']['emails'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['customer']['accounts'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['customer']['forwarders'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['customer']['email_quota'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['customer']['email_imap'],
|
'label' => \Froxlor\I18N\Lang::getAll()['customer']['email_imap'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array(
|
array(
|
||||||
'label' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
|
||||||
'value' => '1'
|
'value' => '1'
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
@@ -252,11 +252,11 @@ return array(
|
|||||||
'mandatory' => true
|
'mandatory' => true
|
||||||
),
|
),
|
||||||
'email_pop3' => array(
|
'email_pop3' => array(
|
||||||
'label' => $lng['customer']['email_pop3'],
|
'label' => \Froxlor\I18N\Lang::getAll()['customer']['email_pop3'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array(
|
array(
|
||||||
'label' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
|
||||||
'value' => '1'
|
'value' => '1'
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
@@ -266,14 +266,14 @@ return array(
|
|||||||
'mandatory' => true
|
'mandatory' => true
|
||||||
),
|
),
|
||||||
'ftps' => array(
|
'ftps' => array(
|
||||||
'label' => $lng['customer']['ftps'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['customer']['mysqls'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['phpenabled'] . '?',
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['phpenabled'] . '?',
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array(
|
array(
|
||||||
'label' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['phpsettings']['title'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['perlenabled'] . '?',
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['perlenabled'] . '?',
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array(
|
array(
|
||||||
'label' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
|
||||||
'value' => '1'
|
'value' => '1'
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
@@ -315,11 +315,11 @@ return array(
|
|||||||
)
|
)
|
||||||
),
|
),
|
||||||
'dnsenabled' => array(
|
'dnsenabled' => array(
|
||||||
'label' => $lng['admin']['dnsenabled'] . '?',
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['dnsenabled'] . '?',
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array(
|
array(
|
||||||
'label' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['logviewenabled'] . '?',
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['logviewenabled'] . '?',
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array(
|
array(
|
||||||
'label' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
|
||||||
'value' => '1'
|
'value' => '1'
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
@@ -344,12 +344,12 @@ return array(
|
|||||||
)
|
)
|
||||||
),
|
),
|
||||||
'section_d' => array(
|
'section_d' => array(
|
||||||
'title' => $lng['admin']['movetoadmin'],
|
'title' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['movecustomertoadmin'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['movecustomertoadmin'],
|
||||||
'type' => 'select',
|
'type' => 'select',
|
||||||
'select_var' => $admin_select
|
'select_var' => $admin_select
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -16,11 +16,11 @@
|
|||||||
*/
|
*/
|
||||||
return array(
|
return array(
|
||||||
'domain_add' => array(
|
'domain_add' => array(
|
||||||
'title' => $lng['admin']['domain_add'],
|
'title' => \Froxlor\I18N\Lang::getAll()['admin']['domain_add'],
|
||||||
'image' => 'icons/domain_add.png',
|
'image' => 'icons/domain_add.png',
|
||||||
'sections' => array(
|
'sections' => array(
|
||||||
'section_a' => array(
|
'section_a' => array(
|
||||||
'title' => $lng['domains']['domainsettings'],
|
'title' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['customer'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['admin'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['admin'],
|
||||||
'type' => 'select',
|
'type' => 'select',
|
||||||
'select_var' => $admins,
|
'select_var' => $admins,
|
||||||
'mandatory' => true
|
'mandatory' => true
|
||||||
),
|
),
|
||||||
'alias' => array(
|
'alias' => array(
|
||||||
'label' => $lng['domains']['aliasdomain'],
|
'label' => \Froxlor\I18N\Lang::getAll()['domains']['aliasdomain'],
|
||||||
'type' => 'select',
|
'type' => 'select',
|
||||||
'select_var' => $domains
|
'select_var' => $domains
|
||||||
),
|
),
|
||||||
'issubof' => array(
|
'issubof' => array(
|
||||||
'label' => $lng['domains']['issubof'],
|
'label' => \Froxlor\I18N\Lang::getAll()['domains']['issubof'],
|
||||||
'desc' => $lng['domains']['issubofinfo'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['domains']['issubofinfo'],
|
||||||
'type' => 'select',
|
'type' => 'select',
|
||||||
'select_var' => $subtodomains
|
'select_var' => $subtodomains
|
||||||
),
|
),
|
||||||
'caneditdomain' => array(
|
'caneditdomain' => array(
|
||||||
'label' => $lng['admin']['domain_editable']['title'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['domain_editable']['title'],
|
||||||
'desc' => $lng['admin']['domain_editable']['desc'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['admin']['domain_editable']['desc'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array(
|
array(
|
||||||
'label' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
|
||||||
'value' => '1'
|
'value' => '1'
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
@@ -67,38 +67,38 @@ return array(
|
|||||||
)
|
)
|
||||||
),
|
),
|
||||||
'add_date' => array(
|
'add_date' => array(
|
||||||
'label' => $lng['domains']['add_date'],
|
'label' => \Froxlor\I18N\Lang::getAll()['domains']['add_date'],
|
||||||
'desc' => $lng['panel']['dateformat'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['panel']['dateformat'],
|
||||||
'type' => 'label',
|
'type' => 'label',
|
||||||
'value' => $add_date
|
'value' => $add_date
|
||||||
),
|
),
|
||||||
'registration_date' => array(
|
'registration_date' => array(
|
||||||
'label' => $lng['domains']['registration_date'],
|
'label' => \Froxlor\I18N\Lang::getAll()['domains']['registration_date'],
|
||||||
'desc' => $lng['panel']['dateformat'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['panel']['dateformat'],
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
'size' => 10
|
'size' => 10
|
||||||
),
|
),
|
||||||
'termination_date' => array(
|
'termination_date' => array(
|
||||||
'label' => $lng['domains']['termination_date'],
|
'label' => \Froxlor\I18N\Lang::getAll()['domains']['termination_date'],
|
||||||
'desc' => $lng['panel']['dateformat'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['panel']['dateformat'],
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
'size' => 10
|
'size' => 10
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
'section_b' => array(
|
'section_b' => array(
|
||||||
'title' => $lng['admin']['webserversettings'],
|
'title' => \Froxlor\I18N\Lang::getAll()['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' => $lng['panel']['emptyfordefault'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['panel']['emptyfordefault'],
|
||||||
'type' => 'text'
|
'type' => 'text'
|
||||||
),
|
),
|
||||||
'ipandport' => array(
|
'ipandport' => array(
|
||||||
'label' => $lng['domains']['ipandport_multi']['title'],
|
'label' => \Froxlor\I18N\Lang::getAll()['domains']['ipandport_multi']['title'],
|
||||||
'desc' => $lng['domains']['ipandport_multi']['description'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['selectserveralias'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['selectserveralias'],
|
||||||
'desc' => $lng['admin']['selectserveralias_desc'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['admin']['selectserveralias_desc'],
|
||||||
'type' => 'select',
|
'type' => 'select',
|
||||||
'select_var' => $serveraliasoptions
|
'select_var' => $serveraliasoptions
|
||||||
),
|
),
|
||||||
'speciallogfile' => array(
|
'speciallogfile' => array(
|
||||||
'label' => $lng['admin']['speciallogfile']['title'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['speciallogfile']['title'],
|
||||||
'desc' => $lng['admin']['speciallogfile']['description'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['admin']['speciallogfile']['description'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array(
|
array(
|
||||||
'label' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['ownvhostsettings'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['ownvhostsettings'],
|
||||||
'desc' => $lng['serversettings']['default_vhostconf']['description'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['notryfiles']['title'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['notryfiles']['title'],
|
||||||
'desc' => $lng['admin']['notryfiles']['description'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['admin']['notryfiles']['description'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array(
|
array(
|
||||||
'label' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
|
||||||
'value' => '1'
|
'value' => '1'
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
'value' => array()
|
'value' => array()
|
||||||
),
|
),
|
||||||
'writeaccesslog' => array(
|
'writeaccesslog' => array(
|
||||||
'label' => $lng['admin']['writeaccesslog']['title'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['writeaccesslog']['title'],
|
||||||
'desc' => $lng['admin']['writeaccesslog']['description'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['admin']['writeaccesslog']['description'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array(
|
array(
|
||||||
'label' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
|
||||||
'value' => '1'
|
'value' => '1'
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
@@ -160,12 +160,12 @@ return array(
|
|||||||
)
|
)
|
||||||
),
|
),
|
||||||
'writeerrorlog' => array(
|
'writeerrorlog' => array(
|
||||||
'label' => $lng['admin']['writeerrorlog']['title'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['writeerrorlog']['title'],
|
||||||
'desc' => $lng['admin']['writeerrorlog']['description'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['admin']['writeerrorlog']['description'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array(
|
array(
|
||||||
'label' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
|
||||||
'value' => '1'
|
'value' => '1'
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
@@ -176,13 +176,13 @@ return array(
|
|||||||
)
|
)
|
||||||
),
|
),
|
||||||
'section_bssl' => array(
|
'section_bssl' => array(
|
||||||
'title' => $lng['admin']['webserversettings_ssl'],
|
'title' => \Froxlor\I18N\Lang::getAll()['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' => $lng['domains']['ipandport_ssl_multi']['title'],
|
'label' => \Froxlor\I18N\Lang::getAll()['domains']['ipandport_ssl_multi']['title'],
|
||||||
'desc' => $lng['domains']['ipandport_ssl_multi']['description'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['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' => $lng['domains']['ssl_redirect']['title'],
|
'label' => \Froxlor\I18N\Lang::getAll()['domains']['ssl_redirect']['title'],
|
||||||
'desc' => $lng['domains']['ssl_redirect']['description'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['domains']['ssl_redirect']['description'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array(
|
array(
|
||||||
'label' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['letsencrypt']['title'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['letsencrypt']['title'],
|
||||||
'desc' => $lng['admin']['letsencrypt']['description'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['admin']['letsencrypt']['description'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array(
|
array(
|
||||||
'label' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['domain_http2']['title'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['domain_http2']['title'],
|
||||||
'desc' => $lng['admin']['domain_http2']['description'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['admin']['domain_http2']['description'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array(
|
array(
|
||||||
'label' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['panel']['nosslipsavailable']
|
'value' => \Froxlor\I18N\Lang::getAll()['panel']['nosslipsavailable']
|
||||||
),
|
),
|
||||||
'hsts_maxage' => array(
|
'hsts_maxage' => array(
|
||||||
'visible' => ($ssl_ipsandports != '' ? true : false),
|
'visible' => ($ssl_ipsandports != '' ? true : false),
|
||||||
'label' => $lng['admin']['domain_hsts_maxage']['title'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['domain_hsts_maxage']['title'],
|
||||||
'desc' => $lng['admin']['domain_hsts_maxage']['description'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['domain_hsts_incsub']['title'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['domain_hsts_incsub']['title'],
|
||||||
'desc' => $lng['admin']['domain_hsts_incsub']['description'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['admin']['domain_hsts_incsub']['description'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array(
|
array(
|
||||||
'label' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['domain_hsts_preload']['title'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['domain_hsts_preload']['title'],
|
||||||
'desc' => $lng['admin']['domain_hsts_preload']['description'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['admin']['domain_hsts_preload']['description'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array(
|
array(
|
||||||
'label' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['domain_ocsp_stapling']['title'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['domain_ocsp_stapling']['title'],
|
||||||
'desc' => $lng['admin']['domain_ocsp_stapling']['description'] . (\Froxlor\Settings::Get('system.webserver') == 'nginx' ? $lng['admin']['domain_ocsp_stapling']['nginx_version_warning'] : ""),
|
'desc' => \Froxlor\I18N\Lang::getAll()['admin']['domain_ocsp_stapling']['description'] . (\Froxlor\Settings::Get('system.webserver') == 'nginx' ? \Froxlor\I18N\Lang::getAll()['admin']['domain_ocsp_stapling']['nginx_version_warning'] : ""),
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array(
|
array(
|
||||||
'label' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
|
||||||
'value' => '1'
|
'value' => '1'
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
@@ -284,7 +284,7 @@ return array(
|
|||||||
)
|
)
|
||||||
),
|
),
|
||||||
'section_c' => array(
|
'section_c' => array(
|
||||||
'title' => $lng['admin']['phpserversettings'],
|
'title' => \Froxlor\I18N\Lang::getAll()['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' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
|
||||||
'value' => '1'
|
'value' => '1'
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
@@ -302,11 +302,11 @@ return array(
|
|||||||
)
|
)
|
||||||
),
|
),
|
||||||
'phpenabled' => array(
|
'phpenabled' => array(
|
||||||
'label' => $lng['admin']['phpenabled'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['phpenabled'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array(
|
array(
|
||||||
'label' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['phpsettings']['title'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['mod_fcgid_starter']['title'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['mod_fcgid_maxrequests']['title'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['mod_fcgid_maxrequests']['title'],
|
||||||
'type' => 'text'
|
'type' => 'text'
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
'section_d' => array(
|
'section_d' => array(
|
||||||
'title' => $lng['admin']['nameserversettings'],
|
'title' => \Froxlor\I18N\Lang::getAll()['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' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
|
||||||
'value' => '1'
|
'value' => '1'
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
@@ -352,21 +352,21 @@ return array(
|
|||||||
),
|
),
|
||||||
'zonefile' => array(
|
'zonefile' => array(
|
||||||
'label' => 'Zonefile',
|
'label' => 'Zonefile',
|
||||||
'desc' => $lng['admin']['bindzonewarning'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['admin']['bindzonewarning'],
|
||||||
'type' => 'text'
|
'type' => 'text'
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
'section_e' => array(
|
'section_e' => array(
|
||||||
'title' => $lng['admin']['mailserversettings'],
|
'title' => \Froxlor\I18N\Lang::getAll()['admin']['mailserversettings'],
|
||||||
'image' => 'icons/domain_add.png',
|
'image' => 'icons/domain_add.png',
|
||||||
'fields' => array(
|
'fields' => array(
|
||||||
'isemaildomain' => array(
|
'isemaildomain' => array(
|
||||||
'label' => $lng['admin']['emaildomain'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['emaildomain'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array(
|
array(
|
||||||
'label' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
|
||||||
'value' => '1'
|
'value' => '1'
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
@@ -375,18 +375,18 @@ return array(
|
|||||||
)
|
)
|
||||||
),
|
),
|
||||||
'email_only' => array(
|
'email_only' => array(
|
||||||
'label' => $lng['admin']['email_only'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['email_only'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array(
|
array(
|
||||||
'label' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
|
||||||
'value' => '1'
|
'value' => '1'
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
'value' => array()
|
'value' => array()
|
||||||
),
|
),
|
||||||
'subcanemaildomain' => array(
|
'subcanemaildomain' => array(
|
||||||
'label' => $lng['admin']['subdomainforemail'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
|
||||||
'value' => '1'
|
'value' => '1'
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -16,11 +16,11 @@
|
|||||||
*/
|
*/
|
||||||
return array(
|
return array(
|
||||||
'domain_edit' => array(
|
'domain_edit' => array(
|
||||||
'title' => $lng['admin']['domain_edit'],
|
'title' => \Froxlor\I18N\Lang::getAll()['admin']['domain_edit'],
|
||||||
'image' => 'icons/domain_edit.png',
|
'image' => 'icons/domain_edit.png',
|
||||||
'sections' => array(
|
'sections' => array(
|
||||||
'section_a' => array(
|
'section_a' => array(
|
||||||
'title' => $lng['domains']['domainsettings'],
|
'title' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['customer'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['admin'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['domains']['aliasdomain'],
|
'label' => \Froxlor\I18N\Lang::getAll()['domains']['aliasdomain'],
|
||||||
'type' => 'select',
|
'type' => 'select',
|
||||||
'select_var' => $domains
|
'select_var' => $domains
|
||||||
),
|
),
|
||||||
'issubof' => array(
|
'issubof' => array(
|
||||||
'label' => $lng['domains']['issubof'],
|
'label' => \Froxlor\I18N\Lang::getAll()['domains']['issubof'],
|
||||||
'desc' => $lng['domains']['issubofinfo'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['domains']['issubofinfo'],
|
||||||
'type' => 'select',
|
'type' => 'select',
|
||||||
'select_var' => $subtodomains
|
'select_var' => $subtodomains
|
||||||
),
|
),
|
||||||
'associated_info' => array(
|
'associated_info' => array(
|
||||||
'label' => $lng['domains']['associated_with_domain'],
|
'label' => \Froxlor\I18N\Lang::getAll()['domains']['associated_with_domain'],
|
||||||
'type' => 'label',
|
'type' => 'label',
|
||||||
'value' => $subdomains . ' ' . $lng['customer']['subdomains'] . ', ' . $alias_check . ' ' . $lng['domains']['aliasdomains'] . ', ' . $emails . ' ' . $lng['customer']['emails'] . ', ' . $email_accounts . ' ' . $lng['customer']['accounts'] . ', ' . $email_forwarders . ' ' . $lng['customer']['forwarders']
|
'value' => $subdomains . ' ' . \Froxlor\I18N\Lang::getAll()['customer']['subdomains'] . ', ' . $alias_check . ' ' . \Froxlor\I18N\Lang::getAll()['domains']['aliasdomains'] . ', ' . $emails . ' ' . \Froxlor\I18N\Lang::getAll()['customer']['emails'] . ', ' . $email_accounts . ' ' . \Froxlor\I18N\Lang::getAll()['customer']['accounts'] . ', ' . $email_forwarders . ' ' . \Froxlor\I18N\Lang::getAll()['customer']['forwarders']
|
||||||
),
|
),
|
||||||
'caneditdomain' => array(
|
'caneditdomain' => array(
|
||||||
'label' => $lng['admin']['domain_editable']['title'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['domain_editable']['title'],
|
||||||
'desc' => $lng['admin']['domain_editable']['desc'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['admin']['domain_editable']['desc'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array(
|
array(
|
||||||
'label' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
|
||||||
'value' => '1'
|
'value' => '1'
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
@@ -76,21 +76,21 @@ return array(
|
|||||||
)
|
)
|
||||||
),
|
),
|
||||||
'add_date' => array(
|
'add_date' => array(
|
||||||
'label' => $lng['domains']['add_date'],
|
'label' => \Froxlor\I18N\Lang::getAll()['domains']['add_date'],
|
||||||
'desc' => $lng['panel']['dateformat'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['panel']['dateformat'],
|
||||||
'type' => 'label',
|
'type' => 'label',
|
||||||
'value' => $result['add_date']
|
'value' => $result['add_date']
|
||||||
),
|
),
|
||||||
'registration_date' => array(
|
'registration_date' => array(
|
||||||
'label' => $lng['domains']['registration_date'],
|
'label' => \Froxlor\I18N\Lang::getAll()['domains']['registration_date'],
|
||||||
'desc' => $lng['panel']['dateformat'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['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' => $lng['domains']['termination_date'],
|
'label' => \Froxlor\I18N\Lang::getAll()['domains']['termination_date'],
|
||||||
'desc' => $lng['panel']['dateformat'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['webserversettings'],
|
'title' => \Froxlor\I18N\Lang::getAll()['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' => $lng['panel']['emptyfordefault'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['panel']['emptyfordefault'],
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
'value' => $result['documentroot']
|
'value' => $result['documentroot']
|
||||||
),
|
),
|
||||||
'ipandport' => array(
|
'ipandport' => array(
|
||||||
'label' => $lng['domains']['ipandport_multi']['title'],
|
'label' => \Froxlor\I18N\Lang::getAll()['domains']['ipandport_multi']['title'],
|
||||||
'desc' => $lng['domains']['ipandport_multi']['description'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['selectserveralias'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['selectserveralias'],
|
||||||
'desc' => $lng['admin']['selectserveralias_desc'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['admin']['selectserveralias_desc'],
|
||||||
'type' => 'select',
|
'type' => 'select',
|
||||||
'select_var' => $serveraliasoptions
|
'select_var' => $serveraliasoptions
|
||||||
),
|
),
|
||||||
'speciallogfile' => array(
|
'speciallogfile' => array(
|
||||||
'label' => $lng['admin']['speciallogfile']['title'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['speciallogfile']['title'],
|
||||||
'desc' => $lng['admin']['speciallogfile']['description'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['admin']['speciallogfile']['description'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array(
|
array(
|
||||||
'label' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['ownvhostsettings'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['ownvhostsettings'],
|
||||||
'desc' => $lng['serversettings']['default_vhostconf']['description'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['specialsettingsforsubdomains'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['specialsettingsforsubdomains'],
|
||||||
'desc' => $lng['serversettings']['specialsettingsforsubdomains']['description'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['serversettings']['specialsettingsforsubdomains']['description'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array(
|
array(
|
||||||
'label' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['notryfiles']['title'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['notryfiles']['title'],
|
||||||
'desc' => $lng['admin']['notryfiles']['description'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['admin']['notryfiles']['description'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array(
|
array(
|
||||||
'label' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
|
||||||
'value' => '1'
|
'value' => '1'
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
@@ -178,12 +178,12 @@ return array(
|
|||||||
)
|
)
|
||||||
),
|
),
|
||||||
'writeaccesslog' => array(
|
'writeaccesslog' => array(
|
||||||
'label' => $lng['admin']['writeaccesslog']['title'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['writeaccesslog']['title'],
|
||||||
'desc' => $lng['admin']['writeaccesslog']['description'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['admin']['writeaccesslog']['description'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array(
|
array(
|
||||||
'label' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
|
||||||
'value' => '1'
|
'value' => '1'
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
@@ -192,12 +192,12 @@ return array(
|
|||||||
)
|
)
|
||||||
),
|
),
|
||||||
'writeerrorlog' => array(
|
'writeerrorlog' => array(
|
||||||
'label' => $lng['admin']['writeerrorlog']['title'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['writeerrorlog']['title'],
|
||||||
'desc' => $lng['admin']['writeerrorlog']['description'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['admin']['writeerrorlog']['description'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array(
|
array(
|
||||||
'label' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
|
||||||
'value' => '1'
|
'value' => '1'
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
@@ -208,13 +208,13 @@ return array(
|
|||||||
)
|
)
|
||||||
),
|
),
|
||||||
'section_bssl' => array(
|
'section_bssl' => array(
|
||||||
'title' => $lng['admin']['webserversettings_ssl'],
|
'title' => \Froxlor\I18N\Lang::getAll()['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' => $lng['domains']['ipandport_ssl_multi']['title'],
|
'label' => \Froxlor\I18N\Lang::getAll()['domains']['ipandport_ssl_multi']['title'],
|
||||||
'desc' => $lng['domains']['ipandport_ssl_multi']['description'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['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' => $lng['domains']['ssl_redirect']['title'],
|
'label' => \Froxlor\I18N\Lang::getAll()['domains']['ssl_redirect']['title'],
|
||||||
'desc' => $lng['domains']['ssl_redirect']['description'] . ($result['temporary_ssl_redirect'] > 1 ? $lng['domains']['ssl_redirect_temporarilydisabled'] : ''),
|
'desc' => \Froxlor\I18N\Lang::getAll()['domains']['ssl_redirect']['description'] . ($result['temporary_ssl_redirect'] > 1 ? \Froxlor\I18N\Lang::getAll()['domains']['ssl_redirect_temporarilydisabled'] : ''),
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array(
|
array(
|
||||||
'label' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['letsencrypt']['title'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['letsencrypt']['title'],
|
||||||
'desc' => $lng['admin']['letsencrypt']['description'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['admin']['letsencrypt']['description'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array(
|
array(
|
||||||
'label' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['domain_http2']['title'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['domain_http2']['title'],
|
||||||
'desc' => $lng['admin']['domain_http2']['description'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['admin']['domain_http2']['description'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array(
|
array(
|
||||||
'label' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['panel']['nosslipsavailable']
|
'value' => \Froxlor\I18N\Lang::getAll()['panel']['nosslipsavailable']
|
||||||
),
|
),
|
||||||
'hsts_maxage' => array(
|
'hsts_maxage' => array(
|
||||||
'visible' => ($ssl_ipsandports != '' ? true : false),
|
'visible' => ($ssl_ipsandports != '' ? true : false),
|
||||||
'label' => $lng['admin']['domain_hsts_maxage']['title'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['domain_hsts_maxage']['title'],
|
||||||
'desc' => $lng['admin']['domain_hsts_maxage']['description'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['domain_hsts_incsub']['title'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['domain_hsts_incsub']['title'],
|
||||||
'desc' => $lng['admin']['domain_hsts_incsub']['description'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['admin']['domain_hsts_incsub']['description'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array(
|
array(
|
||||||
'label' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['domain_hsts_preload']['title'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['domain_hsts_preload']['title'],
|
||||||
'desc' => $lng['admin']['domain_hsts_preload']['description'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['admin']['domain_hsts_preload']['description'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array(
|
array(
|
||||||
'label' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['domain_ocsp_stapling']['title'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['domain_ocsp_stapling']['title'],
|
||||||
'desc' => $lng['admin']['domain_ocsp_stapling']['description'] . (\Froxlor\Settings::Get('system.webserver') == 'nginx' ? $lng['admin']['domain_ocsp_stapling']['nginx_version_warning'] : ""),
|
'desc' => \Froxlor\I18N\Lang::getAll()['admin']['domain_ocsp_stapling']['description'] . (\Froxlor\Settings::Get('system.webserver') == 'nginx' ? \Froxlor\I18N\Lang::getAll()['admin']['domain_ocsp_stapling']['nginx_version_warning'] : ""),
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array(
|
array(
|
||||||
'label' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
|
||||||
'value' => '1'
|
'value' => '1'
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
@@ -328,7 +328,7 @@ return array(
|
|||||||
)
|
)
|
||||||
),
|
),
|
||||||
'section_c' => array(
|
'section_c' => array(
|
||||||
'title' => $lng['admin']['phpserversettings'],
|
'title' => \Froxlor\I18N\Lang::getAll()['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' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
|
||||||
'value' => '1'
|
'value' => '1'
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
@@ -346,11 +346,11 @@ return array(
|
|||||||
)
|
)
|
||||||
),
|
),
|
||||||
'phpenabled' => array(
|
'phpenabled' => array(
|
||||||
'label' => $lng['admin']['phpenabled'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['phpenabled'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array(
|
array(
|
||||||
'label' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['phpsettings']['title'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['phpsettingsforsubdomains'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['phpsettingsforsubdomains'],
|
||||||
'desc' => $lng['serversettings']['phpsettingsforsubdomains']['description'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpsettingsforsubdomains']['description'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array(
|
array(
|
||||||
'label' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['mod_fcgid_starter']['title'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['mod_fcgid_maxrequests']['title'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['nameserversettings'],
|
'title' => \Froxlor\I18N\Lang::getAll()['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' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
|
||||||
'value' => '1'
|
'value' => '1'
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
@@ -413,22 +413,22 @@ return array(
|
|||||||
),
|
),
|
||||||
'zonefile' => array(
|
'zonefile' => array(
|
||||||
'label' => 'Zonefile',
|
'label' => 'Zonefile',
|
||||||
'desc' => $lng['admin']['bindzonewarning'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['admin']['bindzonewarning'],
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
'value' => $result['zonefile']
|
'value' => $result['zonefile']
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
'section_e' => array(
|
'section_e' => array(
|
||||||
'title' => $lng['admin']['mailserversettings'],
|
'title' => \Froxlor\I18N\Lang::getAll()['admin']['mailserversettings'],
|
||||||
'image' => 'icons/domain_edit.png',
|
'image' => 'icons/domain_edit.png',
|
||||||
'fields' => array(
|
'fields' => array(
|
||||||
'isemaildomain' => array(
|
'isemaildomain' => array(
|
||||||
'label' => $lng['admin']['emaildomain'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['emaildomain'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array(
|
array(
|
||||||
'label' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
|
||||||
'value' => '1'
|
'value' => '1'
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
@@ -437,11 +437,11 @@ return array(
|
|||||||
)
|
)
|
||||||
),
|
),
|
||||||
'email_only' => array(
|
'email_only' => array(
|
||||||
'label' => $lng['admin']['email_only'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['email_only'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array(
|
array(
|
||||||
'label' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
|
||||||
'value' => '1'
|
'value' => '1'
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
@@ -450,7 +450,7 @@ return array(
|
|||||||
)
|
)
|
||||||
),
|
),
|
||||||
'subcanemaildomain' => array(
|
'subcanemaildomain' => array(
|
||||||
'label' => $lng['admin']['subdomainforemail'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
|
||||||
'value' => '1'
|
'value' => '1'
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -16,35 +16,35 @@
|
|||||||
*/
|
*/
|
||||||
return array(
|
return array(
|
||||||
'domain_import' => array(
|
'domain_import' => array(
|
||||||
'title' => $lng['domains']['domain_import'],
|
'title' => \Froxlor\I18N\Lang::getAll()['domains']['domain_import'],
|
||||||
'image' => 'icons/domain_add.png',
|
'image' => 'icons/domain_add.png',
|
||||||
'sections' => array(
|
'sections' => array(
|
||||||
'section_a' => array(
|
'section_a' => array(
|
||||||
'title' => $lng['domains']['domain_import'],
|
'title' => \Froxlor\I18N\Lang::getAll()['domains']['domain_import'],
|
||||||
'image' => 'icons/domain_add.png',
|
'image' => 'icons/domain_add.png',
|
||||||
'fields' => array(
|
'fields' => array(
|
||||||
'customerid' => array(
|
'customerid' => array(
|
||||||
'label' => $lng['admin']['customer'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['customer'],
|
||||||
'type' => 'select',
|
'type' => 'select',
|
||||||
'select_var' => $customers,
|
'select_var' => $customers,
|
||||||
'mandatory' => true
|
'mandatory' => true
|
||||||
),
|
),
|
||||||
'separator' => array(
|
'separator' => array(
|
||||||
'label' => $lng['domains']['import_separator'],
|
'label' => \Froxlor\I18N\Lang::getAll()['domains']['import_separator'],
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
'mandatory' => true,
|
'mandatory' => true,
|
||||||
'size' => 5,
|
'size' => 5,
|
||||||
'value' => ';'
|
'value' => ';'
|
||||||
),
|
),
|
||||||
'offset' => array(
|
'offset' => array(
|
||||||
'label' => $lng['domains']['import_offset'],
|
'label' => \Froxlor\I18N\Lang::getAll()['domains']['import_offset'],
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
'mandatory' => true,
|
'mandatory' => true,
|
||||||
'size' => 10,
|
'size' => 10,
|
||||||
'value' => '0'
|
'value' => '0'
|
||||||
),
|
),
|
||||||
'file' => array(
|
'file' => array(
|
||||||
'label' => $lng['domains']['import_file'],
|
'label' => \Froxlor\I18N\Lang::getAll()['domains']['import_file'],
|
||||||
'type' => 'file',
|
'type' => 'file',
|
||||||
'mandatory' => true
|
'mandatory' => true
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -16,35 +16,35 @@
|
|||||||
*/
|
*/
|
||||||
return array(
|
return array(
|
||||||
'ipsandports_add' => array(
|
'ipsandports_add' => array(
|
||||||
'title' => $lng['admin']['ipsandports']['add'],
|
'title' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['add'],
|
||||||
'image' => 'icons/ipsports_add.png',
|
'image' => 'icons/ipsports_add.png',
|
||||||
'sections' => array(
|
'sections' => array(
|
||||||
'section_a' => array(
|
'section_a' => array(
|
||||||
'title' => $lng['admin']['ipsandports']['ipandport'],
|
'title' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['ipandport'],
|
||||||
'image' => 'icons/ipsports_add.png',
|
'image' => 'icons/ipsports_add.png',
|
||||||
'fields' => array(
|
'fields' => array(
|
||||||
'ip' => array(
|
'ip' => array(
|
||||||
'label' => $lng['admin']['ipsandports']['ip'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['ip'],
|
||||||
'type' => 'text'
|
'type' => 'text'
|
||||||
),
|
),
|
||||||
'port' => array(
|
'port' => array(
|
||||||
'label' => $lng['admin']['ipsandports']['port'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['port'],
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
'size' => 5
|
'size' => 5
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
'section_b' => array(
|
'section_b' => array(
|
||||||
'title' => $lng['admin']['ipsandports']['webserverdefaultconfig'],
|
'title' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['ipsandports']['create_listen_statement'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['create_listen_statement'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array(
|
array(
|
||||||
'label' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['ipsandports']['create_namevirtualhost_statement'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['create_namevirtualhost_statement'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array(
|
array(
|
||||||
'label' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
|
||||||
'value' => '1'
|
'value' => '1'
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
@@ -67,11 +67,11 @@ return array(
|
|||||||
)
|
)
|
||||||
),
|
),
|
||||||
'vhostcontainer' => array(
|
'vhostcontainer' => array(
|
||||||
'label' => $lng['admin']['ipsandports']['create_vhostcontainer'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['create_vhostcontainer'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array(
|
array(
|
||||||
'label' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
|
||||||
'value' => '1'
|
'value' => '1'
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
@@ -80,25 +80,25 @@ return array(
|
|||||||
)
|
)
|
||||||
),
|
),
|
||||||
'docroot' => array(
|
'docroot' => array(
|
||||||
'label' => $lng['admin']['ipsandports']['docroot']['title'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['docroot']['title'],
|
||||||
'desc' => $lng['admin']['ipsandports']['docroot']['description'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['docroot']['description'],
|
||||||
'type' => 'text'
|
'type' => 'text'
|
||||||
),
|
),
|
||||||
'specialsettings' => array(
|
'specialsettings' => array(
|
||||||
'style' => 'align-top',
|
'style' => 'align-top',
|
||||||
'label' => $lng['admin']['ownvhostsettings'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['ownvhostsettings'],
|
||||||
'desc' => $lng['serversettings']['default_vhostconf']['description'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['ipsandports']['create_vhostcontainer_servername_statement'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['create_vhostcontainer_servername_statement'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array(
|
array(
|
||||||
'label' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
|
||||||
'value' => '1'
|
'value' => '1'
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
@@ -109,13 +109,13 @@ return array(
|
|||||||
)
|
)
|
||||||
),
|
),
|
||||||
'section_c' => array(
|
'section_c' => array(
|
||||||
'title' => $lng['admin']['ipsandports']['webserverdomainconfig'],
|
'title' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['ipsandports']['default_vhostconf_domain'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['default_vhostconf_domain'],
|
||||||
'desc' => $lng['serversettings']['default_vhostconf_domain']['description'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['ipsandports']['webserverssldomainconfig'],
|
'title' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['ipsandports']['enable_ssl'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['enable_ssl'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array(
|
array(
|
||||||
'label' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
|
||||||
'value' => '1'
|
'value' => '1'
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
'value' => array()
|
'value' => array()
|
||||||
),
|
),
|
||||||
'ssl_cert_file' => array(
|
'ssl_cert_file' => array(
|
||||||
'label' => $lng['admin']['ipsandports']['ssl_cert_file'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['ssl_cert_file'],
|
||||||
'type' => 'text'
|
'type' => 'text'
|
||||||
),
|
),
|
||||||
'ssl_key_file' => array(
|
'ssl_key_file' => array(
|
||||||
'label' => $lng['admin']['ipsandports']['ssl_key_file'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['ssl_key_file'],
|
||||||
'type' => 'text'
|
'type' => 'text'
|
||||||
),
|
),
|
||||||
'ssl_ca_file' => array(
|
'ssl_ca_file' => array(
|
||||||
'label' => $lng['admin']['ipsandports']['ssl_ca_file'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['ssl_ca_file'],
|
||||||
'type' => 'text'
|
'type' => 'text'
|
||||||
),
|
),
|
||||||
'ssl_cert_chainfile' => array(
|
'ssl_cert_chainfile' => array(
|
||||||
'label' => $lng['admin']['ipsandports']['ssl_cert_chainfile']['title'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['ssl_cert_chainfile']['title'],
|
||||||
'desc' => $lng['admin']['ipsandports']['ssl_cert_chainfile']['description'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['ssl_cert_chainfile']['description'],
|
||||||
'type' => 'text'
|
'type' => 'text'
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -16,20 +16,20 @@
|
|||||||
*/
|
*/
|
||||||
return array(
|
return array(
|
||||||
'ipsandports_edit' => array(
|
'ipsandports_edit' => array(
|
||||||
'title' => $lng['admin']['ipsandports']['edit'],
|
'title' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['edit'],
|
||||||
'image' => 'icons/ipsports_edit.png',
|
'image' => 'icons/ipsports_edit.png',
|
||||||
'sections' => array(
|
'sections' => array(
|
||||||
'section_a' => array(
|
'section_a' => array(
|
||||||
'title' => $lng['admin']['ipsandports']['ipandport'],
|
'title' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['ipandport'],
|
||||||
'image' => 'icons/ipsports_add.png',
|
'image' => 'icons/ipsports_add.png',
|
||||||
'fields' => array(
|
'fields' => array(
|
||||||
'ip' => array(
|
'ip' => array(
|
||||||
'label' => $lng['admin']['ipsandports']['ip'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['ip'],
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
'value' => $result['ip']
|
'value' => $result['ip']
|
||||||
),
|
),
|
||||||
'port' => array(
|
'port' => array(
|
||||||
'label' => $lng['admin']['ipsandports']['port'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['ipsandports']['webserverdefaultconfig'],
|
'title' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['ipsandports']['create_listen_statement'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['create_listen_statement'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array(
|
array(
|
||||||
'label' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['ipsandports']['create_namevirtualhost_statement'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['create_namevirtualhost_statement'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array(
|
array(
|
||||||
'label' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
|
||||||
'value' => '1'
|
'value' => '1'
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
@@ -69,11 +69,11 @@ return array(
|
|||||||
)
|
)
|
||||||
),
|
),
|
||||||
'vhostcontainer' => array(
|
'vhostcontainer' => array(
|
||||||
'label' => $lng['admin']['ipsandports']['create_vhostcontainer'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['create_vhostcontainer'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array(
|
array(
|
||||||
'label' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
|
||||||
'value' => '1'
|
'value' => '1'
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
@@ -82,15 +82,15 @@ return array(
|
|||||||
)
|
)
|
||||||
),
|
),
|
||||||
'docroot' => array(
|
'docroot' => array(
|
||||||
'label' => $lng['admin']['ipsandports']['docroot']['title'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['docroot']['title'],
|
||||||
'desc' => $lng['admin']['ipsandports']['docroot']['description'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['ownvhostsettings'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['ownvhostsettings'],
|
||||||
'desc' => $lng['serversettings']['default_vhostconf']['description'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['ipsandports']['create_vhostcontainer_servername_statement'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['create_vhostcontainer_servername_statement'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array(
|
array(
|
||||||
'label' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
|
||||||
'value' => '1'
|
'value' => '1'
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
@@ -113,13 +113,13 @@ return array(
|
|||||||
)
|
)
|
||||||
),
|
),
|
||||||
'section_c' => array(
|
'section_c' => array(
|
||||||
'title' => $lng['admin']['ipsandports']['webserverdomainconfig'],
|
'title' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['ipsandports']['default_vhostconf_domain'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['default_vhostconf_domain'],
|
||||||
'desc' => $lng['serversettings']['default_vhostconf_domain']['description'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['ipsandports']['webserverssldomainconfig'],
|
'title' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['ipsandports']['enable_ssl'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['enable_ssl'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array(
|
array(
|
||||||
'label' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
|
||||||
'value' => '1'
|
'value' => '1'
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
@@ -146,23 +146,23 @@ return array(
|
|||||||
)
|
)
|
||||||
),
|
),
|
||||||
'ssl_cert_file' => array(
|
'ssl_cert_file' => array(
|
||||||
'label' => $lng['admin']['ipsandports']['ssl_cert_file'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['ipsandports']['ssl_key_file'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['ipsandports']['ssl_ca_file'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['ipsandports']['ssl_cert_chainfile']['title'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['ssl_cert_chainfile']['title'],
|
||||||
'desc' => $lng['admin']['ipsandports']['ssl_cert_chainfile']['description'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['ssl_cert_chainfile']['description'],
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
'value' => $result['ssl_cert_chainfile']
|
'value' => $result['ssl_cert_chainfile']
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -16,74 +16,74 @@
|
|||||||
*/
|
*/
|
||||||
return array(
|
return array(
|
||||||
'fpmconfig_add' => array(
|
'fpmconfig_add' => array(
|
||||||
'title' => $lng['admin']['phpsettings']['addsettings'],
|
'title' => \Froxlor\I18N\Lang::getAll()['admin']['phpsettings']['addsettings'],
|
||||||
'image' => 'icons/phpsettings_add.png',
|
'image' => 'icons/phpsettings_add.png',
|
||||||
'sections' => array(
|
'sections' => array(
|
||||||
'section_a' => array(
|
'section_a' => array(
|
||||||
'title' => $lng['admin']['phpsettings']['addsettings'],
|
'title' => \Froxlor\I18N\Lang::getAll()['admin']['phpsettings']['addsettings'],
|
||||||
'image' => 'icons/phpsettings_add.png',
|
'image' => 'icons/phpsettings_add.png',
|
||||||
'fields' => array(
|
'fields' => array(
|
||||||
'description' => array(
|
'description' => array(
|
||||||
'label' => $lng['admin']['phpsettings']['description'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['phpsettings']['description'],
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
'maxlength' => 50
|
'maxlength' => 50
|
||||||
),
|
),
|
||||||
'reload_cmd' => array(
|
'reload_cmd' => array(
|
||||||
'label' => $lng['serversettings']['phpfpm_settings']['reload'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['phpfpm_settings']['configdir'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['phpfpm_settings']['pm'],
|
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['pm'],
|
||||||
'type' => 'select',
|
'type' => 'select',
|
||||||
'select_var' => $pm_select
|
'select_var' => $pm_select
|
||||||
),
|
),
|
||||||
'max_children' => array(
|
'max_children' => array(
|
||||||
'label' => $lng['serversettings']['phpfpm_settings']['max_children']['title'],
|
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['max_children']['title'],
|
||||||
'desc' => $lng['serversettings']['phpfpm_settings']['max_children']['description'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['max_children']['description'],
|
||||||
'type' => 'int',
|
'type' => 'int',
|
||||||
'value' => 1
|
'value' => 1
|
||||||
),
|
),
|
||||||
'start_servers' => array(
|
'start_servers' => array(
|
||||||
'label' => $lng['serversettings']['phpfpm_settings']['start_servers']['title'],
|
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['start_servers']['title'],
|
||||||
'desc' => $lng['serversettings']['phpfpm_settings']['start_servers']['description'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['start_servers']['description'],
|
||||||
'type' => 'int',
|
'type' => 'int',
|
||||||
'value' => 20
|
'value' => 20
|
||||||
),
|
),
|
||||||
'min_spare_servers' => array(
|
'min_spare_servers' => array(
|
||||||
'label' => $lng['serversettings']['phpfpm_settings']['min_spare_servers']['title'],
|
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['min_spare_servers']['title'],
|
||||||
'desc' => $lng['serversettings']['phpfpm_settings']['min_spare_servers']['description'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['min_spare_servers']['description'],
|
||||||
'type' => 'int',
|
'type' => 'int',
|
||||||
'value' => 5
|
'value' => 5
|
||||||
),
|
),
|
||||||
'max_spare_servers' => array(
|
'max_spare_servers' => array(
|
||||||
'label' => $lng['serversettings']['phpfpm_settings']['max_spare_servers']['title'],
|
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['max_spare_servers']['title'],
|
||||||
'desc' => $lng['serversettings']['phpfpm_settings']['max_spare_servers']['description'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['max_spare_servers']['description'],
|
||||||
'type' => 'int',
|
'type' => 'int',
|
||||||
'value' => 35
|
'value' => 35
|
||||||
),
|
),
|
||||||
'max_requests' => array(
|
'max_requests' => array(
|
||||||
'label' => $lng['serversettings']['phpfpm_settings']['max_requests']['title'],
|
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['max_requests']['title'],
|
||||||
'desc' => $lng['serversettings']['phpfpm_settings']['max_requests']['description'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['max_requests']['description'],
|
||||||
'type' => 'int',
|
'type' => 'int',
|
||||||
'value' => 0
|
'value' => 0
|
||||||
),
|
),
|
||||||
'idle_timeout' => array(
|
'idle_timeout' => array(
|
||||||
'label' => $lng['serversettings']['phpfpm_settings']['idle_timeout']['title'],
|
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['idle_timeout']['title'],
|
||||||
'desc' => $lng['serversettings']['phpfpm_settings']['idle_timeout']['description'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['idle_timeout']['description'],
|
||||||
'type' => 'int',
|
'type' => 'int',
|
||||||
'value' => 30
|
'value' => 30
|
||||||
),
|
),
|
||||||
'limit_extensions' => array(
|
'limit_extensions' => array(
|
||||||
'label' => $lng['serversettings']['phpfpm_settings']['limit_extensions']['title'],
|
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['limit_extensions']['title'],
|
||||||
'desc' => $lng['serversettings']['phpfpm_settings']['limit_extensions']['description'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['limit_extensions']['description'],
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
'value' => '.php'
|
'value' => '.php'
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -16,75 +16,75 @@
|
|||||||
*/
|
*/
|
||||||
return array(
|
return array(
|
||||||
'fpmconfig_edit' => array(
|
'fpmconfig_edit' => array(
|
||||||
'title' => $lng['admin']['phpsettings']['editsettings'],
|
'title' => \Froxlor\I18N\Lang::getAll()['admin']['phpsettings']['editsettings'],
|
||||||
'image' => 'icons/phpsettings_edit.png',
|
'image' => 'icons/phpsettings_edit.png',
|
||||||
'sections' => array(
|
'sections' => array(
|
||||||
'section_a' => array(
|
'section_a' => array(
|
||||||
'title' => $lng['admin']['phpsettings']['editsettings'],
|
'title' => \Froxlor\I18N\Lang::getAll()['admin']['phpsettings']['editsettings'],
|
||||||
'image' => 'icons/phpsettings_edit.png',
|
'image' => 'icons/phpsettings_edit.png',
|
||||||
'fields' => array(
|
'fields' => array(
|
||||||
'description' => array(
|
'description' => array(
|
||||||
'label' => $lng['admin']['phpsettings']['description'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['phpsettings']['description'],
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
'maxlength' => 50,
|
'maxlength' => 50,
|
||||||
'value' => $result['description']
|
'value' => $result['description']
|
||||||
),
|
),
|
||||||
'reload_cmd' => array(
|
'reload_cmd' => array(
|
||||||
'label' => $lng['serversettings']['phpfpm_settings']['reload'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['phpfpm_settings']['configdir'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['phpfpm_settings']['pm'],
|
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['pm'],
|
||||||
'type' => 'select',
|
'type' => 'select',
|
||||||
'select_var' => $pm_select
|
'select_var' => $pm_select
|
||||||
),
|
),
|
||||||
'max_children' => array(
|
'max_children' => array(
|
||||||
'label' => $lng['serversettings']['phpfpm_settings']['max_children']['title'],
|
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['max_children']['title'],
|
||||||
'desc' => $lng['serversettings']['phpfpm_settings']['max_children']['description'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['phpfpm_settings']['start_servers']['title'],
|
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['start_servers']['title'],
|
||||||
'desc' => $lng['serversettings']['phpfpm_settings']['start_servers']['description'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['phpfpm_settings']['min_spare_servers']['title'],
|
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['min_spare_servers']['title'],
|
||||||
'desc' => $lng['serversettings']['phpfpm_settings']['min_spare_servers']['description'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['phpfpm_settings']['max_spare_servers']['title'],
|
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['max_spare_servers']['title'],
|
||||||
'desc' => $lng['serversettings']['phpfpm_settings']['max_spare_servers']['description'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['phpfpm_settings']['max_requests']['title'],
|
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['max_requests']['title'],
|
||||||
'desc' => $lng['serversettings']['phpfpm_settings']['max_requests']['description'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['phpfpm_settings']['idle_timeout']['title'],
|
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['idle_timeout']['title'],
|
||||||
'desc' => $lng['serversettings']['phpfpm_settings']['idle_timeout']['description'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['phpfpm_settings']['limit_extensions']['title'],
|
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['limit_extensions']['title'],
|
||||||
'desc' => $lng['serversettings']['phpfpm_settings']['limit_extensions']['description'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['limit_extensions']['description'],
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
'value' => $result['limit_extensions']
|
'value' => $result['limit_extensions']
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -16,63 +16,63 @@
|
|||||||
*/
|
*/
|
||||||
return array(
|
return array(
|
||||||
'phpconfig_add' => array(
|
'phpconfig_add' => array(
|
||||||
'title' => $lng['admin']['phpsettings']['addsettings'],
|
'title' => \Froxlor\I18N\Lang::getAll()['admin']['phpsettings']['addsettings'],
|
||||||
'image' => 'icons/phpsettings_add.png',
|
'image' => 'icons/phpsettings_add.png',
|
||||||
'sections' => array(
|
'sections' => array(
|
||||||
'section_a' => array(
|
'section_a' => array(
|
||||||
'title' => $lng['admin']['phpsettings']['addsettings'],
|
'title' => \Froxlor\I18N\Lang::getAll()['admin']['phpsettings']['addsettings'],
|
||||||
'image' => 'icons/phpsettings_add.png',
|
'image' => 'icons/phpsettings_add.png',
|
||||||
'fields' => array(
|
'fields' => array(
|
||||||
'description' => array(
|
'description' => array(
|
||||||
'label' => $lng['admin']['phpsettings']['description'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['phpsettings']['binary'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['phpsettings']['fpmdesc'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['phpsettings']['file_extensions'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['phpsettings']['file_extensions'],
|
||||||
'desc' => $lng['admin']['phpsettings']['file_extensions_note'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['mod_fcgid_starter']['title'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['mod_fcgid_maxrequests']['title'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['mod_fcgid_umask']['title'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['phpsettings']['enable_slowlog'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['phpsettings']['enable_slowlog'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array(
|
array(
|
||||||
'label' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['phpsettings']['request_terminate_timeout'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['phpsettings']['request_slowlog_timeout'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['phpsettings']['pass_authorizationheader'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['phpsettings']['pass_authorizationheader'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array(
|
array(
|
||||||
'label' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['phpfpm_settings']['override_fpmconfig'],
|
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['override_fpmconfig'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array(
|
array(
|
||||||
'label' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['phpfpm_settings']['pm'],
|
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['pm'],
|
||||||
'desc' => $lng['serversettings']['phpfpm_settings']['override_fpmconfig_addinfo'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['phpfpm_settings']['max_children']['title'],
|
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['max_children']['title'],
|
||||||
'desc' => $lng['serversettings']['phpfpm_settings']['max_children']['description'] . $lng['serversettings']['phpfpm_settings']['override_fpmconfig_addinfo'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['max_children']['description'] . \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['phpfpm_settings']['start_servers']['title'],
|
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['start_servers']['title'],
|
||||||
'desc' => $lng['serversettings']['phpfpm_settings']['start_servers']['description'] . $lng['serversettings']['phpfpm_settings']['override_fpmconfig_addinfo'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['start_servers']['description'] . \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['phpfpm_settings']['min_spare_servers']['title'],
|
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['min_spare_servers']['title'],
|
||||||
'desc' => $lng['serversettings']['phpfpm_settings']['min_spare_servers']['description'] . $lng['serversettings']['phpfpm_settings']['override_fpmconfig_addinfo'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['min_spare_servers']['description'] . \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['phpfpm_settings']['max_spare_servers']['title'],
|
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['max_spare_servers']['title'],
|
||||||
'desc' => $lng['serversettings']['phpfpm_settings']['max_spare_servers']['description'] . $lng['serversettings']['phpfpm_settings']['override_fpmconfig_addinfo'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['max_spare_servers']['description'] . \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['phpfpm_settings']['max_requests']['title'],
|
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['max_requests']['title'],
|
||||||
'desc' => $lng['serversettings']['phpfpm_settings']['max_requests']['description'] . $lng['serversettings']['phpfpm_settings']['override_fpmconfig_addinfo'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['max_requests']['description'] . \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['phpfpm_settings']['idle_timeout']['title'],
|
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['idle_timeout']['title'],
|
||||||
'desc' => $lng['serversettings']['phpfpm_settings']['idle_timeout']['description'] . $lng['serversettings']['phpfpm_settings']['override_fpmconfig_addinfo'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['idle_timeout']['description'] . \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['phpfpm_settings']['limit_extensions']['title'],
|
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['limit_extensions']['title'],
|
||||||
'desc' => $lng['serversettings']['phpfpm_settings']['limit_extensions']['description'] . $lng['serversettings']['phpfpm_settings']['override_fpmconfig_addinfo'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['limit_extensions']['description'] . \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['phpsettings']['phpinisettings'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['phpsettings']['phpinisettings'],
|
||||||
'type' => 'textarea',
|
'type' => 'textarea',
|
||||||
'cols' => 80,
|
'cols' => 80,
|
||||||
'rows' => 20,
|
'rows' => 20,
|
||||||
|
|||||||
@@ -16,66 +16,66 @@
|
|||||||
*/
|
*/
|
||||||
return array(
|
return array(
|
||||||
'phpconfig_edit' => array(
|
'phpconfig_edit' => array(
|
||||||
'title' => $lng['admin']['phpsettings']['editsettings'],
|
'title' => \Froxlor\I18N\Lang::getAll()['admin']['phpsettings']['editsettings'],
|
||||||
'image' => 'icons/phpsettings_edit.png',
|
'image' => 'icons/phpsettings_edit.png',
|
||||||
'sections' => array(
|
'sections' => array(
|
||||||
'section_a' => array(
|
'section_a' => array(
|
||||||
'title' => $lng['admin']['phpsettings']['editsettings'],
|
'title' => \Froxlor\I18N\Lang::getAll()['admin']['phpsettings']['editsettings'],
|
||||||
'image' => 'icons/phpsettings_edit.png',
|
'image' => 'icons/phpsettings_edit.png',
|
||||||
'fields' => array(
|
'fields' => array(
|
||||||
'description' => array(
|
'description' => array(
|
||||||
'label' => $lng['admin']['phpsettings']['description'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['phpsettings']['binary'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['phpsettings']['fpmdesc'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['phpsettings']['file_extensions'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['phpsettings']['file_extensions'],
|
||||||
'desc' => $lng['admin']['phpsettings']['file_extensions_note'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['mod_fcgid_starter']['title'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['mod_fcgid_maxrequests']['title'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['mod_fcgid_umask']['title'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['phpsettings']['enable_slowlog'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['phpsettings']['enable_slowlog'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array(
|
array(
|
||||||
'label' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['phpsettings']['request_terminate_timeout'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['phpsettings']['request_slowlog_timeout'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['phpsettings']['pass_authorizationheader'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['phpsettings']['pass_authorizationheader'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array(
|
array(
|
||||||
'label' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
|
||||||
'value' => '1'
|
'value' => '1'
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
@@ -112,11 +112,11 @@ return array(
|
|||||||
)
|
)
|
||||||
),
|
),
|
||||||
'override_fpmconfig' => array(
|
'override_fpmconfig' => array(
|
||||||
'label' => $lng['serversettings']['phpfpm_settings']['override_fpmconfig'],
|
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['override_fpmconfig'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array(
|
array(
|
||||||
'label' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['phpfpm_settings']['pm'],
|
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['pm'],
|
||||||
'desc' => $lng['serversettings']['phpfpm_settings']['override_fpmconfig_addinfo'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['phpfpm_settings']['max_children']['title'],
|
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['max_children']['title'],
|
||||||
'desc' => $lng['serversettings']['phpfpm_settings']['max_children']['description'] . $lng['serversettings']['phpfpm_settings']['override_fpmconfig_addinfo'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['max_children']['description'] . \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['phpfpm_settings']['start_servers']['title'],
|
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['start_servers']['title'],
|
||||||
'desc' => $lng['serversettings']['phpfpm_settings']['start_servers']['description'] . $lng['serversettings']['phpfpm_settings']['override_fpmconfig_addinfo'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['start_servers']['description'] . \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['phpfpm_settings']['min_spare_servers']['title'],
|
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['min_spare_servers']['title'],
|
||||||
'desc' => $lng['serversettings']['phpfpm_settings']['min_spare_servers']['description'] . $lng['serversettings']['phpfpm_settings']['override_fpmconfig_addinfo'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['min_spare_servers']['description'] . \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['phpfpm_settings']['max_spare_servers']['title'],
|
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['max_spare_servers']['title'],
|
||||||
'desc' => $lng['serversettings']['phpfpm_settings']['max_spare_servers']['description'] . $lng['serversettings']['phpfpm_settings']['override_fpmconfig_addinfo'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['max_spare_servers']['description'] . \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['phpfpm_settings']['max_requests']['title'],
|
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['max_requests']['title'],
|
||||||
'desc' => $lng['serversettings']['phpfpm_settings']['max_requests']['description'] . $lng['serversettings']['phpfpm_settings']['override_fpmconfig_addinfo'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['max_requests']['description'] . \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['phpfpm_settings']['idle_timeout']['title'],
|
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['idle_timeout']['title'],
|
||||||
'desc' => $lng['serversettings']['phpfpm_settings']['idle_timeout']['description'] . $lng['serversettings']['phpfpm_settings']['override_fpmconfig_addinfo'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['idle_timeout']['description'] . \Froxlor\I18N\Lang::getAll()['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' => $lng['serversettings']['phpfpm_settings']['limit_extensions']['title'],
|
'label' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['limit_extensions']['title'],
|
||||||
'desc' => $lng['serversettings']['phpfpm_settings']['limit_extensions']['description'] . $lng['serversettings']['phpfpm_settings']['override_fpmconfig_addinfo'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['serversettings']['phpfpm_settings']['limit_extensions']['description'] . \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['phpsettings']['phpinisettings'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['phpsettings']['phpinisettings'],
|
||||||
'type' => 'textarea',
|
'type' => 'textarea',
|
||||||
'cols' => 80,
|
'cols' => 80,
|
||||||
'rows' => 20,
|
'rows' => 20,
|
||||||
|
|||||||
@@ -16,19 +16,19 @@
|
|||||||
*/
|
*/
|
||||||
return array(
|
return array(
|
||||||
'plans_add' => array(
|
'plans_add' => array(
|
||||||
'title' => $lng['admin']['plans']['add'],
|
'title' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['plans']['plan_details'],
|
'title' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['plans']['name'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['plans']['name'],
|
||||||
'type' => 'text'
|
'type' => 'text'
|
||||||
),
|
),
|
||||||
'description' => array(
|
'description' => array(
|
||||||
'label' => $lng['admin']['plans']['description'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['plans']['description'],
|
||||||
'type' => 'textarea',
|
'type' => 'textarea',
|
||||||
'cols' => 60,
|
'cols' => 60,
|
||||||
'rows' => 12
|
'rows' => 12
|
||||||
|
|||||||
@@ -16,20 +16,20 @@
|
|||||||
*/
|
*/
|
||||||
return array(
|
return array(
|
||||||
'plans_edit' => array(
|
'plans_edit' => array(
|
||||||
'title' => $lng['admin']['plans']['edit'],
|
'title' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['plans']['plan_details'],
|
'title' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['plans']['name'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['plans']['name'],
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
'value' => $result['name']
|
'value' => $result['name']
|
||||||
),
|
),
|
||||||
'description' => array(
|
'description' => array(
|
||||||
'label' => $lng['admin']['plans']['description'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['plans']['description'],
|
||||||
'type' => 'textarea',
|
'type' => 'textarea',
|
||||||
'cols' => 60,
|
'cols' => 60,
|
||||||
'rows' => 12,
|
'rows' => 12,
|
||||||
|
|||||||
@@ -16,20 +16,20 @@
|
|||||||
*/
|
*/
|
||||||
return array(
|
return array(
|
||||||
'filetemplate_add' => array(
|
'filetemplate_add' => array(
|
||||||
'title' => $lng['admin']['templates']['template_add'],
|
'title' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['templates']['template_add'],
|
'title' => \Froxlor\I18N\Lang::getAll()['admin']['templates']['template_add'],
|
||||||
'image' => 'icons/templates_add.png',
|
'image' => 'icons/templates_add.png',
|
||||||
'fields' => array(
|
'fields' => array(
|
||||||
'template' => array(
|
'template' => array(
|
||||||
'label' => $lng['admin']['templates']['action'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['templates']['action'],
|
||||||
'type' => 'select',
|
'type' => 'select',
|
||||||
'select_var' => $free_templates
|
'select_var' => $free_templates
|
||||||
),
|
),
|
||||||
'filecontent' => array(
|
'filecontent' => array(
|
||||||
'label' => $lng['admin']['templates']['filecontent'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['templates']['filecontent'],
|
||||||
'type' => 'textarea',
|
'type' => 'textarea',
|
||||||
'cols' => 60,
|
'cols' => 60,
|
||||||
'rows' => 12
|
'rows' => 12
|
||||||
|
|||||||
@@ -16,21 +16,21 @@
|
|||||||
*/
|
*/
|
||||||
return array(
|
return array(
|
||||||
'filetemplate_edit' => array(
|
'filetemplate_edit' => array(
|
||||||
'title' => $lng['admin']['templates']['template_edit'],
|
'title' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['templates']['template_edit'],
|
'title' => \Froxlor\I18N\Lang::getAll()['admin']['templates']['template_edit'],
|
||||||
'image' => 'icons/templates_edit.png',
|
'image' => 'icons/templates_edit.png',
|
||||||
'fields' => array(
|
'fields' => array(
|
||||||
'template' => array(
|
'template' => array(
|
||||||
'label' => $lng['admin']['templates']['action'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['templates']['action'],
|
||||||
'type' => 'hidden',
|
'type' => 'hidden',
|
||||||
'value' => $lng['admin']['templates'][$row['varname']],
|
'value' => \Froxlor\I18N\Lang::getAll()['admin']['templates'][$row['varname']],
|
||||||
'display' => $lng['admin']['templates'][$row['varname']]
|
'display' => \Froxlor\I18N\Lang::getAll()['admin']['templates'][$row['varname']]
|
||||||
),
|
),
|
||||||
'filecontent' => array(
|
'filecontent' => array(
|
||||||
'label' => $lng['admin']['templates']['filecontent'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['templates']['filecontent'],
|
||||||
'type' => 'textarea',
|
'type' => 'textarea',
|
||||||
'cols' => 60,
|
'cols' => 60,
|
||||||
'rows' => 12,
|
'rows' => 12,
|
||||||
|
|||||||
@@ -16,32 +16,32 @@
|
|||||||
*/
|
*/
|
||||||
return array(
|
return array(
|
||||||
'template_add' => array(
|
'template_add' => array(
|
||||||
'title' => $lng['admin']['templates']['template_add'],
|
'title' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['templates']['template_add'],
|
'title' => \Froxlor\I18N\Lang::getAll()['admin']['templates']['template_add'],
|
||||||
'image' => 'icons/templates_add.png',
|
'image' => 'icons/templates_add.png',
|
||||||
'fields' => array(
|
'fields' => array(
|
||||||
'language' => array(
|
'language' => array(
|
||||||
'label' => $lng['login']['language'],
|
'label' => \Froxlor\I18N\Lang::getAll()['login']['language'],
|
||||||
'type' => 'hidden',
|
'type' => 'hidden',
|
||||||
'value' => $language,
|
'value' => $language,
|
||||||
'display' => $language
|
'display' => $language
|
||||||
),
|
),
|
||||||
'template' => array(
|
'template' => array(
|
||||||
'label' => $lng['admin']['templates']['action'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['templates']['action'],
|
||||||
'type' => 'hidden',
|
'type' => 'hidden',
|
||||||
'value' => $template,
|
'value' => $template,
|
||||||
'display' => $lng['admin']['templates'][$template]
|
'display' => \Froxlor\I18N\Lang::getAll()['admin']['templates'][$template]
|
||||||
),
|
),
|
||||||
'subject' => array(
|
'subject' => array(
|
||||||
'label' => $lng['admin']['templates']['subject'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['templates']['subject'],
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
'value' => $subject
|
'value' => $subject
|
||||||
),
|
),
|
||||||
'mailbody' => array(
|
'mailbody' => array(
|
||||||
'label' => $lng['admin']['templates']['mailbody'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['templates']['mailbody'],
|
||||||
'type' => 'textarea',
|
'type' => 'textarea',
|
||||||
'value' => $body,
|
'value' => $body,
|
||||||
'cols' => 60,
|
'cols' => 60,
|
||||||
|
|||||||
@@ -16,32 +16,32 @@
|
|||||||
*/
|
*/
|
||||||
return array(
|
return array(
|
||||||
'template_edit' => array(
|
'template_edit' => array(
|
||||||
'title' => $lng['admin']['templates']['template_edit'],
|
'title' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['templates']['template_edit'],
|
'title' => \Froxlor\I18N\Lang::getAll()['admin']['templates']['template_edit'],
|
||||||
'image' => 'icons/templates_edit.png',
|
'image' => 'icons/templates_edit.png',
|
||||||
'fields' => array(
|
'fields' => array(
|
||||||
'language' => array(
|
'language' => array(
|
||||||
'label' => $lng['login']['language'],
|
'label' => \Froxlor\I18N\Lang::getAll()['login']['language'],
|
||||||
'type' => 'hidden',
|
'type' => 'hidden',
|
||||||
'value' => $language,
|
'value' => $language,
|
||||||
'display' => $language
|
'display' => $language
|
||||||
),
|
),
|
||||||
'template' => array(
|
'template' => array(
|
||||||
'label' => $lng['admin']['templates']['action'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['templates']['action'],
|
||||||
'type' => 'hidden',
|
'type' => 'hidden',
|
||||||
'value' => $template,
|
'value' => $template,
|
||||||
'display' => $template
|
'display' => $template
|
||||||
),
|
),
|
||||||
'subject' => array(
|
'subject' => array(
|
||||||
'label' => $lng['admin']['templates']['subject'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['templates']['subject'],
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
'value' => $subject
|
'value' => $subject
|
||||||
),
|
),
|
||||||
'mailbody' => array(
|
'mailbody' => array(
|
||||||
'label' => $lng['admin']['templates']['mailbody'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['templates']['mailbody'],
|
||||||
'type' => 'textarea',
|
'type' => 'textarea',
|
||||||
'cols' => 60,
|
'cols' => 60,
|
||||||
'rows' => 12,
|
'rows' => 12,
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
*/
|
*/
|
||||||
return array(
|
return array(
|
||||||
'domain_ssleditor' => array(
|
'domain_ssleditor' => array(
|
||||||
'title' => $lng['panel']['ssleditor'],
|
'title' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['ipsandports']['ssl_cert_file_content'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['ssl_cert_file_content'],
|
||||||
'desc' => $lng['admin']['ipsandports']['ssl_paste_description'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['ipsandports']['ssl_key_file_content'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['ssl_key_file_content'],
|
||||||
'desc' => $lng['admin']['ipsandports']['ssl_paste_description'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['ipsandports']['ssl_cert_chainfile_content'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['ssl_cert_chainfile_content'],
|
||||||
'desc' => $lng['admin']['ipsandports']['ssl_paste_description'] . $lng['admin']['ipsandports']['ssl_cert_chainfile_content_desc'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['ssl_paste_description'] . \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['ipsandports']['ssl_ca_file_content'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['ssl_ca_file_content'],
|
||||||
'desc' => $lng['admin']['ipsandports']['ssl_paste_description'] . $lng['admin']['ipsandports']['ssl_ca_file_content_desc'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['ssl_paste_description'] . \Froxlor\I18N\Lang::getAll()['admin']['ipsandports']['ssl_ca_file_content_desc'],
|
||||||
'type' => 'textarea',
|
'type' => 'textarea',
|
||||||
'cols' => 100,
|
'cols' => 100,
|
||||||
'rows' => 15,
|
'rows' => 15,
|
||||||
|
|||||||
@@ -16,15 +16,15 @@
|
|||||||
*/
|
*/
|
||||||
return array(
|
return array(
|
||||||
'domain_add' => array(
|
'domain_add' => array(
|
||||||
'title' => $lng['domains']['subdomain_add'],
|
'title' => \Froxlor\I18N\Lang::getAll()['domains']['subdomain_add'],
|
||||||
'image' => 'icons/domain_add.png',
|
'image' => 'icons/domain_add.png',
|
||||||
'sections' => array(
|
'sections' => array(
|
||||||
'section_a' => array(
|
'section_a' => array(
|
||||||
'title' => $lng['domains']['subdomain_add'],
|
'title' => \Froxlor\I18N\Lang::getAll()['domains']['subdomain_add'],
|
||||||
'image' => 'icons/domain_add.png',
|
'image' => 'icons/domain_add.png',
|
||||||
'fields' => array(
|
'fields' => array(
|
||||||
'subdomain' => array(
|
'subdomain' => array(
|
||||||
'label' => $lng['domains']['domainname'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['domains']['aliasdomain'],
|
'label' => \Froxlor\I18N\Lang::getAll()['domains']['aliasdomain'],
|
||||||
'type' => 'select',
|
'type' => 'select',
|
||||||
'select_var' => $aliasdomains
|
'select_var' => $aliasdomains
|
||||||
),
|
),
|
||||||
'path' => array(
|
'path' => array(
|
||||||
'label' => $lng['panel']['path'],
|
'label' => \Froxlor\I18N\Lang::getAll()['panel']['path'],
|
||||||
'desc' => (\Froxlor\Settings::Get('panel.pathedit') != 'Dropdown' ? $lng['panel']['pathDescriptionSubdomain'] : null) . (isset($pathSelect['note']) ? $pathSelect['note'] . '<br />' . $pathSelect['value'] : ''),
|
'desc' => (\Froxlor\Settings::Get('panel.pathedit') != 'Dropdown' ? \Froxlor\I18N\Lang::getAll()['panel']['pathDescriptionSubdomain'] : null) . (isset($pathSelect['note']) ? $pathSelect['note'] . '<br />' . $pathSelect['value'] : ''),
|
||||||
'type' => $pathSelect['type'],
|
'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' => $lng['panel']['urloverridespath'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['domains']['redirectifpathisurl'],
|
'label' => \Froxlor\I18N\Lang::getAll()['domains']['redirectifpathisurl'],
|
||||||
'desc' => $lng['domains']['redirectifpathisurlinfo'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['domains']['redirectifpathisurlinfo'],
|
||||||
'type' => 'select',
|
'type' => 'select',
|
||||||
'select_var' => isset($redirectcode) ? $redirectcode : null
|
'select_var' => isset($redirectcode) ? $redirectcode : null
|
||||||
),
|
),
|
||||||
'selectserveralias' => array(
|
'selectserveralias' => array(
|
||||||
'label' => $lng['admin']['selectserveralias'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['selectserveralias'],
|
||||||
'desc' => $lng['admin']['selectserveralias_desc'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['admin']['selectserveralias_desc'],
|
||||||
'type' => 'label',
|
'type' => 'label',
|
||||||
'value' => $lng['customer']['selectserveralias_addinfo']
|
'value' => \Froxlor\I18N\Lang::getAll()['customer']['selectserveralias_addinfo']
|
||||||
),
|
),
|
||||||
'openbasedir_path' => array(
|
'openbasedir_path' => array(
|
||||||
'label' => $lng['domain']['openbasedirpath'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['phpsettings']['title'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['phpsettings']['title'],
|
||||||
'type' => 'select',
|
'type' => 'select',
|
||||||
'select_var' => $phpconfigs
|
'select_var' => $phpconfigs
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
'section_bssl' => array(
|
'section_bssl' => array(
|
||||||
'title' => $lng['admin']['webserversettings_ssl'],
|
'title' => \Froxlor\I18N\Lang::getAll()['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' => $lng['domains']['ssl_redirect']['title'],
|
'label' => \Froxlor\I18N\Lang::getAll()['domains']['ssl_redirect']['title'],
|
||||||
'desc' => $lng['domains']['ssl_redirect']['description'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['domains']['ssl_redirect']['description'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array(
|
array(
|
||||||
'label' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['customer']['letsencrypt']['title'],
|
'label' => \Froxlor\I18N\Lang::getAll()['customer']['letsencrypt']['title'],
|
||||||
'desc' => $lng['customer']['letsencrypt']['description'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['customer']['letsencrypt']['description'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array(
|
array(
|
||||||
'label' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
|
||||||
'value' => '1'
|
'value' => '1'
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
'value' => array()
|
'value' => array()
|
||||||
),
|
),
|
||||||
'hsts_maxage' => array(
|
'hsts_maxage' => array(
|
||||||
'label' => $lng['admin']['domain_hsts_maxage']['title'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['domain_hsts_maxage']['title'],
|
||||||
'desc' => $lng['admin']['domain_hsts_maxage']['description'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['domain_hsts_incsub']['title'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['domain_hsts_incsub']['title'],
|
||||||
'desc' => $lng['admin']['domain_hsts_incsub']['description'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['admin']['domain_hsts_incsub']['description'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array(
|
array(
|
||||||
'label' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
|
||||||
'value' => '1'
|
'value' => '1'
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
'value' => array()
|
'value' => array()
|
||||||
),
|
),
|
||||||
'hsts_preload' => array(
|
'hsts_preload' => array(
|
||||||
'label' => $lng['admin']['domain_hsts_preload']['title'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['domain_hsts_preload']['title'],
|
||||||
'desc' => $lng['admin']['domain_hsts_preload']['description'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['admin']['domain_hsts_preload']['description'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array(
|
array(
|
||||||
'label' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
|
||||||
'value' => '1'
|
'value' => '1'
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -16,53 +16,53 @@
|
|||||||
*/
|
*/
|
||||||
return array(
|
return array(
|
||||||
'domain_edit' => array(
|
'domain_edit' => array(
|
||||||
'title' => $lng['domains']['subdomain_edit'],
|
'title' => \Froxlor\I18N\Lang::getAll()['domains']['subdomain_edit'],
|
||||||
'image' => 'icons/domain_edit.png',
|
'image' => 'icons/domain_edit.png',
|
||||||
'sections' => array(
|
'sections' => array(
|
||||||
'section_a' => array(
|
'section_a' => array(
|
||||||
'title' => $lng['domains']['subdomain_edit'],
|
'title' => \Froxlor\I18N\Lang::getAll()['domains']['subdomain_edit'],
|
||||||
'image' => 'icons/domain_edit.png',
|
'image' => 'icons/domain_edit.png',
|
||||||
'fields' => array(
|
'fields' => array(
|
||||||
'domain' => array(
|
'domain' => array(
|
||||||
'label' => $lng['domains']['domainname'],
|
'label' => \Froxlor\I18N\Lang::getAll()['domains']['domainname'],
|
||||||
'type' => 'label',
|
'type' => 'label',
|
||||||
'value' => $result['domain']
|
'value' => $result['domain']
|
||||||
),
|
),
|
||||||
'dns' => array(
|
'dns' => array(
|
||||||
'label' => $lng['dns']['destinationip'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['domains']['aliasdomain'],
|
'label' => \Froxlor\I18N\Lang::getAll()['domains']['aliasdomain'],
|
||||||
'type' => 'select',
|
'type' => 'select',
|
||||||
'select_var' => $domains
|
'select_var' => $domains
|
||||||
),
|
),
|
||||||
'path' => array(
|
'path' => array(
|
||||||
'label' => $lng['panel']['path'],
|
'label' => \Froxlor\I18N\Lang::getAll()['panel']['path'],
|
||||||
'desc' => (\Froxlor\Settings::Get('panel.pathedit') != 'Dropdown' ? $lng['panel']['pathDescriptionSubdomain'] : null) . (isset($pathSelect['note']) ? '<br />' . $pathSelect['value'] : ''),
|
'desc' => (\Froxlor\Settings::Get('panel.pathedit') != 'Dropdown' ? \Froxlor\I18N\Lang::getAll()['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' => $lng['panel']['urloverridespath'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['domains']['redirectifpathisurl'],
|
'label' => \Froxlor\I18N\Lang::getAll()['domains']['redirectifpathisurl'],
|
||||||
'desc' => $lng['domains']['redirectifpathisurlinfo'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['selectserveralias'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['selectserveralias'],
|
||||||
'desc' => $lng['admin']['selectserveralias_desc'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['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' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['domain']['openbasedirpath'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['phpsettings']['title'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['phpsettings']['title'],
|
||||||
'type' => 'select',
|
'type' => 'select',
|
||||||
'select_var' => $phpconfigs
|
'select_var' => $phpconfigs
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
'section_bssl' => array(
|
'section_bssl' => array(
|
||||||
'title' => $lng['admin']['webserversettings_ssl'],
|
'title' => \Froxlor\I18N\Lang::getAll()['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' => $lng['domains']['ssl_redirect']['title'],
|
'label' => \Froxlor\I18N\Lang::getAll()['domains']['ssl_redirect']['title'],
|
||||||
'desc' => $lng['domains']['ssl_redirect']['description'] . ($result['temporary_ssl_redirect'] > 1 ? $lng['domains']['ssl_redirect_temporarilydisabled'] : ''),
|
'desc' => \Froxlor\I18N\Lang::getAll()['domains']['ssl_redirect']['description'] . ($result['temporary_ssl_redirect'] > 1 ? \Froxlor\I18N\Lang::getAll()['domains']['ssl_redirect_temporarilydisabled'] : ''),
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array(
|
array(
|
||||||
'label' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['customer']['letsencrypt']['title'],
|
'label' => \Froxlor\I18N\Lang::getAll()['customer']['letsencrypt']['title'],
|
||||||
'desc' => $lng['customer']['letsencrypt']['description'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['customer']['letsencrypt']['description'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array(
|
array(
|
||||||
'label' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
|
||||||
'value' => '1'
|
'value' => '1'
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
@@ -129,20 +129,20 @@ return array(
|
|||||||
)
|
)
|
||||||
),
|
),
|
||||||
'hsts_maxage' => array(
|
'hsts_maxage' => array(
|
||||||
'label' => $lng['admin']['domain_hsts_maxage']['title'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['domain_hsts_maxage']['title'],
|
||||||
'desc' => $lng['admin']['domain_hsts_maxage']['description'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['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' => $lng['admin']['domain_hsts_incsub']['title'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['domain_hsts_incsub']['title'],
|
||||||
'desc' => $lng['admin']['domain_hsts_incsub']['description'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['admin']['domain_hsts_incsub']['description'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array(
|
array(
|
||||||
'label' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
|
||||||
'value' => '1'
|
'value' => '1'
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
@@ -151,12 +151,12 @@ return array(
|
|||||||
)
|
)
|
||||||
),
|
),
|
||||||
'hsts_preload' => array(
|
'hsts_preload' => array(
|
||||||
'label' => $lng['admin']['domain_hsts_preload']['title'],
|
'label' => \Froxlor\I18N\Lang::getAll()['admin']['domain_hsts_preload']['title'],
|
||||||
'desc' => $lng['admin']['domain_hsts_preload']['description'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['admin']['domain_hsts_preload']['description'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array(
|
array(
|
||||||
'label' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
|
||||||
'value' => '1'
|
'value' => '1'
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -16,25 +16,25 @@
|
|||||||
*/
|
*/
|
||||||
return array(
|
return array(
|
||||||
'emails_accountchangepasswd' => array(
|
'emails_accountchangepasswd' => array(
|
||||||
'title' => $lng['menue']['main']['changepassword'],
|
'title' => \Froxlor\I18N\Lang::getAll()['menue']['main']['changepassword'],
|
||||||
'image' => 'icons/email_edit.png',
|
'image' => 'icons/email_edit.png',
|
||||||
'sections' => array(
|
'sections' => array(
|
||||||
'section_a' => array(
|
'section_a' => array(
|
||||||
'title' => $lng['menue']['main']['changepassword'],
|
'title' => \Froxlor\I18N\Lang::getAll()['menue']['main']['changepassword'],
|
||||||
'image' => 'icons/email_edit.png',
|
'image' => 'icons/email_edit.png',
|
||||||
'fields' => array(
|
'fields' => array(
|
||||||
'email_full' => array(
|
'email_full' => array(
|
||||||
'label' => $lng['emails']['emailaddress'],
|
'label' => \Froxlor\I18N\Lang::getAll()['emails']['emailaddress'],
|
||||||
'type' => 'label',
|
'type' => 'label',
|
||||||
'value' => $result['email_full']
|
'value' => $result['email_full']
|
||||||
),
|
),
|
||||||
'email_password' => array(
|
'email_password' => array(
|
||||||
'label' => $lng['login']['password'],
|
'label' => \Froxlor\I18N\Lang::getAll()['login']['password'],
|
||||||
'type' => 'password',
|
'type' => 'password',
|
||||||
'autocomplete' => 'off'
|
'autocomplete' => 'off'
|
||||||
),
|
),
|
||||||
'email_password_suggestion' => array(
|
'email_password_suggestion' => array(
|
||||||
'label' => $lng['customer']['generated_pwd'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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()
|
||||||
|
|||||||
@@ -16,20 +16,20 @@
|
|||||||
*/
|
*/
|
||||||
return array(
|
return array(
|
||||||
'emails_accountchangequota' => array(
|
'emails_accountchangequota' => array(
|
||||||
'title' => $lng['emails']['quota_edit'],
|
'title' => \Froxlor\I18N\Lang::getAll()['emails']['quota_edit'],
|
||||||
'image' => 'icons/email_edit.png',
|
'image' => 'icons/email_edit.png',
|
||||||
'sections' => array(
|
'sections' => array(
|
||||||
'section_a' => array(
|
'section_a' => array(
|
||||||
'title' => $lng['emails']['quota_edit'],
|
'title' => \Froxlor\I18N\Lang::getAll()['emails']['quota_edit'],
|
||||||
'image' => 'icons/email_edit.png',
|
'image' => 'icons/email_edit.png',
|
||||||
'fields' => array(
|
'fields' => array(
|
||||||
'email_full' => array(
|
'email_full' => array(
|
||||||
'label' => $lng['emails']['emailaddress'],
|
'label' => \Froxlor\I18N\Lang::getAll()['emails']['emailaddress'],
|
||||||
'type' => 'label',
|
'type' => 'label',
|
||||||
'value' => $result['email_full']
|
'value' => $result['email_full']
|
||||||
),
|
),
|
||||||
'email_quota' => array(
|
'email_quota' => array(
|
||||||
'label' => $lng['emails']['quota'] . ' (MiB)',
|
'label' => \Froxlor\I18N\Lang::getAll()['emails']['quota'] . ' (MiB)',
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
'value' => $result['quota']
|
'value' => $result['quota']
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -16,15 +16,15 @@
|
|||||||
*/
|
*/
|
||||||
return array(
|
return array(
|
||||||
'emails_add' => array(
|
'emails_add' => array(
|
||||||
'title' => $lng['emails']['emails_add'],
|
'title' => \Froxlor\I18N\Lang::getAll()['emails']['emails_add'],
|
||||||
'image' => 'icons/email_add.png',
|
'image' => 'icons/email_add.png',
|
||||||
'sections' => array(
|
'sections' => array(
|
||||||
'section_a' => array(
|
'section_a' => array(
|
||||||
'title' => $lng['emails']['emails_add'],
|
'title' => \Froxlor\I18N\Lang::getAll()['emails']['emails_add'],
|
||||||
'image' => 'icons/email_add.png',
|
'image' => 'icons/email_add.png',
|
||||||
'fields' => array(
|
'fields' => array(
|
||||||
'email_part' => array(
|
'email_part' => array(
|
||||||
'label' => $lng['emails']['emailaddress'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['emails']['iscatchall'],
|
'label' => \Froxlor\I18N\Lang::getAll()['emails']['iscatchall'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array(
|
array(
|
||||||
'label' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
|
||||||
'value' => '1'
|
'value' => '1'
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -16,39 +16,39 @@
|
|||||||
*/
|
*/
|
||||||
return array(
|
return array(
|
||||||
'emails_addaccount' => array(
|
'emails_addaccount' => array(
|
||||||
'title' => $lng['emails']['account_add'],
|
'title' => \Froxlor\I18N\Lang::getAll()['emails']['account_add'],
|
||||||
'image' => 'icons/email_add.png',
|
'image' => 'icons/email_add.png',
|
||||||
'sections' => array(
|
'sections' => array(
|
||||||
'section_a' => array(
|
'section_a' => array(
|
||||||
'title' => $lng['emails']['account_add'],
|
'title' => \Froxlor\I18N\Lang::getAll()['emails']['account_add'],
|
||||||
'image' => 'icons/email_add.png',
|
'image' => 'icons/email_add.png',
|
||||||
'fields' => array(
|
'fields' => array(
|
||||||
'email_full' => array(
|
'email_full' => array(
|
||||||
'label' => $lng['emails']['emailaddress'],
|
'label' => \Froxlor\I18N\Lang::getAll()['emails']['emailaddress'],
|
||||||
'type' => 'label',
|
'type' => 'label',
|
||||||
'value' => $result['email_full']
|
'value' => $result['email_full']
|
||||||
),
|
),
|
||||||
'email_password' => array(
|
'email_password' => array(
|
||||||
'label' => $lng['login']['password'],
|
'label' => \Froxlor\I18N\Lang::getAll()['login']['password'],
|
||||||
'type' => 'password',
|
'type' => 'password',
|
||||||
'autocomplete' => 'off'
|
'autocomplete' => 'off'
|
||||||
),
|
),
|
||||||
'email_password_suggestion' => array(
|
'email_password_suggestion' => array(
|
||||||
'label' => $lng['customer']['generated_pwd'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['emails']['quota'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['emails']['alternative_emailaddress'],
|
'label' => \Froxlor\I18N\Lang::getAll()['emails']['alternative_emailaddress'],
|
||||||
'type' => 'text'
|
'type' => 'text'
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -16,20 +16,20 @@
|
|||||||
*/
|
*/
|
||||||
return array(
|
return array(
|
||||||
'emails_addforwarder' => array(
|
'emails_addforwarder' => array(
|
||||||
'title' => $lng['emails']['forwarder_add'],
|
'title' => \Froxlor\I18N\Lang::getAll()['emails']['forwarder_add'],
|
||||||
'image' => 'icons/autoresponder_add.png',
|
'image' => 'icons/autoresponder_add.png',
|
||||||
'sections' => array(
|
'sections' => array(
|
||||||
'section_a' => array(
|
'section_a' => array(
|
||||||
'title' => $lng['emails']['forwarder_add'],
|
'title' => \Froxlor\I18N\Lang::getAll()['emails']['forwarder_add'],
|
||||||
'image' => 'icons/autoresponder_add.png',
|
'image' => 'icons/autoresponder_add.png',
|
||||||
'fields' => array(
|
'fields' => array(
|
||||||
'email_full' => array(
|
'email_full' => array(
|
||||||
'label' => $lng['emails']['from'],
|
'label' => \Froxlor\I18N\Lang::getAll()['emails']['from'],
|
||||||
'type' => 'label',
|
'type' => 'label',
|
||||||
'value' => $result['email_full']
|
'value' => $result['email_full']
|
||||||
),
|
),
|
||||||
'destination' => array(
|
'destination' => array(
|
||||||
'label' => $lng['emails']['to'],
|
'label' => \Froxlor\I18N\Lang::getAll()['emails']['to'],
|
||||||
'type' => 'text'
|
'type' => 'text'
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -16,46 +16,46 @@
|
|||||||
*/
|
*/
|
||||||
return array(
|
return array(
|
||||||
'emails_edit' => array(
|
'emails_edit' => array(
|
||||||
'title' => $lng['emails']['emails_edit'],
|
'title' => \Froxlor\I18N\Lang::getAll()['emails']['emails_edit'],
|
||||||
'image' => 'icons/email_edit.png',
|
'image' => 'icons/email_edit.png',
|
||||||
'sections' => array(
|
'sections' => array(
|
||||||
'section_a' => array(
|
'section_a' => array(
|
||||||
'title' => $lng['emails']['emails_edit'],
|
'title' => \Froxlor\I18N\Lang::getAll()['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' => $lng['emails']['emailaddress'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['emails']['account'],
|
'label' => \Froxlor\I18N\Lang::getAll()['emails']['account'],
|
||||||
'type' => 'label',
|
'type' => 'label',
|
||||||
'value' => $lng['panel']['yes'] . ' [<a href="' . $filename . '?page=accounts&action=changepw&id=' . $result['id'] . '&s=' . $s . '">' . $lng['menue']['main']['changepassword'] . '</a>] [<a href="' . $filename . '?page=accounts&action=delete&id=' . $result['id'] . '&s=' . $s . '">' . $lng['emails']['account_delete'] . '</a>]'
|
'value' => \Froxlor\I18N\Lang::getAll()['panel']['yes'] . ' [<a href="' . $filename . '?page=accounts&action=changepw&id=' . $result['id'] . '&s=' . $s . '">' . \Froxlor\I18N\Lang::getAll()['menue']['main']['changepassword'] . '</a>] [<a href="' . $filename . '?page=accounts&action=delete&id=' . $result['id'] . '&s=' . $s . '">' . \Froxlor\I18N\Lang::getAll()['emails']['account_delete'] . '</a>]'
|
||||||
),
|
),
|
||||||
'account_no' => array(
|
'account_no' => array(
|
||||||
'visible' => ($result['popaccountid'] == 0 ? true : false),
|
'visible' => ($result['popaccountid'] == 0 ? true : false),
|
||||||
'label' => $lng['emails']['account'],
|
'label' => \Froxlor\I18N\Lang::getAll()['emails']['account'],
|
||||||
'type' => 'label',
|
'type' => 'label',
|
||||||
'value' => $lng['panel']['no'] . ' [<a href="' . $filename . '?page=accounts&action=add&id=' . $result['id'] . '&s=' . $s . '">' . $lng['emails']['account_add'] . '</a>]'
|
'value' => \Froxlor\I18N\Lang::getAll()['panel']['no'] . ' [<a href="' . $filename . '?page=accounts&action=add&id=' . $result['id'] . '&s=' . $s . '">' . \Froxlor\I18N\Lang::getAll()['emails']['account_add'] . '</a>]'
|
||||||
),
|
),
|
||||||
'mail_quota' => array(
|
'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' => $lng['customer']['email_quota'],
|
'label' => \Froxlor\I18N\Lang::getAll()['customer']['email_quota'],
|
||||||
'type' => 'label',
|
'type' => 'label',
|
||||||
'value' => $result['quota'] . ' MiB [<a href="' . $filename . '?page=accounts&action=changequota&id=' . $result['id'] . '&s=' . $s . '">' . $lng['emails']['quota_edit'] . '</a>]'
|
'value' => $result['quota'] . ' MiB [<a href="' . $filename . '?page=accounts&action=changequota&id=' . $result['id'] . '&s=' . $s . '">' . \Froxlor\I18N\Lang::getAll()['emails']['quota_edit'] . '</a>]'
|
||||||
),
|
),
|
||||||
'mail_catchall' => array(
|
'mail_catchall' => array(
|
||||||
'label' => $lng['emails']['catchall'],
|
'label' => \Froxlor\I18N\Lang::getAll()['emails']['catchall'],
|
||||||
'type' => 'label',
|
'type' => 'label',
|
||||||
'value' => ($result['iscatchall'] == 0 ? $lng['panel']['no'] : $lng['panel']['yes']) . ' [<a href="' . $filename . '?page=' . $page . '&action=togglecatchall&id=' . $result['id'] . '&s=' . $s . '">' . $lng['panel']['toggle'] . '</a>]'
|
'value' => ($result['iscatchall'] == 0 ? \Froxlor\I18N\Lang::getAll()['panel']['no'] : \Froxlor\I18N\Lang::getAll()['panel']['yes']) . ' [<a href="' . $filename . '?page=' . $page . '&action=togglecatchall&id=' . $result['id'] . '&s=' . $s . '">' . \Froxlor\I18N\Lang::getAll()['panel']['toggle'] . '</a>]'
|
||||||
),
|
),
|
||||||
'mail_fwds' => array(
|
'mail_fwds' => array(
|
||||||
'label' => $lng['emails']['forwarders'] . ' (' . $forwarders_count . ')',
|
'label' => \Froxlor\I18N\Lang::getAll()['emails']['forwarders'] . ' (' . $forwarders_count . ')',
|
||||||
'type' => 'label',
|
'type' => 'label',
|
||||||
'value' => $forwarders . ' <a href="' . $filename . '?page=forwarders&action=add&id=' . $result['id'] . '&s=' . $s . '">' . $lng['emails']['forwarder_add'] . '</a>'
|
'value' => $forwarders . ' <a href="' . $filename . '?page=forwarders&action=add&id=' . $result['id'] . '&s=' . $s . '">' . \Froxlor\I18N\Lang::getAll()['emails']['forwarder_add'] . '</a>'
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -16,31 +16,31 @@
|
|||||||
*/
|
*/
|
||||||
return array(
|
return array(
|
||||||
'backup' => array(
|
'backup' => array(
|
||||||
'title' => $lng['extras']['backup'],
|
'title' => \Froxlor\I18N\Lang::getAll()['extras']['backup'],
|
||||||
'image' => 'icons/backup_big.png',
|
'image' => 'icons/backup_big.png',
|
||||||
'sections' => array(
|
'sections' => array(
|
||||||
'section_a' => array(
|
'section_a' => array(
|
||||||
'title' => $lng['extras']['backup'],
|
'title' => \Froxlor\I18N\Lang::getAll()['extras']['backup'],
|
||||||
'image' => 'icons/backup_big.png',
|
'image' => 'icons/backup_big.png',
|
||||||
'fields' => array(
|
'fields' => array(
|
||||||
'path' => array(
|
'path' => array(
|
||||||
'label' => $lng['panel']['backuppath']['title'],
|
'label' => \Froxlor\I18N\Lang::getAll()['panel']['backuppath']['title'],
|
||||||
'desc' => $lng['panel']['backuppath']['description'] . '<br>' . (\Froxlor\Settings::Get('panel.pathedit') != 'Dropdown' ? $lng['panel']['pathDescription'] : null) . (isset($pathSelect['note']) ? '<br />' . $pathSelect['value'] : ''),
|
'desc' => \Froxlor\I18N\Lang::getAll()['panel']['backuppath']['description'] . '<br>' . (\Froxlor\Settings::Get('panel.pathedit') != 'Dropdown' ? \Froxlor\I18N\Lang::getAll()['panel']['pathDescription'] : null) . (isset($pathSelect['note']) ? '<br />' . $pathSelect['value'] : ''),
|
||||||
'type' => $pathSelect['type'],
|
'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' => $lng['extras']['path_protection_label'],
|
'label' => \Froxlor\I18N\Lang::getAll()['extras']['path_protection_label'],
|
||||||
'type' => 'label',
|
'type' => 'label',
|
||||||
'value' => $lng['extras']['path_protection_info']
|
'value' => \Froxlor\I18N\Lang::getAll()['extras']['path_protection_info']
|
||||||
),
|
),
|
||||||
'backup_web' => array(
|
'backup_web' => array(
|
||||||
'label' => $lng['extras']['backup_web'],
|
'label' => \Froxlor\I18N\Lang::getAll()['extras']['backup_web'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array(
|
array(
|
||||||
'label' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
|
||||||
'value' => '1'
|
'value' => '1'
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
@@ -49,11 +49,11 @@ return array(
|
|||||||
)
|
)
|
||||||
),
|
),
|
||||||
'backup_mail' => array(
|
'backup_mail' => array(
|
||||||
'label' => $lng['extras']['backup_mail'],
|
'label' => \Froxlor\I18N\Lang::getAll()['extras']['backup_mail'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array(
|
array(
|
||||||
'label' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
|
||||||
'value' => '1'
|
'value' => '1'
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
@@ -62,11 +62,11 @@ return array(
|
|||||||
)
|
)
|
||||||
),
|
),
|
||||||
'backup_dbs' => array(
|
'backup_dbs' => array(
|
||||||
'label' => $lng['extras']['backup_dbs'],
|
'label' => \Froxlor\I18N\Lang::getAll()['extras']['backup_dbs'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array(
|
array(
|
||||||
'label' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
|
||||||
'value' => '1'
|
'value' => '1'
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -16,55 +16,55 @@
|
|||||||
*/
|
*/
|
||||||
return array(
|
return array(
|
||||||
'htaccess_add' => array(
|
'htaccess_add' => array(
|
||||||
'title' => $lng['extras']['pathoptions_add'],
|
'title' => \Froxlor\I18N\Lang::getAll()['extras']['pathoptions_add'],
|
||||||
'image' => 'icons/htpasswd_add.png',
|
'image' => 'icons/htpasswd_add.png',
|
||||||
'sections' => array(
|
'sections' => array(
|
||||||
'section_a' => array(
|
'section_a' => array(
|
||||||
'title' => $lng['extras']['pathoptions_add'],
|
'title' => \Froxlor\I18N\Lang::getAll()['extras']['pathoptions_add'],
|
||||||
'image' => 'icons/htpasswd_add.png',
|
'image' => 'icons/htpasswd_add.png',
|
||||||
'fields' => array(
|
'fields' => array(
|
||||||
'path' => array(
|
'path' => array(
|
||||||
'label' => $lng['panel']['path'],
|
'label' => \Froxlor\I18N\Lang::getAll()['panel']['path'],
|
||||||
'desc' => (\Froxlor\Settings::Get('panel.pathedit') != 'Dropdown' ? $lng['panel']['pathDescription'] : null) . (isset($pathSelect['note']) ? '<br />' . $pathSelect['value'] : ''),
|
'desc' => (\Froxlor\Settings::Get('panel.pathedit') != 'Dropdown' ? \Froxlor\I18N\Lang::getAll()['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' => $lng['extras']['directory_browsing'],
|
'label' => \Froxlor\I18N\Lang::getAll()['extras']['directory_browsing'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array(
|
array(
|
||||||
'label' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
|
||||||
'value' => '1'
|
'value' => '1'
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
'value' => array()
|
'value' => array()
|
||||||
),
|
),
|
||||||
'error404path' => array(
|
'error404path' => array(
|
||||||
'label' => $lng['extras']['errordocument404path'],
|
'label' => \Froxlor\I18N\Lang::getAll()['extras']['errordocument404path'],
|
||||||
'desc' => $lng['panel']['descriptionerrordocument'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['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' => $lng['extras']['errordocument403path'],
|
'label' => \Froxlor\I18N\Lang::getAll()['extras']['errordocument403path'],
|
||||||
'desc' => $lng['panel']['descriptionerrordocument'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['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' => $lng['extras']['errordocument500path'],
|
'label' => \Froxlor\I18N\Lang::getAll()['extras']['errordocument500path'],
|
||||||
'desc' => $lng['panel']['descriptionerrordocument'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['panel']['descriptionerrordocument'],
|
||||||
'type' => 'text'
|
'type' => 'text'
|
||||||
),
|
),
|
||||||
'options_cgi' => array(
|
'options_cgi' => array(
|
||||||
'visible' => ($cperlenabled == 1),
|
'visible' => ($cperlenabled == 1),
|
||||||
'label' => $lng['extras']['execute_perl'],
|
'label' => \Froxlor\I18N\Lang::getAll()['extras']['execute_perl'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array(
|
array(
|
||||||
'label' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
|
||||||
'value' => '1'
|
'value' => '1'
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -16,24 +16,24 @@
|
|||||||
*/
|
*/
|
||||||
return array(
|
return array(
|
||||||
'htaccess_edit' => array(
|
'htaccess_edit' => array(
|
||||||
'title' => $lng['extras']['pathoptions_edit'],
|
'title' => \Froxlor\I18N\Lang::getAll()['extras']['pathoptions_edit'],
|
||||||
'image' => 'icons/htpasswd_edit.png',
|
'image' => 'icons/htpasswd_edit.png',
|
||||||
'sections' => array(
|
'sections' => array(
|
||||||
'section_a' => array(
|
'section_a' => array(
|
||||||
'title' => $lng['extras']['pathoptions_edit'],
|
'title' => \Froxlor\I18N\Lang::getAll()['extras']['pathoptions_edit'],
|
||||||
'image' => 'icons/htpasswd_edit.png',
|
'image' => 'icons/htpasswd_edit.png',
|
||||||
'fields' => array(
|
'fields' => array(
|
||||||
'path' => array(
|
'path' => array(
|
||||||
'label' => $lng['panel']['path'],
|
'label' => \Froxlor\I18N\Lang::getAll()['panel']['path'],
|
||||||
'type' => 'label',
|
'type' => 'label',
|
||||||
'value' => $result['path']
|
'value' => $result['path']
|
||||||
),
|
),
|
||||||
'options_indexes' => array(
|
'options_indexes' => array(
|
||||||
'label' => $lng['extras']['directory_browsing'],
|
'label' => \Froxlor\I18N\Lang::getAll()['extras']['directory_browsing'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array(
|
array(
|
||||||
'label' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
|
||||||
'value' => '1'
|
'value' => '1'
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
@@ -42,32 +42,32 @@ return array(
|
|||||||
)
|
)
|
||||||
),
|
),
|
||||||
'error404path' => array(
|
'error404path' => array(
|
||||||
'label' => $lng['extras']['errordocument404path'],
|
'label' => \Froxlor\I18N\Lang::getAll()['extras']['errordocument404path'],
|
||||||
'desc' => $lng['panel']['descriptionerrordocument'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['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' => $lng['extras']['errordocument403path'],
|
'label' => \Froxlor\I18N\Lang::getAll()['extras']['errordocument403path'],
|
||||||
'desc' => $lng['panel']['descriptionerrordocument'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['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' => $lng['extras']['errordocument500path'],
|
'label' => \Froxlor\I18N\Lang::getAll()['extras']['errordocument500path'],
|
||||||
'desc' => $lng['panel']['descriptionerrordocument'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['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' => $lng['extras']['execute_perl'],
|
'label' => \Froxlor\I18N\Lang::getAll()['extras']['execute_perl'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array(
|
array(
|
||||||
'label' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
|
||||||
'value' => '1'
|
'value' => '1'
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -16,37 +16,37 @@
|
|||||||
*/
|
*/
|
||||||
return array(
|
return array(
|
||||||
'htpasswd_add' => array(
|
'htpasswd_add' => array(
|
||||||
'title' => $lng['extras']['directoryprotection_add'],
|
'title' => \Froxlor\I18N\Lang::getAll()['extras']['directoryprotection_add'],
|
||||||
'image' => 'icons/htpasswd_add.png',
|
'image' => 'icons/htpasswd_add.png',
|
||||||
'sections' => array(
|
'sections' => array(
|
||||||
'section_a' => array(
|
'section_a' => array(
|
||||||
'title' => $lng['extras']['directoryprotection_add'],
|
'title' => \Froxlor\I18N\Lang::getAll()['extras']['directoryprotection_add'],
|
||||||
'image' => 'icons/htpasswd_add.png',
|
'image' => 'icons/htpasswd_add.png',
|
||||||
'fields' => array(
|
'fields' => array(
|
||||||
'path' => array(
|
'path' => array(
|
||||||
'label' => $lng['panel']['path'],
|
'label' => \Froxlor\I18N\Lang::getAll()['panel']['path'],
|
||||||
'desc' => (\Froxlor\Settings::Get('panel.pathedit') != 'Dropdown' ? $lng['panel']['pathDescription'] : null) . (isset($pathSelect['note']) ? '<br />' . $pathSelect['value'] : ''),
|
'desc' => (\Froxlor\Settings::Get('panel.pathedit') != 'Dropdown' ? \Froxlor\I18N\Lang::getAll()['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' => $lng['login']['username'],
|
'label' => \Froxlor\I18N\Lang::getAll()['login']['username'],
|
||||||
'type' => 'text'
|
'type' => 'text'
|
||||||
),
|
),
|
||||||
'directory_password' => array(
|
'directory_password' => array(
|
||||||
'label' => $lng['login']['password'],
|
'label' => \Froxlor\I18N\Lang::getAll()['login']['password'],
|
||||||
'type' => 'password',
|
'type' => 'password',
|
||||||
'autocomplete' => 'off'
|
'autocomplete' => 'off'
|
||||||
),
|
),
|
||||||
'directory_password_suggestion' => array(
|
'directory_password_suggestion' => array(
|
||||||
'label' => $lng['customer']['generated_pwd'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['extras']['htpasswdauthname'],
|
'label' => \Froxlor\I18N\Lang::getAll()['extras']['htpasswdauthname'],
|
||||||
'type' => 'text'
|
'type' => 'text'
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -16,36 +16,36 @@
|
|||||||
*/
|
*/
|
||||||
return array(
|
return array(
|
||||||
'htpasswd_edit' => array(
|
'htpasswd_edit' => array(
|
||||||
'title' => $lng['extras']['directoryprotection_edit'],
|
'title' => \Froxlor\I18N\Lang::getAll()['extras']['directoryprotection_edit'],
|
||||||
'image' => 'icons/htpasswd_edit.png',
|
'image' => 'icons/htpasswd_edit.png',
|
||||||
'sections' => array(
|
'sections' => array(
|
||||||
'section_a' => array(
|
'section_a' => array(
|
||||||
'title' => $lng['extras']['directoryprotection_edit'],
|
'title' => \Froxlor\I18N\Lang::getAll()['extras']['directoryprotection_edit'],
|
||||||
'image' => 'icons/htpasswd_edit.png',
|
'image' => 'icons/htpasswd_edit.png',
|
||||||
'fields' => array(
|
'fields' => array(
|
||||||
'path' => array(
|
'path' => array(
|
||||||
'label' => $lng['panel']['path'],
|
'label' => \Froxlor\I18N\Lang::getAll()['panel']['path'],
|
||||||
'type' => 'label',
|
'type' => 'label',
|
||||||
'value' => $result['path']
|
'value' => $result['path']
|
||||||
),
|
),
|
||||||
'username' => array(
|
'username' => array(
|
||||||
'label' => $lng['login']['username'],
|
'label' => \Froxlor\I18N\Lang::getAll()['login']['username'],
|
||||||
'type' => 'label',
|
'type' => 'label',
|
||||||
'value' => $result['username']
|
'value' => $result['username']
|
||||||
),
|
),
|
||||||
'directory_password' => array(
|
'directory_password' => array(
|
||||||
'label' => $lng['login']['password'],
|
'label' => \Froxlor\I18N\Lang::getAll()['login']['password'],
|
||||||
'type' => 'password',
|
'type' => 'password',
|
||||||
'autocomplete' => 'off'
|
'autocomplete' => 'off'
|
||||||
),
|
),
|
||||||
'directory_password_suggestion' => array(
|
'directory_password_suggestion' => array(
|
||||||
'label' => $lng['customer']['generated_pwd'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['extras']['htpasswdauthname'],
|
'label' => \Froxlor\I18N\Lang::getAll()['extras']['htpasswdauthname'],
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
'value' => $result['authname']
|
'value' => $result['authname']
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -15,52 +15,52 @@
|
|||||||
*/
|
*/
|
||||||
return array(
|
return array(
|
||||||
'ftp_add' => array(
|
'ftp_add' => array(
|
||||||
'title' => $lng['ftp']['account_add'],
|
'title' => \Froxlor\I18N\Lang::getAll()['ftp']['account_add'],
|
||||||
'image' => 'icons/user_add.png',
|
'image' => 'icons/user_add.png',
|
||||||
'sections' => array(
|
'sections' => array(
|
||||||
'section_a' => array(
|
'section_a' => array(
|
||||||
'title' => $lng['ftp']['account_add'],
|
'title' => \Froxlor\I18N\Lang::getAll()['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' => $lng['login']['username'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['domains']['domainname'],
|
'label' => \Froxlor\I18N\Lang::getAll()['domains']['domainname'],
|
||||||
'type' => 'select',
|
'type' => 'select',
|
||||||
'select_var' => (isset($domains) ? $domains : "")
|
'select_var' => (isset($domains) ? $domains : "")
|
||||||
),
|
),
|
||||||
'ftp_description' => array(
|
'ftp_description' => array(
|
||||||
'label' => $lng['panel']['ftpdesc'] = 'FTP description',
|
'label' => \Froxlor\I18N\Lang::getAll()['panel']['ftpdesc'] = 'FTP description',
|
||||||
'type' => 'text'
|
'type' => 'text'
|
||||||
),
|
),
|
||||||
'path' => array(
|
'path' => array(
|
||||||
'label' => $lng['panel']['path'],
|
'label' => \Froxlor\I18N\Lang::getAll()['panel']['path'],
|
||||||
'desc' => (\Froxlor\Settings::Get('panel.pathedit') != 'Dropdown' ? $lng['panel']['pathDescription'] : null) . (isset($pathSelect['note']) ? '<br />' . $pathSelect['value'] : ''),
|
'desc' => (\Froxlor\Settings::Get('panel.pathedit') != 'Dropdown' ? \Froxlor\I18N\Lang::getAll()['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' => $lng['login']['password'],
|
'label' => \Froxlor\I18N\Lang::getAll()['login']['password'],
|
||||||
'type' => 'password',
|
'type' => 'password',
|
||||||
'autocomplete' => 'off'
|
'autocomplete' => 'off'
|
||||||
),
|
),
|
||||||
'ftp_password_suggestion' => array(
|
'ftp_password_suggestion' => array(
|
||||||
'label' => $lng['customer']['generated_pwd'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['customer']['sendinfomail'],
|
'label' => \Froxlor\I18N\Lang::getAll()['customer']['sendinfomail'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array(
|
array(
|
||||||
'label' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['panel']['shell'],
|
'label' => \Froxlor\I18N\Lang::getAll()['panel']['shell'],
|
||||||
'type' => 'select',
|
'type' => 'select',
|
||||||
'select_var' => (isset($shells) ? $shells : "")
|
'select_var' => (isset($shells) ? $shells : "")
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -15,45 +15,45 @@
|
|||||||
*/
|
*/
|
||||||
return array(
|
return array(
|
||||||
'ftp_edit' => array(
|
'ftp_edit' => array(
|
||||||
'title' => $lng['ftp']['account_edit'],
|
'title' => \Froxlor\I18N\Lang::getAll()['ftp']['account_edit'],
|
||||||
'image' => 'icons/user_edit.png',
|
'image' => 'icons/user_edit.png',
|
||||||
'sections' => array(
|
'sections' => array(
|
||||||
'section_a' => array(
|
'section_a' => array(
|
||||||
'title' => $lng['ftp']['account_edit'],
|
'title' => \Froxlor\I18N\Lang::getAll()['ftp']['account_edit'],
|
||||||
'image' => 'icons/user_edit.png',
|
'image' => 'icons/user_edit.png',
|
||||||
'fields' => array(
|
'fields' => array(
|
||||||
'username' => array(
|
'username' => array(
|
||||||
'label' => $lng['login']['username'],
|
'label' => \Froxlor\I18N\Lang::getAll()['login']['username'],
|
||||||
'type' => 'label',
|
'type' => 'label',
|
||||||
'value' => $result['username']
|
'value' => $result['username']
|
||||||
),
|
),
|
||||||
'ftp_description' => array(
|
'ftp_description' => array(
|
||||||
'label' => $lng['panel']['ftpdesc'] = 'FTP description',
|
'label' => \Froxlor\I18N\Lang::getAll()['panel']['ftpdesc'] = 'FTP description',
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
'value' => $result['description']
|
'value' => $result['description']
|
||||||
),
|
),
|
||||||
'path' => array(
|
'path' => array(
|
||||||
'label' => $lng['panel']['path'],
|
'label' => \Froxlor\I18N\Lang::getAll()['panel']['path'],
|
||||||
'desc' => (\Froxlor\Settings::Get('panel.pathedit') != 'Dropdown' ? $lng['panel']['pathDescription'] : null) . (isset($pathSelect['note']) ? '<br />' . $pathSelect['value'] : ''),
|
'desc' => (\Froxlor\Settings::Get('panel.pathedit') != 'Dropdown' ? \Froxlor\I18N\Lang::getAll()['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' => $lng['login']['password'],
|
'label' => \Froxlor\I18N\Lang::getAll()['login']['password'],
|
||||||
'desc' => $lng['ftp']['editpassdescription'],
|
'desc' => \Froxlor\I18N\Lang::getAll()['ftp']['editpassdescription'],
|
||||||
'type' => 'password',
|
'type' => 'password',
|
||||||
'autocomplete' => 'off'
|
'autocomplete' => 'off'
|
||||||
),
|
),
|
||||||
'ftp_password_suggestion' => array(
|
'ftp_password_suggestion' => array(
|
||||||
'label' => $lng['customer']['generated_pwd'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['panel']['shell'],
|
'label' => \Froxlor\I18N\Lang::getAll()['panel']['shell'],
|
||||||
'type' => 'select',
|
'type' => 'select',
|
||||||
'select_var' => (isset($shells) ? $shells : "")
|
'select_var' => (isset($shells) ? $shells : "")
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -15,40 +15,40 @@
|
|||||||
*/
|
*/
|
||||||
return array(
|
return array(
|
||||||
'mysql_add' => array(
|
'mysql_add' => array(
|
||||||
'title' => $lng['mysql']['database_create'],
|
'title' => \Froxlor\I18N\Lang::getAll()['mysql']['database_create'],
|
||||||
'image' => 'icons/mysql_add.png',
|
'image' => 'icons/mysql_add.png',
|
||||||
'sections' => array(
|
'sections' => array(
|
||||||
'section_a' => array(
|
'section_a' => array(
|
||||||
'title' => $lng['mysql']['database_create'],
|
'title' => \Froxlor\I18N\Lang::getAll()['mysql']['database_create'],
|
||||||
'image' => 'icons/mysql_add.png',
|
'image' => 'icons/mysql_add.png',
|
||||||
'fields' => array(
|
'fields' => array(
|
||||||
'description' => array(
|
'description' => array(
|
||||||
'label' => $lng['mysql']['databasedescription'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['mysql']['mysql_server'],
|
'label' => \Froxlor\I18N\Lang::getAll()['mysql']['mysql_server'],
|
||||||
'type' => 'select',
|
'type' => 'select',
|
||||||
'select_var' => $mysql_servers
|
'select_var' => $mysql_servers
|
||||||
),
|
),
|
||||||
'mysql_password' => array(
|
'mysql_password' => array(
|
||||||
'label' => $lng['login']['password'],
|
'label' => \Froxlor\I18N\Lang::getAll()['login']['password'],
|
||||||
'type' => 'password',
|
'type' => 'password',
|
||||||
'autocomplete' => 'off'
|
'autocomplete' => 'off'
|
||||||
),
|
),
|
||||||
'mysql_password_suggestion' => array(
|
'mysql_password_suggestion' => array(
|
||||||
'label' => $lng['customer']['generated_pwd'],
|
'label' => \Froxlor\I18N\Lang::getAll()['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' => $lng['customer']['sendinfomail'],
|
'label' => \Froxlor\I18N\Lang::getAll()['customer']['sendinfomail'],
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array(
|
array(
|
||||||
'label' => $lng['panel']['yes'],
|
'label' => \Froxlor\I18N\Lang::getAll()['panel']['yes'],
|
||||||
'value' => '1'
|
'value' => '1'
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user