Newer
Older
'datatype' => 'INTEGER',
'formtype' => 'TEXT',
'default' => '7',
'value' => '',
'width' => '20',
'maxlength' => '255'
),
'overquota_notify_onok' => array(
'datatype' => 'VARCHAR',
'formtype' => 'CHECKBOX',
'default' => 'n',
'value' => array(0 => 'n', 1 => 'y')
),
'user' => array(
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'default' => '',
'validators' => array(0 => array('type' => 'NOTEMPTY',
'errmsg' => 'apache_user_error_empty'),
1 => array(
'type' => 'CUSTOM',
'class' => 'validate_systemuser',
'function' => 'check_sysuser',
'check_names' => false,
'errmsg' => 'invalid_apache_user_txt'
),
),
'value' => '',
'width' => '40',
'maxlength' => '255'
),
'group' => array(
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'default' => '',
'validators' => array(0 => array('type' => 'NOTEMPTY',
'errmsg' => 'apache_group_error_empty'),
1 => array(
'type' => 'CUSTOM',
'class' => 'validate_systemuser',
'function' => 'check_sysgroup',
'check_names' => false,
'errmsg' => 'invalid_apache_group_txt'
),
),
'value' => '',
'width' => '40',
'maxlength' => '255'
),
'connect_userid_to_webid' => array(
'datatype' => 'VARCHAR',
'formtype' => 'CHECKBOX',
'default' => 'n',
'value' => array(0 => 'n', 1 => 'y')
),
'connect_userid_to_webid_start' => array(
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'default' => '10000',
'validators' => array(0 => array('type' => 'ISINT',
'errmsg' => 'connect_userid_to_webid_startid_isint'),
),
'value' => '',
'width' => '40',
'maxlength' => '255'
),
'nginx_user' => array(
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'default' => '',
'validators' => array( 0 => array('type' => 'NOTEMPTY',
'errmsg' => 'nginx_user_error_empty'),
1 => array(
'type' => 'CUSTOM',
'class' => 'validate_systemuser',
'function' => 'check_sysuser',
'check_names' => false,
'errmsg' => 'invalid_nginx_user_txt'
),
),
'value' => '',
'width' => '40',
'maxlength' => '255'
),
'nginx_group' => array(
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'default' => '',
'validators' => array( 0 => array('type' => 'NOTEMPTY',
'errmsg' => 'nginx_group_error_empty'),
1 => array(
'type' => 'CUSTOM',
'class' => 'validate_systemuser',
'function' => 'check_sysgroup',
'check_names' => false,
'errmsg' => 'invalid_nginx_group_txt'
),
),
'value' => '',
'width' => '40',
'maxlength' => '255'
),
'php_ini_path_apache' => array(
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'default' => '',
'validators' => array( 0 => array('type' => 'NOTEMPTY',
'errmsg' => 'php_ini_path_apache_error_empty'),
1 => array ( 'type' => 'REGEX',
'regex' => '/^\/[a-zA-Z0-9\.\-\_\/]{5,128}$/',
'errmsg'=> 'php_ini_path_apache_error_regex'),
),
'value' => '',
'width' => '40',
'maxlength' => '255'
),
'php_ini_path_cgi' => array(
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'default' => '',
'validators' => array( 0 => array('type' => 'NOTEMPTY',
'errmsg' => 'php_ini_path_cgi_error_empty'),
1 => array ( 'type' => 'REGEX',
'regex' => '/^\/[a-zA-Z0-9\.\-\_\/]{5,128}$/',
'errmsg'=> 'php_ini_path_cgi_error_regex'),
),
'value' => '',
'width' => '40',
'maxlength' => '255'
),
'php_default_name' => array(
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'default' => 'Default',
'validators' => array( 0 => array('type' => 'NOTEMPTY',
'errmsg' => 'php_default_name_error_empty'),
),
'filters' => array(
0 => array( 'event' => 'SAVE',
'type' => 'TRIM'),
1 => array( 'event' => 'SAVE',
'type' => 'STRIPTAGS'),
2 => array( 'event' => 'SAVE',
'type' => 'STRIPNL')
),
'width' => '40',
'maxlength' => '255'
),
'php_fpm_init_script' => array(
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'default' => '',
'validators' => array( 0 => array('type' => 'NOTEMPTY',
'errmsg' => 'php_fpm_init_script_error_empty'),
1 => array ( 'type' => 'REGEX',
'regex' => '/^[a-zA-Z0-9\.\-\_]{1,128}$/',
'errmsg'=> 'php_fpm_init_script_error_regex'),
),
'value' => '',
'width' => '40',
'maxlength' => '255'
),
'php_fpm_ini_path' => array(
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'default' => '',
'validators' => array( 0 => array('type' => 'NOTEMPTY',
'errmsg' => 'php_fpm_ini_path_error_empty'),
1 => array ( 'type' => 'REGEX',
'regex' => '/^\/[a-zA-Z0-9\.\-\_\/]{5,128}$/',
'errmsg'=> 'php_fpm_ini_path_error_regex'),
),
'value' => '',
'width' => '40',
'maxlength' => '255'
),
'php_fpm_pool_dir' => array(
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'default' => '',
'validators' => array( 0 => array('type' => 'NOTEMPTY',
'errmsg' => 'php_fpm_pool_dir_error_empty'),
1 => array ( 'type' => 'REGEX',
'regex' => '/^\/[a-zA-Z0-9\.\-\_\/]{5,128}$/',
'errmsg'=> 'php_fpm_pool_dir_error_regex'),
),
'value' => '',
'width' => '40',
'maxlength' => '255'
),
'php_fpm_start_port' => array(
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'default' => '',
'validators' => array(0 => array('type' => 'ISPOSITIVE',
'errmsg' => 'php_fpm_start_port_error_empty'),
),
'value' => '',
'width' => '40',
'maxlength' => '255'
),
'php_fpm_socket_dir' => array(
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'default' => '',
'validators' => array( 0 => array('type' => 'NOTEMPTY',
'errmsg' => 'php_fpm_socket_dir_error_empty'),
1 => array ( 'type' => 'REGEX',
'regex' => '/^\/[a-zA-Z0-9\.\-\_\/]{5,128}$/',
'errmsg'=> 'php_fpm_socket_dir_error_regex'),
),
'value' => '',
'width' => '40',
'maxlength' => '255'
),
'php_open_basedir' => array(
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'default' => '',
'validators' => array( 0 => array('type' => 'NOTEMPTY',
'errmsg' => 'php_open_basedir_error_empty'),
1 => array ( 'type' => 'REGEX',
'regex' => '/^[a-zA-Z0-9\.\-\_\/\]\[\:]{1,}$/',
'errmsg'=> 'php_open_basedir_error_regex'),
),
'value' => '',
'width' => '40',
),
'php_ini_check_minutes' => array(
'datatype' => 'INTEGER',
'formtype' => 'TEXT',
'default' => '1',
'validators' => array(0 => array('type' => 'NOTEMPTY',
'errmsg' => 'php_ini_check_minutes_error_empty'),
),
'value' => '',
'width' => '10',
'maxlength' => '255'
),
'php_handler' => array(
'datatype' => 'VARCHAR',
'formtype' => 'SELECT',
'default' => 'fast-cgi',
'value' => array('no' => 'disabled_txt', 'fast-cgi' => 'Fast-CGI', 'cgi' => 'CGI', 'mod' => 'Mod-PHP', 'suphp' => 'SuPHP', 'php-fpm' => 'PHP-FPM', 'hhvm' => 'HHVM'),
'searchable' => 2
),
'nginx_cgi_socket' => array(
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'default' => '',
'validators' => array( 0 => array('type' => 'NOTEMPTY',
'errmsg' => 'nginx_cgi_socket_empty'),
1 => array ( 'type' => 'REGEX',
'regex' => '/^\/[a-zA-Z0-9\.\-\_\/]{1,128}$/',
'errmsg'=> 'nginx_cgi_socket_error_regex'),
),
'value' => '',
'width' => '40',
'maxlength' => '255'
),
'htaccess_allow_override' => array(
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'default' => '',
'validators' => array( 0 => array('type' => 'NOTEMPTY',
'errmsg' => 'htaccess_allow_override_error_empty'),
),
'filters' => array(
0 => array( 'event' => 'SAVE',
'type' => 'STRIPTAGS'),
1 => array( 'event' => 'SAVE',
'type' => 'STRIPNL')
),
'value' => '',
'width' => '40',
'maxlength' => '255'
),
'enable_spdy' => array (
'datatype' => 'VARCHAR',
'formtype' => 'CHECKBOX',
'value' => array (
0 => 'n',
1 => 'y'
)
),
'apps_vhost_enabled' => array (
'datatype' => 'VARCHAR',
'formtype' => 'CHECKBOX',
'default' => 'y',
'value' => array (0 => 'n', 1 => 'y')
),
'apps_vhost_port' => array(
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'default' => '8081',
'validators' => array(0 => array('type' => 'NOTEMPTY',
'errmsg' => 'apps_vhost_port_error_empty'),
),
'filters' => array(
0 => array( 'event' => 'SAVE',
'type' => 'STRIPTAGS'),
1 => array( 'event' => 'SAVE',
'type' => 'STRIPNL')
),
'value' => '',
'width' => '40',
'maxlength' => '255'
),
'apps_vhost_ip' => array(
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'default' => '_default_',
'validators' => array(0 => array('type' => 'NOTEMPTY',
'errmsg' => 'apps_vhost_ip_error_empty'),
),
'filters' => array(
0 => array( 'event' => 'SAVE',
'type' => 'STRIPTAGS'),
1 => array( 'event' => 'SAVE',
'type' => 'STRIPNL')
),
'value' => '',
'width' => '40',
'maxlength' => '255'
),
'apps_vhost_servername' => array(
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'filters' => array(
0 => array( 'event' => 'SAVE',
'type' => 'STRIPTAGS'),
1 => array( 'event' => 'SAVE',
'type' => 'STRIPNL')
),
'default' => '',
'value' => '',
'width' => '40',
'maxlength' => '255'
),
'awstats_conf_dir' => array(
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'filters' => array(
0 => array( 'event' => 'SAVE',
'type' => 'STRIPTAGS'),
1 => array( 'event' => 'SAVE',
'type' => 'STRIPNL')
),
'default' => '',
'value' => '',
'width' => '40',
'maxlength' => '255'
),
'awstats_data_dir' => array(
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'validators' => array( 0 => array('type' => 'NOTEMPTY',
'errmsg' => 'awstats_data_dir_empty'),
1 => array ( 'type' => 'REGEX',
'regex' => '/^\/[a-zA-Z0-9\.\-\_\/]{1,128}$/',
'errmsg'=> 'awstats_data_dir_error_regex'),
),
'default' => '',
'value' => '',
'width' => '40',
'maxlength' => '255'
),
'awstats_pl' => array(
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'validators' => array( 0 => array('type' => 'NOTEMPTY',
'errmsg' => 'awstats_pl_empty'),
1 => array ( 'type' => 'REGEX',
'regex' => '/^\/[a-zA-Z0-9\.\-\_\/]{1,128}$/',
'errmsg'=> 'awstats_pl_error_regex'),
),
'default' => '',
'value' => '',
'width' => '40',
'maxlength' => '255'
),
'awstats_buildstaticpages_pl' => array(
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'validators' => array( 0 => array('type' => 'NOTEMPTY',
'errmsg' => 'awstats_buildstaticpages_pl_empty'),
1 => array ( 'type' => 'REGEX',
'regex' => '/^\/[a-zA-Z0-9\.\-\_\/]{1,128}$/',
'errmsg'=> 'awstats_buildstaticpages_pl_error_regex'),
),
'default' => '',
'value' => '',
'width' => '40',
'maxlength' => '255'
'skip_le_check' => array (
'datatype' => 'VARCHAR',
'formtype' => 'CHECKBOX',
'default' => 'n',
'value' => array (
0 => 'n',
1 => 'y'
)
),
//#################################
// ENDE Datatable fields
//#################################
$form["tabs"]['dns'] = array(
'title' => "DNS",
'width' => 60,
'template' => "templates/server_config_dns_edit.htm",
'fields' => array(
//#################################
// Begin Datatable fields
//#################################
'bind_user' => array(
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'default' => '',
'validators' => array( 0 => array('type' => 'NOTEMPTY',
'errmsg' => 'bind_user_error_empty'),
1 => array ( 'type' => 'REGEX',
'regex' => '/^(?!ispconfig)([a-zA-Z0-9]{1,20})$/',
'errmsg'=> 'invalid_bind_user_txt'),
),
'value' => '',
'width' => '40',
'maxlength' => '255'
),
'bind_group' => array(
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'default' => '',
'validators' => array( 0 => array('type' => 'NOTEMPTY',
'errmsg' => 'bind_group_error_empty'),
1 => array ( 'type' => 'REGEX',
'regex' => '/^(?!ispconfig)([a-zA-Z0-9]{1,20})$/',
'errmsg'=> 'invalid_bind_group_txt'),
),
'value' => '',
'width' => '40',
'maxlength' => '255'
),
'bind_zonefiles_dir' => array(
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'default' => '',
'validators' => array( 0 => array('type' => 'NOTEMPTY',
'errmsg' => 'bind_zonefiles_dir_error_empty'),
1 => array ( 'type' => 'REGEX',
'regex' => '/^\/[a-zA-Z0-9\.\-\_\/]{1,128}$/',
'errmsg'=> 'bind_zonefiles_dir_error_regex'),
),
'value' => '',
'width' => '40',
'maxlength' => '255'
),
'named_conf_path' => array(
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'default' => '',
'validators' => array( 0 => array('type' => 'NOTEMPTY',
'errmsg' => 'named_conf_path_error_empty'),
1 => array ( 'type' => 'REGEX',
'regex' => '/^\/[a-zA-Z0-9\.\-\_\/]{1,128}$/',
'errmsg'=> 'named_conf_path_error_regex'),
),
'value' => '',
'width' => '40',
'maxlength' => '255'
),
'named_conf_local_path' => array(
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'default' => '',
'validators' => array( 0 => array('type' => 'NOTEMPTY',
'errmsg' => 'named_conf_local_path_error_empty'),
1 => array ( 'type' => 'REGEX',
'regex' => '/^\/[a-zA-Z0-9\.\-\_\/]{1,128}$/',
'errmsg'=> 'named_conf_local_path_error_regex'),
),
'value' => '',
'width' => '40',
'maxlength' => '255'
Florian Schaal
committed
'disable_bind_log' => array (
'datatype' => 'VARCHAR',
'formtype' => 'CHECKBOX',
'default' => 'n',
'value' => array(0 => 'n', 1 => 'y')
),
//#################################
// ENDE Datatable fields
//#################################
$form["tabs"]['fastcgi'] = array(
'title' => "FastCGI",
'width' => 80,
'template' => "templates/server_config_fastcgi_edit.htm",
'fields' => array(
//#################################
// Begin Datatable fields
//#################################
'fastcgi_starter_path' => array(
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'default' => '',
'validators' => array( 0 => array('type' => 'NOTEMPTY',
'errmsg' => 'fastcgi_starter_path_error_empty'),
1 => array ( 'type' => 'REGEX',
'regex' => '/^\/[a-zA-Z0-9\.\-\_\/\[\]]{1,128}$/',
'errmsg'=> 'fastcgi_starter_path_error_regex'),
),
'value' => '',
'width' => '40',
'maxlength' => '255'
),
'fastcgi_starter_script' => array(
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'default' => '',
'validators' => array( 0 => array('type' => 'NOTEMPTY',
'errmsg' => 'fastcgi_starter_script_error_empty'),
1 => array ( 'type' => 'REGEX',
'regex' => '/^[a-zA-Z0-9\.\-\_\/]{1,128}$/',
'errmsg'=> 'fastcgi_starter_script_error_regex'),
),
'value' => '',
'width' => '40',
'maxlength' => '255'
),
'fastcgi_alias' => array(
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'default' => '',
'validators' => array( 0 => array('type' => 'NOTEMPTY',
'errmsg' => 'fastcgi_alias_error_empty'),
1 => array ( 'type' => 'REGEX',
'regex' => '/^[a-zA-Z0-9\.\-\_\/]{1,128}$/',
'errmsg'=> 'fastcgi_alias_error_regex'),
),
'value' => '',
'width' => '40',
'maxlength' => '255'
),
'fastcgi_phpini_path' => array(
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'default' => '',
'validators' => array( 0 => array('type' => 'NOTEMPTY',
'errmsg' => 'fastcgi_phpini_path_error_empty'),
1 => array ( 'type' => 'REGEX',
'regex' => '/^\/[a-zA-Z0-9\.\-\_\/\[\]]{1,128}$/',
'errmsg'=> 'fastcgi_phpini_path_error_regex'),
),
'value' => '',
'width' => '40',
'maxlength' => '255'
),
'fastcgi_children' => array(
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'default' => '',
'validators' => array(0 => array('type' => 'ISPOSITIVE',
'errmsg' => 'fastcgi_children_error_empty'),
),
'value' => '',
'width' => '40',
'maxlength' => '255'
),
'fastcgi_max_requests' => array(
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'default' => '',
'validators' => array( 0 => array( 'type' => 'ISINT',
'errmsg' => 'fastcgi_max_requests_error_empty'),
1 => array( 'type' => 'RANGE',
'range' => '0:',
'errmsg' => 'fastcgi_max_requests_error_empty'),
),
'value' => '',
'width' => '40',
'maxlength' => '255'
),
'fastcgi_bin' => array(
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'default' => '',
'validators' => array( 0 => array('type' => 'NOTEMPTY',
'errmsg' => 'fastcgi_bin_error_empty'),
1 => array ( 'type' => 'REGEX',
'regex' => '/^\/[a-zA-Z0-9\.\-\_\/\[\]]{1,128}$/',
'errmsg'=> 'fastcgi_bin_error_regex'),
),
'value' => '',
'width' => '40',
'maxlength' => '255'
'fastcgi_config_syntax' => array(
'datatype' => 'INTEGER',
'formtype' => 'SELECT',
'default' => '2',
'value' => array('1' => 'Old (apache 2.0)', '2' => 'New (apache 2.2)'),
'width' => '40',
'maxlength' => '255'
),
//#################################
// ENDE Datatable fields
//#################################
$form["tabs"]['xmpp'] = array(
'title' => "XMPP",
'width' => 80,
'template' => "templates/server_config_xmpp_edit.htm",
'fields' => array(
//#################################
// Begin Datatable fields
//#################################
'xmpp_daemon' => array(
'datatype' => 'VARCHAR',
'formtype' => 'SELECT',
'default' => '20',
'value' => array('prosody' => 'Prosody', 'metronome' => 'Metronome')
),
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
'xmpp_use_ipv6' => array(
'datatype' => 'VARCHAR',
'formtype' => 'CHECKBOX',
'default' => 'n',
'value' => array(0 => 'n', 1 => 'y')
),
'xmpp_bosh_max_inactivity' => array(
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'default' => '30',
'validators' => array(0 => array('type' => 'ISINT',
'errmsg' => 'ip_address_error_wrong'),
array('type'=>'RANGE', 'range'=>'15:360', 'errmsg' => 'xmpp_bosh_timeout_range_wrong')
),
'value' => '',
'width' => '15'
),
'xmpp_server_admins' => array(
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'filters' => array(
0 => array( 'event' => 'SAVE',
'type' => 'STRIPTAGS'),
1 => array( 'event' => 'SAVE',
'type' => 'STRIPNL')
),
'default' => 'admin@service.com, superuser@service.com',
'value' => '',
'width' => '15'
),
'xmpp_modules_enabled' => array(
'datatype' => 'TEXT',
'formtype' => 'TEXT',
'filters' => array(
0 => array( 'event' => 'SAVE',
'type' => 'STRIPTAGS'),
1 => array( 'event' => 'SAVE',
'type' => 'STRIPNL')
),
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
'default' => "saslauth, tls, dialback, disco, discoitems, version, uptime, time, ping, admin_adhoc, admin_telnet, bosh, posix, announce, offline, webpresence, mam, stream_management, message_carbons",
'value' => '',
'separator' => ","
),
'xmpp_port_http' => array(
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'default' => '5290',
'validators' => array(0 => array('type' => 'ISINT')),
'value' => '5290',
'width' => '15'
),
'xmpp_port_https' => array(
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'default' => '5291',
'validators' => array(0 => array('type' => 'ISINT')),
'value' => '5291',
'width' => '15'
),
'xmpp_port_pastebin' => array(
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'default' => '5292',
'validators' => array(0 => array('type' => 'ISINT')),
'value' => '5292',
'width' => '15'
),
'xmpp_port_bosh' => array(
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'default' => '5280',
'validators' => array(0 => array('type' => 'ISINT')),
'value' => '5280',
'width' => '15'
),
//#################################
// ENDE Datatable fields
//#################################
)
);
$form["tabs"]['jailkit'] = array(
'title' => "Jailkit",
'width' => 80,
'template' => "templates/server_config_jailkit_edit.htm",
'fields' => array(
//#################################
// Begin Datatable fields
//#################################
'jailkit_chroot_home' => array(
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'default' => '',
'validators' => array( 0 => array('type' => 'NOTEMPTY',
'errmsg' => 'jailkit_chroot_home_error_empty'),
1 => array ( 'type' => 'REGEX',
'regex' => '/^\/[a-zA-Z0-9\.\-\_\/\[\]]{1,128}$/',
'errmsg'=> 'jailkit_chroot_home_error_regex'),
),
'value' => '',
'width' => '40',
'maxlength' => '255'
),
'jailkit_chroot_app_sections' => array(
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'default' => '',
'validators' => array( 0 => array('type' => 'NOTEMPTY',
'errmsg' => 'jailkit_chroot_app_sections_error_empty'),
1 => array ( 'type' => 'REGEX',
'regex' => '/^[a-zA-Z0-9\-\_\ ]{1,128}$/',
'errmsg'=> 'jailkit_chroot_app_sections_error_regex'),
),
'value' => '',
'width' => '40',
'maxlength' => '1000'
),
'jailkit_chroot_app_programs' => array(
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'default' => '',
'validators' => array( 0 => array('type' => 'NOTEMPTY',
'errmsg' => 'jailkit_chroot_app_programs_error_empty'),
1 => array ( 'type' => 'REGEX',
'regex' => '/^[a-zA-Z0-9\*\.\-\_\/\ ]{1,}$/',
'errmsg'=> 'jailkit_chroot_app_programs_error_regex'),
),
'value' => '',
'width' => '40',
'maxlength' => '1000'
),
'jailkit_chroot_cron_programs' => array(
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'default' => '',
'validators' => array( 0 => array('type' => 'NOTEMPTY',
'errmsg' => 'jailkit_chroot_cron_programs_error_empty'),
1 => array ( 'type' => 'REGEX',
'regex' => '/^[a-zA-Z0-9\.\-\_\/\ ]{1,}$/',
'errmsg'=> 'jailkit_chroot_cron_programs_error_regex'),
),
'value' => '',
'width' => '40',
'maxlength' => '1000'
),
//#################################
// ENDE Datatable fields
//#################################
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
$form["tabs"]['ufw_firewall'] = array (
'title' => "UFW Firewall",
'width' => 80,
'template' => "templates/server_config_ufw_edit.htm",
'fields' => array (
##################################
# Begin Datatable fields
##################################
'ufw_enable' => array (
'datatype' => 'VARCHAR',
'formtype' => 'CHECKBOX',
'default' => 'no',
'value' => array(0 => 'no',1 => 'yes')
),
'ufw_manage_builtins' => array (
'datatype' => 'VARCHAR',
'formtype' => 'CHECKBOX',
'default' => 'no',
'value' => array(0 => 'no',1 => 'yes')
),
'ufw_ipv6' => array (
'datatype' => 'VARCHAR',
'formtype' => 'CHECKBOX',
'default' => 'no',
'value' => array(0 => 'no',1 => 'yes')
),
'ufw_default_input_policy' => array (
'datatype' => 'VARCHAR',
'formtype' => 'SELECT',
'default' => 'ACCEPT',
'value' => array('ACCEPT' => 'accept', 'DROP' => 'drop', 'REJECT' => 'reject')
),
'ufw_default_output_policy' => array (
'datatype' => 'VARCHAR',
'formtype' => 'SELECT',
'default' => 'ACCEPT',
'value' => array('ACCEPT' => 'accept', 'DROP' => 'drop', 'REJECT' => 'reject')
),
'ufw_default_forward_policy' => array (
'datatype' => 'VARCHAR',
'formtype' => 'SELECT',
'default' => 'ACCEPT',
'value' => array('ACCEPT' => 'accept', 'DROP' => 'drop', 'REJECT' => 'reject')
),
'ufw_default_application_policy' => array (
'datatype' => 'VARCHAR',
'formtype' => 'SELECT',
'default' => 'DROP',
'value' => array('ACCEPT' => 'accept', 'DROP' => 'drop', 'REJECT' => 'reject')
),
'ufw_log_level' => array (
'datatype' => 'VARCHAR',
'formtype' => 'SELECT',
'default' => 'low',
'value' => array('low' => 'low', 'medium' => 'medium', 'high' => 'high')
)
##################################
# ENDE Datatable fields
##################################
)
);
$form["tabs"]['vlogger'] = array(
'title' => "vlogger",
'width' => 80,
'template' => "templates/server_config_vlogger_edit.htm",
'fields' => array(
//#################################
// Begin Datatable fields
//#################################
'config_dir' => array(
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'default' => '',
'validators' => array( 0 => array('type' => 'NOTEMPTY',
'errmsg' => 'vlogger_config_dir_error_empty'),
1 => array ( 'type' => 'REGEX',
'regex' => '/^\/[a-zA-Z0-9\.\-\_\/]{1,128}$/',
'errmsg'=> 'vlogger_config_dir_error_regex'),
),
'value' => '',
'width' => '40',
'maxlength' => '255'
),
//#################################
// ENDE Datatable fields
//#################################
)
$form["tabs"]['cron'] = array(
'title' => "Cron",
'width' => 80,
'template' => "templates/server_config_cron_edit.htm",
'fields' => array(
//#################################
// Begin Datatable fields
//#################################
'init_script' => array(
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'default' => '',
'validators' => array( 0 => array('type' => 'NOTEMPTY',
'errmsg' => 'cron_init_script_error_empty'),
1 => array ( 'type' => 'REGEX',
'regex' => '/^[a-zA-Z0-9\-\_]{1,30}$/',
'errmsg'=> 'cron_init_script_error_regex'),
),
'value' => '',
'width' => '40',
'maxlength' => '255'
),
'crontab_dir' => array(
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'default' => '',
'validators' => array( 0 => array('type' => 'NOTEMPTY',
'errmsg' => 'crontab_dir_error_empty'),
1 => array ( 'type' => 'REGEX',
'regex' => '/^\/[a-zA-Z0-9\.\-\_\/]{1,128}$/',
'errmsg'=> 'crontab_dir_error_regex'),
),
'value' => '',
'width' => '40',
'maxlength' => '255'
),
'wget' => array(
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'default' => '',
'validators' => array( 0 => array('type' => 'NOTEMPTY',
'errmsg' => 'cron_wget_error_empty'),
1 => array ( 'type' => 'REGEX',
'regex' => '/^\/[a-zA-Z0-9\.\-\_\/]{1,128}$/',
'errmsg'=> 'cron_wget_error_regex'),
),
'value' => '',
'width' => '40',
'maxlength' => '255'
),
//#################################
// ENDE Datatable fields
//#################################
)
$form["tabs"]['rescue'] = array(
'title' => "Rescue",
'width' => 80,
'template' => "templates/server_config_rescue_edit.htm",
'fields' => array(
//#################################
// Begin Datatable fields
//#################################
'try_rescue' => array(
'datatype' => 'VARCHAR',
'formtype' => 'CHECKBOX',
'default' => 'n',
'value' => array(0 => 'n', 1 => 'y')
),
'do_not_try_rescue_httpd' => array(
'datatype' => 'VARCHAR',
'formtype' => 'CHECKBOX',
'default' => 'n',
'value' => array(0 => 'n', 1 => 'y')
),
'do_not_try_rescue_mongodb' => array(
'datatype' => 'VARCHAR',
'formtype' => 'CHECKBOX',
'default' => 'n',
'value' => array(0 => 'n', 1 => 'y')
),
'do_not_try_rescue_mysql' => array(
'datatype' => 'VARCHAR',
'formtype' => 'CHECKBOX',
'default' => 'n',
'value' => array(0 => 'n', 1 => 'y')
),
'do_not_try_rescue_mail' => array(
'datatype' => 'VARCHAR',
'formtype' => 'CHECKBOX',
'default' => 'n',
'value' => array(0 => 'n', 1 => 'y')
),
//#################################
// ENDE Datatable fields
//#################################
)
);