Marius Burkard
2016-04-20 c5c7a913f16f5ddbf4ff44d6db7bdfcd650cecaa
interface/web/sites/form/web_vhost_domain.tform.php
@@ -88,10 +88,11 @@
$backup_available = ($vhostdomain_type == 'domain');
if(!$app->auth->is_admin()) {
   $client_group_id = $_SESSION["s"]["user"]["default_group"];
   $client = $app->db->queryOneRecord("SELECT limit_wildcard, limit_ssl, limit_backup FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = ?", $client_group_id);
   $client = $app->db->queryOneRecord("SELECT limit_wildcard, limit_ssl, limit_ssl_letsencrypt, limit_backup FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = ?", $client_group_id);
   if($client['limit_wildcard'] != 'y') $wildcard_available = false;
   if($client['limit_ssl'] != 'y') $ssl_available = false;
   if($client['limit_ssl_letsencrypt'] == 'y') $ssl_available = false;
   if($client['limit_backup'] != 'y') $backup_available = false;
}
@@ -447,7 +448,7 @@
            'datatype' => 'VARCHAR',
            'formtype' => 'TEXT',
            'validators' => array (  0 => array ( 'type' => 'REGEX',
                  'regex' => '/^(([\.]{0})|([-a-zA-Z0-9._,&äöüÄÖÜ ]{1,255}))$/',
                  'regex' => '/^(([\.]{0})|([-a-zA-Z0-9._,&äöüÄÖÜ ]{0,255}))$/',
                  'errmsg'=> 'ssl_state_error_regex'),
            ),
            'default' => '',
@@ -459,7 +460,7 @@
            'datatype' => 'VARCHAR',
            'formtype' => 'TEXT',
            'validators' => array (  0 => array ( 'type' => 'REGEX',
                  'regex' => '/^(([\.]{0})|([-a-zA-Z0-9._,&äöüÄÖÜ ]{1,255}))$/',
                  'regex' => '/^(([\.]{0})|([-a-zA-Z0-9._,&äöüÄÖÜ ]{0,255}))$/',
                  'errmsg'=> 'ssl_locality_error_regex'),
            ),
            'default' => '',
@@ -471,7 +472,7 @@
            'datatype' => 'VARCHAR',
            'formtype' => 'TEXT',
            'validators' => array (  0 => array ( 'type' => 'REGEX',
                  'regex' => '/^(([\.]{0})|([-a-zA-Z0-9._,&äöüÄÖÜ ]{1,255}))$/',
                  'regex' => '/^(([\.]{0})|([-a-zA-Z0-9._,&äöüÄÖÜ ]{0,255}))$/',
                  'errmsg'=> 'ssl_organisation_error_regex'),
            ),
            'default' => '',
@@ -483,7 +484,7 @@
            'datatype' => 'VARCHAR',
            'formtype' => 'TEXT',
            'validators' => array (  0 => array ( 'type' => 'REGEX',
                  'regex' => '/^(([\.]{0})|([-a-zA-Z0-9._,&äöüÄÖÜ ]{1,255}))$/',
                  'regex' => '/^(([\.]{0})|([-a-zA-Z0-9._,&äöüÄÖÜ ]{0,255}))$/',
                  'errmsg'=> 'ssl_organistaion_unit_error_regex'),
            ),
            'default' => '',
@@ -893,6 +894,30 @@
            'rows'  => '',
            'cols'  => ''
         ),
         'http_port' => array (
            'datatype' => 'INTEGER',
            'formtype' => 'TEXT',
            'validators' => array (  0 => array ( 'type' => 'REGEX',
                  'regex' => '/^([0-9]{1,5})$/',
                  'errmsg'=> 'http_port_error_regex'),
            ),
            'default' => '0',
            'value'  => '',
            'width'  => '3',
            'maxlength' => '6'
         ),
         'https_port' => array (
            'datatype' => 'INTEGER',
            'formtype' => 'TEXT',
            'validators' => array (  0 => array ( 'type' => 'REGEX',
                  'regex' => '/^([0-9]{1,5})$/',
                  'errmsg'=> 'https_port_error_regex'),
            ),
            'default' => '0',
            'value'  => '',
            'width'  => '3',
            'maxlength' => '6'
         )
         //#################################
         // ENDE Datatable fields
         //#################################