mcramer
2013-09-18 cab7ea5faaa2f3510c8488e7d19d083fc05ac6ca
interface/web/sites/form/web_vhost_subdomain.tform.php
@@ -64,6 +64,9 @@
    if($client['limit_ssl'] != 'y') $ssl_available = false;
}
$app->uses('getconf');
$web_config = $app->getconf->get_global_config('sites');
$form["tabs"]['domain'] = array (
   'title'    => "Domain",
   'width'    => 100,
@@ -149,7 +152,7 @@
      'web_folder' => array (
         'datatype'   => 'VARCHAR',
         'validators'   => array (    0 => array (   'type'   => 'REGEX',
                                          'regex' => '@^([\w/_\.\-]{1,100})$@',
                                          'regex' => '@^((?!.*\.\.)[\w/_\.\-]{1,100})$@',
                                          'errmsg'=> 'web_folder_error_regex'),
                           ),
         'formtype'   => 'TEXT',
@@ -167,13 +170,7 @@
      'hd_quota' => array (
         'datatype'   => 'INTEGER',
         'formtype'   => 'TEXT',
         'validators'   => array (    0 => array (   'type'   => 'NOTEMPTY',
                                          'errmsg'=> 'hd_quota_error_empty'),
                              1 => array (   'type'   => 'REGEX',
                                          'regex' => '/^(\-1|[0-9]{1,10})$/',
                                          'errmsg'=> 'hd_quota_error_regex'),
                           ),
         'default'   => '-1',
         'default'   => '0',
         'value'      => '',
         'width'      => '7',
         'maxlength'   => '7'
@@ -296,7 +293,7 @@
      'redirect_path' => array (
         'datatype'   => 'VARCHAR',
         'validators'   => array (    0 => array (   'type'   => 'REGEX',
                                          'regex' => '@^(([\.]{0})|((ftp|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',
@@ -523,7 +520,8 @@
// }
if($_SESSION["s"]["user"]["typ"] == 'admin') {
if($_SESSION["s"]["user"]["typ"] == 'admin'
    || ($web_config['reseller_can_use_options'] == 'y' && $app->auth->has_clients($_SESSION['s']['user']['userid']))) {
$form["tabs"]['advanced'] = array (
   'title'    => "Options",