Adding option to hide some elements in customer panel

This commit is contained in:
Michael Wyraz
2016-07-21 15:51:13 +02:00
parent 6589653667
commit 6ab8cb1d7c
6 changed files with 51 additions and 2 deletions

View File

@@ -227,6 +227,30 @@ return array(
'default' => false,
'save_method' => 'storeSettingField',
),
'panel_customer_hide_options' => array(
'label' => $lng['serversettings']['panel_customer_hide_options'],
'settinggroup' => 'panel',
'varname' => 'customer_hide_options',
'type' => 'option',
'default' => '',
'option_mode' => 'multiple',
'option_options' => array(
'email' => $lng['menue']['email']['email'],
'mysql' => $lng['menue']['mysql']['mysql'],
'domains' => $lng['menue']['domains']['domains'],
'ftp' => $lng['menue']['ftp']['ftp'],
'extras' => $lng['menue']['extras']['extras'],
'extras.directoryprotection' => $lng['menue']['extras']['extras']." / ".$lng['menue']['extras']['directoryprotection'],
'extras.pathoptions' => $lng['menue']['extras']['extras']." / ".$lng['menue']['extras']['pathoptions'],
'extras.logger' => $lng['menue']['extras']['extras']." / ".$lng['menue']['logger']['logger'],
'extras.backup' => $lng['menue']['extras']['extras']." / ".$lng['menue']['extras']['backup'],
'traffic' => $lng['menue']['traffic']['traffic'],
'traffic.http' => $lng['menue']['traffic']['traffic']." / HTTP",
'traffic.ftp' => $lng['menue']['traffic']['traffic']." / FTP",
'traffic.mail' => $lng['menue']['traffic']['traffic']." / Mail",
),
'save_method' => 'storeSettingField',
),
),
),
),

View File

@@ -561,7 +561,7 @@ INSERT INTO `panel_settings` (`settinggroup`, `varname`, `value`) VALUES
('panel', 'password_special_char_required', '0'),
('panel', 'password_special_char', '!?<>§$%+#=@'),
('panel', 'version', '0.9.37-rc1'),
('panel', 'db_version', '201607140');
('panel', 'db_version', '201607210');
DROP TABLE IF EXISTS `panel_tasks`;

View File

@@ -3402,3 +3402,12 @@ if (isFroxlorVersion('0.9.36')) {
updateToVersion('0.9.37-rc1');
}
if (isDatabaseVersion('201607140')) {
showUpdateStep("Adding new setting to hide certain options in customer panel");
Settings::AddNew("panel.customer_hide_options", "");
lastStepStatus(0);
updateToDbVersion('201607210');
}

View File

@@ -19,7 +19,7 @@
$version = '0.9.37-rc1';
// Database version (YYYYMMDDC where C is a daily counter)
$dbversion = '201607140';
$dbversion = '201607210';
// Distribution branding-tag (used for Debian etc.)
$branding = '';

View File

@@ -374,6 +374,14 @@ $lng['serversettings']['nameservers']['description'] = 'A comma separated list c
$lng['serversettings']['mxservers']['title'] = 'MX servers';
$lng['serversettings']['mxservers']['description'] = 'A comma separated list containing a pair of a number and a hostname separated by whitespace (e.g. \'10 mx.example.com\') containing the mx servers.';
/**
* Added in froxlor 0.9.7-rc1
**/
$lng['serversettings']['panel_customer_hide_options']['title'] = 'Hide certain options in customer panel';
$lng['serversettings']['panel_customer_hide_options']['description'] = 'Select options to hide in customer panel. To select multiple options, hold down CTRL while selecting.';
/**
* CHANGED BETWEEN 1.2.12 and 1.2.13
*/

View File

@@ -371,6 +371,14 @@ $lng['serversettings']['nameservers']['description'] = 'Eine durch Komma getrenn
$lng['serversettings']['mxservers']['title'] = 'MX-Server';
$lng['serversettings']['mxservers']['description'] = 'Eine durch Komma getrenne Liste, die ein Paar mit einer Nummer und den Hostnamen einen MX-Servers, getrennt durch ein Leerzeichen, enthält (z. B. \'10 mx.example.tld\').';
/**
* Added in froxlor 0.9.7-rc1
**/
$lng['serversettings']['panel_customer_hide_options']['title'] = 'Optionen im Kundenbereich ausblenden';
$lng['serversettings']['panel_customer_hide_options']['description'] = 'Wählen Sie hier die gewünschten Optionen aus, welche im Kundenbereich ausgeblendet werden sollen. Für Mehrfachauswahl, halten Sie während der Auswahl STRG gedrückt.';
/**
* CHANGED BETWEEN 1.2.12 and 1.2.13
*/