filip
2010-09-27 04e09afcccbf4e7f3eafa540ea35ac22b38f5bc0
interface/web/admin/form/server_config.tform.php
@@ -67,9 +67,9 @@
      'ip_address' => array (
         'datatype'   => 'VARCHAR',
         'formtype'   => 'TEXT',
         'default'   => '192.168.0.100',
         'validators'   => array (    0 => array (   'type'   => 'NOTEMPTY',
                                          'errmsg'=> 'ip_address_error_empty'),
         'default'   => '192.168.0.105',
         'validators'   => array (    0 => array (   'type'   => 'ISIPV4',
                                          'errmsg'=> 'ip_address_error_wrong'),
                           ),
         'value'      => '',
         'width'      => '15',
@@ -79,8 +79,8 @@
         'datatype'   => 'VARCHAR',
         'formtype'   => 'TEXT',
         'default'   => '255.255.255.0',
         'validators'   => array (    0 => array (   'type'   => 'NOTEMPTY',
                                          'errmsg'=> 'netmask_error_empty'),
         'validators'   => array (    0 => array (   'type'   => 'ISIPV4',
                                          'errmsg'=> 'netmask_error_wrong'),
                           ),
         'value'      => '',
         'width'      => '15',
@@ -90,8 +90,8 @@
         'datatype'   => 'VARCHAR',
         'formtype'   => 'TEXT',
         'default'   => '192.168.0.1',
         'validators'   => array (    0 => array (   'type'   => 'NOTEMPTY',
                                          'errmsg'=> 'gateway_error_empty'),
         'validators'   => array (    0 => array (   'type'   => 'ISIPV4',
                                          'errmsg'=> 'gateway_error_wrong'),
                           ),
         'value'      => '',
         'width'      => '15',
@@ -100,7 +100,7 @@
      'hostname' => array (
         'datatype'   => 'VARCHAR',
         'formtype'   => 'TEXT',
         'default'   => 'server1.example.com',
         'default'   => 'server1.domain.tld',
         'validators'   => array (    0 => array (   'type'   => 'NOTEMPTY',
                                          'errmsg'=> 'hostname_error_empty'),
                           ),
@@ -114,6 +114,25 @@
         'default'   => '192.168.0.1,192.168.0.2',
         'validators'   => array (    0 => array (   'type'   => 'NOTEMPTY',
                                          'errmsg'=> 'nameservers_error_empty'),
                           ),
         'value'      => '',
         'width'      => '40',
         'maxlength'   => '255'
      ),
      'loglevel' => array (
         'datatype'   => 'INTEGER',
         'formtype'   => 'SELECT',
         'default'   => '2',
         'value'      => array('0' => 'Debug', '1' => 'Warnings', '2' => 'Errors'),
         'width'      => '40',
         'maxlength'   => '255'
      ),
      'backup_dir' => array (
         'datatype'   => 'VARCHAR',
         'formtype'   => 'TEXT',
         'default'   => '/var/backup',
         'validators'   => array (    0 => array (   'type'   => 'NOTEMPTY',
                                          'errmsg'=> 'backup_dir_error_empty'),
                           ),
         'value'      => '',
         'width'      => '40',
@@ -160,6 +179,18 @@
         'value'      => '',
         'width'      => '40',
         'maxlength'   => '255'
      ),
      'pop3_imap_daemon' => array (
         'datatype'   => 'VARCHAR',
         'formtype'   => 'SELECT',
         'default'   => '20',
         'value'      => array('courier' => 'Courier', 'dovecot' => 'Dovecot')
      ),
      'mail_filter_syntax' => array (
         'datatype'   => 'VARCHAR',
         'formtype'   => 'SELECT',
         'default'   => '20',
         'value'      => array('maildrop' => 'Maildrop', 'sieve' => 'Sieve')
      ),
      'mailuser_uid' => array (
         'datatype'   => 'INTEGER',
@@ -284,6 +315,17 @@
   ##################################
   # Begin Datatable fields
   ##################################
      'website_basedir' => array (
         'datatype'   => 'VARCHAR',
         'formtype'   => 'TEXT',
         'default'   => '',
         'validators'   => array (    0 => array (   'type'   => 'NOTEMPTY',
                                          'errmsg'=> 'website_basedir_error_empty'),
                           ),
         'value'      => '',
         'width'      => '40',
         'maxlength'   => '255'
      ),
      'website_path' => array (
         'datatype'   => 'VARCHAR',
         'formtype'   => 'TEXT',
@@ -323,6 +365,215 @@
         'default'   => '',
         'validators'   => array (    0 => array (   'type'   => 'NOTEMPTY',
                                          'errmsg'=> 'vhost_conf_enabled_dir_error_empty'),
                           ),
         'value'      => '',
         'width'      => '40',
         'maxlength'   => '255'
      ),
      'security_level' => array (
         'datatype'   => 'VARCHAR',
         'formtype'   => 'SELECT',
         'default'   => '20',
         'value'      => array('10' => 'Medium', '20' => 'High')
      ),
      'check_apache_config' => array (
         'datatype'   => 'VARCHAR',
         'formtype'   => 'CHECKBOX',
         'default'   => 'y',
         'value'      => array(0 => 'n',1 => 'y')
      ),
      'user' => array (
         'datatype'   => 'VARCHAR',
         'formtype'   => 'TEXT',
         'default'   => '',
         'validators'   => array (    0 => array (   'type'   => 'NOTEMPTY',
                                          'errmsg'=> 'apache_user_error_empty'),
                           ),
         'value'      => '',
         'width'      => '40',
         'maxlength'   => '255'
      ),
      'group' => array (
         'datatype'   => 'VARCHAR',
         'formtype'   => 'TEXT',
         'default'   => '',
         'validators'   => array (    0 => array (   'type'   => 'NOTEMPTY',
                                          'errmsg'=> 'apache_group_error_empty'),
                           ),
         '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'),
                           ),
         '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'),
                           ),
         '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'),
                           ),
         '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'),
                           ),
         'value'      => '',
         'width'      => '40',
         'maxlength'   => '255'
      ),
      'apps_vhost_port' => array (
         'datatype'   => 'VARCHAR',
         'formtype'   => 'TEXT',
         'default'   => '8081',
         'validators'   => array (    0 => array (   'type'   => 'NOTEMPTY',
                                          'errmsg'=> 'apps_vhost_port_error_empty'),
                           ),
         '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'),
                           ),
         'value'      => '',
         'width'      => '40',
         'maxlength'   => '255'
      ),
      'apps_vhost_servername' => array (
         'datatype'   => 'VARCHAR',
         'formtype'   => 'TEXT',
         'default'   => '',
         'value'      => '',
         'width'      => '40',
         'maxlength'   => '255'
      ),
      'awstats_conf_dir' => array (
         'datatype'   => 'VARCHAR',
         'formtype'   => 'TEXT',
         'default'   => '',
         'value'      => '',
         'width'      => '40',
         'maxlength'   => '255'
      ),
      'awstats_data_dir' => array (
         'datatype'   => 'VARCHAR',
         'formtype'   => 'TEXT',
         'default'   => '',
         'value'      => '',
         'width'      => '40',
         'maxlength'   => '255'
      ),
      'awstats_pl' => array (
         'datatype'   => 'VARCHAR',
         'formtype'   => 'TEXT',
         'default'   => '',
         'value'      => '',
         'width'      => '40',
         'maxlength'   => '255'
      ),
      'awstats_buildstaticpages_pl' => array (
         'datatype'   => 'VARCHAR',
         'formtype'   => 'TEXT',
         'default'   => '',
         'value'      => '',
         'width'      => '40',
         'maxlength'   => '255'
      ),
   ##################################
   # 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'),
                           ),
         'value'      => '',
         'width'      => '40',
         'maxlength'   => '255'
      ),
      'bind_group' => array (
         'datatype'   => 'VARCHAR',
         'formtype'   => 'TEXT',
         'default'   => '',
         'validators'   => array (    0 => array (   'type'   => 'NOTEMPTY',
                                          'errmsg'=> 'bind_group_error_empty'),
                           ),
         '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'),
                           ),
         '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'),
                           ),
         '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'),
                           ),
         'value'      => '',
         'width'      => '40',
@@ -467,6 +718,17 @@
         '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'),
                                    ),
            'value'     => '',
            'width'     => '40',
            'maxlength' => '1000'
        ),
   ##################################
   # ENDE Datatable fields
   ##################################
@@ -474,10 +736,79 @@
);
$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'),
                                    ),
            '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'),
                                    ),
            'value'     => '',
            'width'     => '40',
            'maxlength' => '255'
        ),
        'crontab_dir' => array (
            'datatype'  => 'VARCHAR',
            'formtype'  => 'TEXT',
            'default'   => '',
            'validators'    => array (  0 => array (    'type'  => 'NOTEMPTY',
                                                        'errmsg'=> 'crontab_dir_error_empty'),
                                    ),
            'value'     => '',
            'width'     => '40',
            'maxlength' => '255'
        ),
        'wget' => array (
            'datatype'  => 'VARCHAR',
            'formtype'  => 'TEXT',
            'default'   => '',
            'validators'    => array (  0 => array (    'type'  => 'NOTEMPTY',
                                                        'errmsg'=> 'cron_wget_error_empty'),
                                    ),
            'value'     => '',
            'width'     => '40',
            'maxlength' => '255'
        ),
    ##################################
    # ENDE Datatable fields
    ##################################
    )
);