Marius Cramer
2014-08-13 42539643c396f9d8865dcf9a51b13dc869709d16
interface/web/sites/form/shell_user.tform.php
@@ -177,6 +177,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'  => '',
@@ -188,6 +195,13 @@
            'formtype' => 'TEXT',
            'validators' => array (  0 => array ( 'type' => 'NOTEMPTY',
                  'errmsg'=> 'uid_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'  => '',
@@ -197,6 +211,12 @@
         'shell' => array (
            'datatype' => 'VARCHAR',
            'formtype' => 'TEXT',
            'validators' => array ( 0 => array (    'type' => 'NOTEMPTY',
                                          'errmsg'=> 'shell_error_empty'),
                              1 => array (    'type' => 'REGEX',
                                             'regex' => '/^\/[a-zA-Z0-9\/]{5,20}$/',
                                             'errmsg'=> 'shell_error_regex'),
            ),
            'default' => '/bin/bash',
            'value'  => '',
            'width'  => '30',
@@ -205,8 +225,11 @@
         'dir' => array (
            'datatype' => 'VARCHAR',
            'formtype' => 'TEXT',
            'validators' => array (  0 => array ( 'type' => 'NOTEMPTY',
                  'errmsg'=> 'directory_error_empty'),
            'validators' => array ( 0 => array (    'type' => 'NOTEMPTY',
                                          'errmsg'=> 'directory_error_empty'),
                              1 => array (    'type' => 'REGEX',
                                             'regex' => '/^\/[a-zA-Z0-9\ \.\-\_\/]{10,128}$/',
                                             'errmsg'=> 'directory_error_regex'),
            ),
            'default' => '',
            'value'  => '',