mirror of
https://github.com/Froxlor/Froxlor.git
synced 2024-09-22 02:47:34 +00:00
85 lines
2.7 KiB
PHP
85 lines
2.7 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(
|
|
'nameserver' => array(
|
|
'title' => $lng['admin']['nameserversettings'],
|
|
'fields' => array(
|
|
'system_bindconf_directory' => array(
|
|
'label' => $lng['serversettings']['bindconf_directory'],
|
|
'settinggroup' => 'system',
|
|
'varname' => 'bindconf_directory',
|
|
'type' => 'string',
|
|
'string_type' => 'dir',
|
|
'default' => '/etc/bind/',
|
|
'save_method' => 'storeSettingField',
|
|
),
|
|
'system_bindreload_command' => array(
|
|
'label' => $lng['serversettings']['bindreload_command'],
|
|
'settinggroup' => 'system',
|
|
'varname' => 'bindreload_command',
|
|
'type' => 'string',
|
|
'default' => '/etc/init.d/bind9 reload',
|
|
'save_method' => 'storeSettingField',
|
|
),
|
|
'system_nameservers' => array(
|
|
'label' => $lng['serversettings']['nameservers'],
|
|
'settinggroup' => 'system',
|
|
'varname' => 'nameservers',
|
|
'type' => 'string',
|
|
'string_regexp' => '/^(([a-z0-9\-\._]+, ?)*[a-z0-9\-\._]+)?$/i',
|
|
'string_emptyallowed' => true,
|
|
'default' => '',
|
|
'save_method' => 'storeSettingFieldInsertBindTask',
|
|
),
|
|
'system_mxservers' => array(
|
|
'label' => $lng['serversettings']['mxservers'],
|
|
'settinggroup' => 'system',
|
|
'varname' => 'mxservers',
|
|
'type' => 'string',
|
|
'string_regexp' => '/^(([0-9]+ [a-z0-9\-\._]+, ?)*[0-9]+ [a-z0-9\-\._]+)?$/i',
|
|
'string_emptyallowed' => true,
|
|
'default' => '',
|
|
'save_method' => 'storeSettingField',
|
|
),
|
|
'system_dns_createmailentry' => array(
|
|
'label' => $lng['serversettings']['mail_also_with_mxservers'],
|
|
'settinggroup' => 'system',
|
|
'varname' => 'dns_createmailentry',
|
|
'type' => 'bool',
|
|
'default' => false,
|
|
'save_method' => 'storeSettingField'
|
|
),
|
|
'system_defaultttl' => array(
|
|
'label' => $lng['serversettings']['defaultttl'],
|
|
'settinggroup' => 'system',
|
|
'varname' => 'defaultttl',
|
|
'type' => 'int',
|
|
'default' => 604800, /* 1 week */
|
|
'int_min' => 3600, /* 1 hour */
|
|
'int_max' => 2147483647, /* integer max */
|
|
'save_method' => 'storeSettingField',
|
|
),
|
|
),
|
|
),
|
|
),
|
|
);
|
|
|
|
?>
|