Marius Cramer
2014-08-13 42539643c396f9d8865dcf9a51b13dc869709d16
interface/web/sites/form/ftp_user.tform.php
@@ -91,7 +91,7 @@
         'validators' => array (  0 => array ( 'type' => 'UNIQUE',
               'errmsg'=> 'username_error_unique'),
            1 => array ( 'type' => 'REGEX',
               'regex' => '/^[\w\.\-]{0,64}$/',
               'regex' => '/^[\w\.\-@\+]{0,64}$/',
               'errmsg'=> 'username_error_regex'),
         ),
         'default' => '',
@@ -166,6 +166,13 @@
            'formtype'  => 'TEXT',
            'validators'    => array (  0 => array (    'type'  => 'NOTEMPTY',
                  'errmsg'=> 'uid_error_empty'),
                  1 => array(
                     'type' => 'CUSTOM',
                     'class' => 'validate_systemuser',
                     'function' => 'check_sysuser',
                     'check_names' => true,
                     'errmsg' => 'invalid_system_user_or_group_txt'
                  ),
            ),
            'default'   => '0',
            'value'     => '',
@@ -177,6 +184,13 @@
            'formtype'  => 'TEXT',
            'validators'    => array (  0 => array (    'type'  => 'NOTEMPTY',
                  'errmsg'=> 'gid_error_empty'),
                  1 => array(
                     'type' => 'CUSTOM',
                     'class' => 'validate_systemuser',
                     'function' => 'check_sysgroup',
                     'check_names' => true,
                     'errmsg' => 'invalid_system_user_or_group_txt'
                  ),
            ),
            'default'   => '0',
            'value'     => '',
@@ -187,7 +201,10 @@
            'datatype'  => 'VARCHAR',
            'formtype'  => 'TEXT',
            'validators'    => array (  0 => array (    'type'  => 'NOTEMPTY',
                  'errmsg'=> 'directory_error_empty'),
                                             'errmsg'=> 'directory_error_empty'),
                                 1 => array (    'type' => 'REGEX',
                                             'regex' => '/^\/[a-zA-Z0-9\ \.\-\_\/]{10,128}$/',
                                             'errmsg'=> 'directory_error_regex'),
            ),
            'default'   => '',
            'value'     => '',