mirror of
https://github.com/Froxlor/Froxlor.git
synced 2024-09-22 02:47:34 +00:00
4be52f76eb
Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
167 lines
5.4 KiB
PHP
167 lines
5.4 KiB
PHP
<?php
|
|
|
|
/**
|
|
* This file is part of the Froxlor project.
|
|
* Copyright (c) 2003-2009 the SysCP Team (see authors).
|
|
* Copyright (c) 2010 the Froxlor Team (see authors).
|
|
*
|
|
* For the full copyright and license information, please view the COPYING
|
|
* file that was distributed with this source code. You can also view the
|
|
* COPYING file online at http://files.froxlor.org/misc/COPYING.txt
|
|
*
|
|
* @copyright (c) the authors
|
|
* @author Florian Lippert <flo@syscp.org> (2003-2009)
|
|
* @author Froxlor team <team@froxlor.org> (2010-)
|
|
* @license GPLv2 http://files.froxlor.org/misc/COPYING.txt
|
|
* @package Settings
|
|
*
|
|
*/
|
|
|
|
return array(
|
|
'groups' => array(
|
|
'system' => array(
|
|
'title' => $lng['admin']['systemsettings'],
|
|
'fields' => array(
|
|
'system_documentroot_prefix' => array(
|
|
'label' => $lng['serversettings']['documentroot_prefix'],
|
|
'settinggroup' => 'system',
|
|
'varname' => 'documentroot_prefix',
|
|
'type' => 'string',
|
|
'string_type' => 'dir',
|
|
'default' => '/var/customers/webs/',
|
|
'save_method' => 'storeSettingField',
|
|
'plausibility_check_method' => 'checkPathConflicts'
|
|
),
|
|
'system_documentroot_use_default_value' => array(
|
|
'label' => $lng['serversettings']['documentroot_use_default_value'],
|
|
'settinggroup' => 'system',
|
|
'varname' => 'documentroot_use_default_value',
|
|
'type' => 'bool',
|
|
'default' => false,
|
|
'save_method' => 'storeSettingField',
|
|
),
|
|
'system_ipaddress' => array(
|
|
'label' => $lng['serversettings']['ipaddress'],
|
|
'settinggroup' => 'system',
|
|
'varname' => 'ipaddress',
|
|
'type' => 'option',
|
|
'option_mode' => 'one',
|
|
'option_options_method' => 'getIpAddresses',
|
|
'default' => '',
|
|
'save_method' => 'storeSettingIpAddress',
|
|
),
|
|
'system_defaultip' => array(
|
|
'label' => $lng['serversettings']['defaultip'],
|
|
'settinggroup' => 'system',
|
|
'varname' => 'defaultip',
|
|
'type' => 'option',
|
|
'option_mode' => 'one',
|
|
'option_options_method' => 'getIpPortCombinations',
|
|
'default' => '',
|
|
'save_method' => 'storeSettingDefaultIp',
|
|
),
|
|
'system_hostname' => array(
|
|
'label' => $lng['serversettings']['hostname'],
|
|
'settinggroup' => 'system',
|
|
'varname' => 'hostname',
|
|
'type' => 'string',
|
|
'default' => '',
|
|
'save_method' => 'storeSettingHostname',
|
|
'plausibility_check_method' => 'checkHostname',
|
|
),
|
|
'system_froxlordirectlyviahostname' => array(
|
|
'label' => $lng['serversettings']['froxlordirectlyviahostname'],
|
|
'settinggroup' => 'system',
|
|
'varname' => 'froxlordirectlyviahostname',
|
|
'type' => 'bool',
|
|
'default' => false,
|
|
'save_method' => 'storeSettingField',
|
|
),
|
|
'system_validatedomain' => array(
|
|
'label' => $lng['serversettings']['validate_domain'],
|
|
'settinggroup' => 'system',
|
|
'varname' => 'validate_domain',
|
|
'type' => 'bool',
|
|
'default' => true,
|
|
'save_method' => 'storeSettingField',
|
|
),
|
|
'system_stdsubdomain' => array(
|
|
'label' => $lng['serversettings']['stdsubdomainhost'],
|
|
'settinggroup' => 'system',
|
|
'varname' => 'stdsubdomain',
|
|
'type' => 'string',
|
|
'default' => '',
|
|
'save_method' => 'storeSettingHostname',
|
|
),
|
|
'system_mysql_access_host' => array(
|
|
'label' => $lng['serversettings']['mysql_access_host'],
|
|
'settinggroup' => 'system',
|
|
'varname' => 'mysql_access_host',
|
|
'type' => 'string',
|
|
'default' => '127.0.0.1,localhost',
|
|
'plausibility_check_method' => 'checkMysqlAccessHost',
|
|
'save_method' => 'storeSettingMysqlAccessHost',
|
|
),
|
|
'system_index_file_extension' => array(
|
|
'label' => $lng['serversettings']['index_file_extension'],
|
|
'settinggroup' => 'system',
|
|
'varname' => 'index_file_extension',
|
|
'type' => 'string',
|
|
'string_regexp' => '/^[a-zA-Z0-9]{1,6}$/',
|
|
'default' => 'html',
|
|
'save_method' => 'storeSettingField',
|
|
),
|
|
'system_store_index_file_subs' => array(
|
|
'label' => $lng['serversettings']['system_store_index_file_subs'],
|
|
'settinggroup' => 'system',
|
|
'varname' => 'store_index_file_subs',
|
|
'type' => 'bool',
|
|
'default' => true,
|
|
'save_method' => 'storeSettingField',
|
|
),
|
|
'system_httpuser' => array(
|
|
'settinggroup' => 'system',
|
|
'varname' => 'httpuser',
|
|
'type' => 'hidden',
|
|
'default' => 'www-data',
|
|
),
|
|
'system_httpgroup' => array(
|
|
'settinggroup' => 'system',
|
|
'varname' => 'httpgroup',
|
|
'type' => 'hidden',
|
|
'default' => 'www-data',
|
|
),
|
|
'system_report_enable' => array(
|
|
'label' => $lng['serversettings']['report']['report'],
|
|
'settinggroup' => 'system',
|
|
'varname' => 'report_enable',
|
|
'type' => 'bool',
|
|
'default' => true,
|
|
'cronmodule' => 'froxlor/reports',
|
|
'save_method' => 'storeSettingField',
|
|
),
|
|
'system_report_webmax' => array(
|
|
'label' => $lng['serversettings']['report']['webmax'],
|
|
'settinggroup' => 'system',
|
|
'varname' => 'report_webmax',
|
|
'type' => 'int',
|
|
'int_min' => 1,
|
|
'int_max' => 150,
|
|
'default' => 90,
|
|
'save_method' => 'storeSettingField',
|
|
),
|
|
'system_report_trafficmax' => array(
|
|
'label' => $lng['serversettings']['report']['trafficmax'],
|
|
'settinggroup' => 'system',
|
|
'varname' => 'report_trafficmax',
|
|
'type' => 'int',
|
|
'int_min' => 1,
|
|
'int_max' => 150,
|
|
'default' => 90,
|
|
'save_method' => 'storeSettingField',
|
|
),
|
|
),
|
|
),
|
|
),
|
|
);
|