Marius Cramer
2014-01-22 ad955792a8ade5c0015aa3d68f86b1035c1acc31
interface/web/admin/form/server_config.tform.php
@@ -55,9 +55,9 @@
   'width' => 70,
   'template' => "templates/server_config_server_edit.htm",
   'fields' => array(
      ##################################
      # Begin Datatable fields
      ##################################
      //#################################
      // Begin Datatable fields
      //#################################
      'auto_network_configuration' => array(
         'datatype' => 'VARCHAR',
         'formtype' => 'CHECKBOX',
@@ -86,6 +86,7 @@
         'width' => '15',
         'maxlength' => '255'
      ),
      /*
      'v6_prefix' => array(
         'datatype' => 'VARCHAR',
         'formtype' => 'TEXT',
@@ -94,6 +95,7 @@
                        ),
      'default' => ''
      ),
      */
      'gateway' => array(
         'datatype' => 'VARCHAR',
         'formtype' => 'TEXT',
@@ -117,13 +119,13 @@
         'datatype' => 'VARCHAR',
         'formtype' => 'TEXT',
         'default' => 'server1.domain.tld',
            'filters'   => array( 0 => array( 'event' => 'SAVE',
                                              'type' => 'IDNTOASCII'),
                                  1 => array( 'event' => 'SHOW',
                                              'type' => 'IDNTOUTF8'),
                                  2 => array( 'event' => 'SAVE',
                                              'type' => 'TOLOWER')
                                ),
         'filters'   => array( 0 => array( 'event' => 'SAVE',
               'type' => 'IDNTOASCII'),
            1 => array( 'event' => 'SHOW',
               'type' => 'IDNTOUTF8'),
            2 => array( 'event' => 'SAVE',
               'type' => 'TOLOWER')
         ),
         'validators' => array(0 => array('type' => 'NOTEMPTY',
               'errmsg' => 'hostname_error_empty'),
         ),
@@ -150,6 +152,14 @@
         'width' => '40',
         'maxlength' => '255'
      ),
      'admin_notify_events' => array(
         'datatype' => 'INTEGER',
         'formtype' => 'SELECT',
         'default' => '1',
         'value' => array('3' => 'no_notifications_txt', '0' => 'Debug', '1' => 'Warnings', '2' => 'Errors'),
         'width' => '40',
         'maxlength' => '255'
      ),
      'backup_dir' => array(
         'datatype' => 'VARCHAR',
         'formtype' => 'TEXT',
@@ -157,6 +167,20 @@
         'validators' => array(0 => array('type' => 'NOTEMPTY',
               'errmsg' => 'backup_dir_error_empty'),
         ),
         'value' => '',
         'width' => '40',
         'maxlength' => '255'
      ),
      'backup_dir_is_mount' => array(
         'datatype' => 'VARCHAR',
         'formtype' => 'CHECKBOX',
         'default' => 'n',
         'value' => array(0 => 'n', 1 => 'y')
      ),
      'backup_dir_mount_cmd' => array(
         'datatype' => 'VARCHAR',
         'formtype' => 'TEXT',
         'default' => '',
         'value' => '',
         'width' => '40',
         'maxlength' => '255'
@@ -169,9 +193,65 @@
         'width' => '40',
         'maxlength' => '255'
      ),
   ##################################
   # ENDE Datatable fields
   ##################################
      'monit_url' => array(
         'datatype' => 'VARCHAR',
         'formtype' => 'TEXT',
         'default' => '',
         'validators' => array ( 0 => array ( 'type' => 'REGEX',
               'regex' => '/^[0-9a-zA-Z\:\/\-\.\[\]]{0,255}$/',
               'errmsg'=> 'monit_url_error_regex'),
         ),
         'value' => '',
         'width' => '40',
         'maxlength' => '255'
      ),
      'monit_user' => array(
         'datatype' => 'VARCHAR',
         'formtype' => 'TEXT',
         'default' => '',
         'value' => '',
         'width' => '40',
         'maxlength' => '255'
      ),
      'monit_password' => array(
         'datatype' => 'VARCHAR',
         'formtype' => 'TEXT',
         'default' => '',
         'value' => '',
         'width' => '40',
         'maxlength' => '255'
      ),
      'munin_url' => array(
         'datatype' => 'VARCHAR',
         'formtype' => 'TEXT',
         'default' => '',
         'validators' => array ( 0 => array ( 'type' => 'REGEX',
               'regex' => '/^[0-9a-zA-Z\:\/\-\.\[\]]{0,255}$/',
               'errmsg'=> 'munin_url_error_regex'),
         ),
         'value' => '',
         'width' => '40',
         'maxlength' => '255'
      ),
      'munin_user' => array(
         'datatype' => 'VARCHAR',
         'formtype' => 'TEXT',
         'default' => '',
         'value' => '',
         'width' => '40',
         'maxlength' => '255'
      ),
      'munin_password' => array(
         'datatype' => 'VARCHAR',
         'formtype' => 'TEXT',
         'default' => '',
         'value' => '',
         'width' => '40',
         'maxlength' => '255'
      ),
      //#################################
      // ENDE Datatable fields
      //#################################
   )
);
@@ -180,9 +260,9 @@
   'width' => 60,
   'template' => "templates/server_config_mail_edit.htm",
   'fields' => array(
      ##################################
      # Begin Datatable fields
      ##################################
      //#################################
      // Begin Datatable fields
      //#################################
      'module' => array(
         'datatype' => 'VARCHAR',
         'formtype' => 'SELECT',
@@ -211,19 +291,6 @@
         'width' => '40',
         'maxlength' => '255'
      ),
                'dkim_path' => array(
                        'datatype' => 'VARCHAR',
                        'formtype' => 'TEXT',
                        'default' => '/var/db/dkim',
                        'validators'    => array (  0 => array ('type'  => 'CUSTOM',
                                                                'class' => 'validate_dkim',
                                                                'function' => 'check_dkim_path',
                                                                'errmsg'=> 'dkim_path_error'),
                                                 ),
                        'value' => '',
                        'width' => '40',
                        'maxlength' => '255'
                ),
      'pop3_imap_daemon' => array(
         'datatype' => 'VARCHAR',
         'formtype' => 'SELECT',
@@ -324,34 +391,49 @@
         'datatype' => 'VARCHAR',
         'formtype' => 'CHECKBOX',
         'default' => 'y',
         'value' => array(0 => 'n',1 => 'y')
         'value' => array(0 => 'n', 1 => 'y')
      ),
      'realtime_blackhole_list' => array(
         'datatype' => 'VARCHAR',
         'formtype' => 'TEXT',
         'default' => '',
         'validators'   => array (    0 => array (   'type'   => 'REGEX',
                                          'regex' => '/^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9])\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\-]*[A-Za-z0-9])(,\s*(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9])\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\-]*[A-Za-z0-9]))*$/',
                                          'errmsg'=> 'rbl_error_regex'),
                           ),
         'value' => '',
         'width' => '40',
         'maxlength' => '255'
      ),
      'sendmail_path' => array(
         'datatype' => 'VARCHAR',
         'formtype' => 'TEXT',
         'default' => '/usr/sbin/sendmail',
         'validators' => array(0 => array('type' => 'NOTEMPTY',
               'errmsg' => 'sendmail_path_error_empty'),
         'validators' => array (  0 => array ( 'type' => 'REGEX',
               'regex' => '/^((([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\-]*[A-Za-z0-9])(,\s*(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\-]*[A-Za-z0-9]))*)?$/',
               'errmsg'=> 'rbl_error_regex'),
         ),
         'value' => '',
         'width' => '40',
         'maxlength' => '255'
      ),
   ##################################
   # ENDE Datatable fields
   ##################################
      'overquota_notify_admin' => array(
         'datatype' => 'VARCHAR',
         'formtype' => 'CHECKBOX',
         'default' => 'y',
         'value' => array(0 => 'n', 1 => 'y')
      ),
      'overquota_notify_client' => array(
         'datatype' => 'VARCHAR',
         'formtype' => 'CHECKBOX',
         'default' => 'y',
         'value' => array(0 => 'n', 1 => 'y')
      ),
      'overquota_notify_freq' => array(
         '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')
      ),
      //#################################
      // ENDE Datatable fields
      //#################################
   )
);
@@ -360,9 +442,9 @@
   'width' => 80,
   'template' => "templates/server_config_getmail_edit.htm",
   'fields' => array(
      ##################################
      # Begin Datatable fields
      ##################################
      //#################################
      // Begin Datatable fields
      //#################################
      'getmail_config_dir' => array(
         'datatype' => 'VARCHAR',
         'formtype' => 'TEXT',
@@ -374,9 +456,9 @@
         'width' => '40',
         'maxlength' => '255'
      ),
   ##################################
   # ENDE Datatable fields
   ##################################
      //#################################
      // ENDE Datatable fields
      //#################################
   )
);
@@ -385,9 +467,9 @@
   'width' => 60,
   'template' => "templates/server_config_web_edit.htm",
   'fields' => array(
      ##################################
      # Begin Datatable fields
      ##################################
      //#################################
      // Begin Datatable fields
      //#################################
      'server_type' => array(
         'datatype' => 'VARCHAR',
         'formtype' => 'SELECT',
@@ -431,7 +513,7 @@
         'datatype' => 'VARCHAR',
         'formtype' => 'CHECKBOX',
         'default' => 'n',
         'value' => array(0 => 'n',1 => 'y')
         'value' => array(0 => 'n', 1 => 'y')
      ),
      'website_autoalias' => array(
         'datatype' => 'VARCHAR',
@@ -441,7 +523,7 @@
         'width' => '40',
         'maxlength' => '255'
      ),
/*
      /*
'vhost_rewrite_v6' => array (
'datatype' => 'VARCHAR',
'formtype' => 'CHECKBOX',
@@ -561,6 +643,32 @@
         'datatype' => 'VARCHAR',
         'formtype' => 'CHECKBOX',
         'default' => 'y',
         'value' => array(0 => 'n', 1 => 'y')
      ),
      'overquota_notify_admin' => array(
         'datatype' => 'VARCHAR',
         'formtype' => 'CHECKBOX',
         'default' => 'y',
         'value' => array(0 => 'n', 1 => 'y')
      ),
      'overquota_notify_client' => array(
         'datatype' => 'VARCHAR',
         'formtype' => 'CHECKBOX',
         'default' => 'y',
         'value' => array(0 => 'n', 1 => 'y')
      ),
      'overquota_notify_freq' => array(
         '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(
@@ -712,17 +820,6 @@
         'width' => '40',
         'maxlength' => '4000'
      ),
      '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'
      ),
      'nginx_cgi_socket' => array(
         'datatype' => 'VARCHAR',
         'formtype' => 'TEXT',
@@ -807,9 +904,9 @@
         'width' => '40',
         'maxlength' => '255'
      ),
   ##################################
   # ENDE Datatable fields
   ##################################
      //#################################
      // ENDE Datatable fields
      //#################################
   )
);
@@ -818,9 +915,9 @@
   'width' => 60,
   'template' => "templates/server_config_dns_edit.htm",
   'fields' => array(
      ##################################
      # Begin Datatable fields
      ##################################
      //#################################
      // Begin Datatable fields
      //#################################
      'bind_user' => array(
         'datatype' => 'VARCHAR',
         'formtype' => 'TEXT',
@@ -876,9 +973,9 @@
         'width' => '40',
         'maxlength' => '255'
      ),
   ##################################
   # ENDE Datatable fields
   ##################################
      //#################################
      // ENDE Datatable fields
      //#################################
   )
);
@@ -887,9 +984,9 @@
   'width' => 80,
   'template' => "templates/server_config_fastcgi_edit.htm",
   'fields' => array(
      ##################################
      # Begin Datatable fields
      ##################################
      //#################################
      // Begin Datatable fields
      //#################################
      'fastcgi_starter_path' => array(
         'datatype' => 'VARCHAR',
         'formtype' => 'TEXT',
@@ -949,11 +1046,11 @@
         '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'),
         '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',
@@ -978,9 +1075,9 @@
         'width' => '40',
         'maxlength' => '255'
      ),
   ##################################
   # ENDE Datatable fields
   ##################################
      //#################################
      // ENDE Datatable fields
      //#################################
   )
);
@@ -990,9 +1087,9 @@
   'width' => 80,
   'template' => "templates/server_config_jailkit_edit.htm",
   'fields' => array(
      ##################################
      # Begin Datatable fields
      ##################################
      //#################################
      // Begin Datatable fields
      //#################################
      'jailkit_chroot_home' => array(
         'datatype' => 'VARCHAR',
         'formtype' => 'TEXT',
@@ -1037,9 +1134,9 @@
         'width' => '40',
         'maxlength' => '1000'
      ),
   ##################################
   # ENDE Datatable fields
   ##################################
      //#################################
      // ENDE Datatable fields
      //#################################
   )
);
@@ -1112,9 +1209,9 @@
   'width' => 80,
   'template' => "templates/server_config_vlogger_edit.htm",
   'fields' => array(
      ##################################
      # Begin Datatable fields
      ##################################
      //#################################
      // Begin Datatable fields
      //#################################
      'config_dir' => array(
         'datatype' => 'VARCHAR',
         'formtype' => 'TEXT',
@@ -1126,9 +1223,9 @@
         'width' => '40',
         'maxlength' => '255'
      ),
   ##################################
   # ENDE Datatable fields
   ##################################
      //#################################
      // ENDE Datatable fields
      //#################################
   )
);
@@ -1139,9 +1236,9 @@
   'width' => 80,
   'template' => "templates/server_config_cron_edit.htm",
   'fields' => array(
      ##################################
      # Begin Datatable fields
      ##################################
      //#################################
      // Begin Datatable fields
      //#################################
      'init_script' => array(
         'datatype' => 'VARCHAR',
         'formtype' => 'TEXT',
@@ -1175,9 +1272,9 @@
         'width' => '40',
         'maxlength' => '255'
      ),
   ##################################
   # ENDE Datatable fields
   ##################################
      //#################################
      // ENDE Datatable fields
      //#################################
   )
);
@@ -1186,9 +1283,9 @@
   'width' => 80,
   'template' => "templates/server_config_rescue_edit.htm",
   'fields' => array(
      ##################################
      # Begin Datatable fields
      ##################################
      //#################################
      // Begin Datatable fields
      //#################################
      'try_rescue' => array(
         'datatype' => 'VARCHAR',
         'formtype' => 'CHECKBOX',
@@ -1213,9 +1310,9 @@
         'default' => 'n',
         'value' => array(0 => 'n', 1 => 'y')
      ),
   ##################################
   # ENDE Datatable fields
   ##################################
      //#################################
      // ENDE Datatable fields
      //#################################
   )
);
?>