tbrehm
2012-10-16 a008884b8f041577d43675f13c492f45fb9ee066
interface/web/sites/form/web_vhost_subdomain.tform.php
@@ -111,14 +111,18 @@
      'domain' => array (
         'datatype'   => 'VARCHAR',
         'formtype'   => 'TEXT',
         'validators'   => array (    0 => array (   'type'   => 'NOTEMPTY',
                                          'errmsg'=> 'domain_error_empty'),
                              1 => array (   'type'   => 'UNIQUE',
                                          'errmsg'=> 'domain_error_unique'),
                              2 => array (   'type'   => 'REGEX',
                                          'regex' => '/^[\w\.\-]{2,255}\.[a-zA-Z0-9\-]{2,30}$/',
                                          'errmsg'=> 'domain_error_regex'),
                           ),
            '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'  => 'CUSTOM',
                                                        'class' => 'validate_domain',
                                                        'function' => 'sub_domain',
                                                        'errmsg'=> 'domain_error_regex'),
                                    ),
         'default'   => '',
         'value'      => '',
         'width'      => '30',
@@ -277,7 +281,7 @@
$form["tabs"]['redirect'] = array (
   'title'    => "Redirect",
   'width'    => 100,
   'template'    => "templates/web_domain_redirect.htm",
   'template'    => "templates/web_vhost_subdomain_redirect.htm",
   'readonly'   => false,
   'fields'    => array (
   ##################################
@@ -292,7 +296,7 @@
      'redirect_path' => array (
         'datatype'   => 'VARCHAR',
         'validators'   => array (    0 => array (   'type'   => 'REGEX',
                                          'regex' => '@^(([\.]{0})|(https?://([-\w\.]+)+(:\d+)?(/([\w/_\.\,\-\+\?\~]*(\?\S+)?)?)?)|(\[scheme\]://([-\w\.]+)+(:\d+)?(/([\w/_\.\-\,\+\?\~]*(\?\S+)?)?)?)|(/[\w/_\.\-]{1,255}/))$@',
                                          'regex' => '@^(([\.]{0})|((ftp|https?)://([-\w\.]+)+(:\d+)?(/([\w/_\.\,\-\+\?\~!]*(\?\S+)?)?)?)|(\[scheme\]://([-\w\.]+)+(:\d+)?(/([\w/_\.\-\,\+\?\~!]*(\?\S+)?)?)?)|(/[\w/_\.\-]{1,255}/))$@',
                                          'errmsg'=> 'redirect_error_regex'),
                           ),
         'formtype'   => 'TEXT',
@@ -317,7 +321,7 @@
$form["tabs"]['ssl'] = array (
   'title'    => "SSL",
   'width'    => 100,
   'template'    => "templates/web_domain_ssl.htm",
   'template'    => "templates/web_vhost_subdomain_ssl.htm",
   'readonly'   => false,
   'fields'    => array (
   ##################################
@@ -453,7 +457,7 @@
$form["tabs"]['stats'] = array (
   'title'    => "Stats",
   'width'    => 100,
   'template'    => "templates/web_domain_stats.htm",
   'template'    => "templates/web_vhost_subdomain_stats.htm",
   'readonly'   => false,
   'fields'    => array (
   ##################################
@@ -486,7 +490,7 @@
$form["tabs"]['backup'] = array (
   'title'    => "Backup",
   'width'    => 100,
   'template'    => "templates/web_domain_backup.htm",
   'template'    => "templates/web_vhost_subdomain_backup.htm",
   'readonly'   => false,
   'fields'    => array (
   ##################################
@@ -524,7 +528,7 @@
$form["tabs"]['advanced'] = array (
   'title'    => "Options",
   'width'    => 100,
   'template'    => "templates/web_domain_advanced.htm",
   'template'    => "templates/web_vhost_subdomain_advanced.htm",
   'readonly'   => false,
   'fields'    => array (
   ##################################