wyrie
2010-01-20 8a072e707ee4e5bbf0ac3b77eb426428f2d6b308
interface/web/sites/form/web_domain.tform.php
@@ -72,7 +72,7 @@
         'formtype'   => 'SELECT',
         'default'   => '',
         'datasource'   => array (    'type'   => 'SQL',
                              'querystring' => 'SELECT server_id,server_name FROM server WHERE web_server = 1 AND {AUTHSQL} ORDER BY server_name',
                              'querystring' => 'SELECT server_id,server_name FROM server WHERE mirror_server_id = 0 AND web_server = 1 AND {AUTHSQL} ORDER BY server_name',
                              'keyfield'=> 'server_id',
                              'valuefield'=> 'server_name'
                            ),
@@ -97,7 +97,7 @@
                              1 => array (   'type'   => 'UNIQUE',
                                          'errmsg'=> 'domain_error_unique'),
                              2 => array (   'type'   => 'REGEX',
                                          'regex' => '/^[\w\.\-]{2,64}\.[a-zA-Z]{2,10}$/',
                                          'regex' => '/^[\w\.\-]{2,255}\.[a-zA-Z]{2,10}$/',
                                          'errmsg'=> 'domain_error_regex'),
                           ),
         'default'   => '',
@@ -139,6 +139,7 @@
         'width'      => '7',
         'maxlength'   => '7'
      ),
      /*
      'traffic_quota' => array (
         'datatype'   => 'INTEGER',
         'formtype'   => 'TEXT',
@@ -150,6 +151,7 @@
         'width'      => '7',
         'maxlength'   => '7'
      ),
      */
      'cgi' => array (
         'datatype'   => 'VARCHAR',
         'formtype'   => 'CHECKBOX',
@@ -219,7 +221,7 @@
         'datatype'   => 'VARCHAR',
         'formtype'   => 'SELECT',
         'default'   => '',
         'value'      => array('' => 'No redirect', 'R' => 'R', 'L' => 'L')
         'value'      => array('' => 'No redirect', 'no' => 'No flag', 'R' => 'R', 'L' => 'L', 'R,L' => 'R,L')
      ),
      'redirect_path' => array (
         'datatype'   => 'VARCHAR',
@@ -284,6 +286,14 @@
         'width'      => '2',
         'maxlength'   => '2'
      ),
      'ssl_domain' => array (
         'datatype'   => 'VARCHAR',
         'formtype'   => 'TEXT',
         'default'   => '',
         'value'      => '',
         'width'      => '30',
         'maxlength'   => '255'
      ),
      'ssl_request' => array (
         'datatype'   => 'TEXT',
         'formtype'   => 'TEXTAREA',
@@ -313,6 +323,31 @@
         'formtype'   => 'SELECT',
         'default'   => '',
         'value'      => array('' => 'None', 'save' => 'Save Certificate', 'create' => 'Create Certificate','del' => 'Delete Certificate')
      ),
   ##################################
   # ENDE Datatable fields
   ##################################
   )
);
//* Statistics
$form["tabs"]['stats'] = array (
   'title'    => "Stats",
   'width'    => 100,
   'template'    => "templates/web_domain_stats.htm",
   'readonly'   => false,
   'fields'    => array (
   ##################################
   # Begin Datatable fields
   ##################################
      'stats_password' => array (
         'datatype'   => 'VARCHAR',
         'formtype'   => 'PASSWORD',
         'encryption' => 'CRYPT',
         'default'   => '',
         'value'      => '',
         'width'      => '30',
         'maxlength'   => '255'
      ),
   ##################################
   # ENDE Datatable fields
@@ -364,6 +399,17 @@
         'width'      => '30',
         'maxlength'   => '255'
      ),
      'allow_override' => array (
         'datatype'   => 'VARCHAR',
         'formtype'   => 'TEXT',
         'validators'   => array (    0 => array (   'type'   => 'NOTEMPTY',
                                          'errmsg'=> 'documentroot_error_empty'),
                           ),
         'default'   => 'All',
         'value'      => '',
         'width'      => '30',
         'maxlength'   => '255'
      ),
      'apache_directives' => array (
         'datatype'   => 'TEXT',
         'formtype'   => 'TEXT',