tbrehm
2009-01-27 cbda30058c0f61ae2afbd9085afcf841f32751a5
interface/web/admin/form/users.tform.php
@@ -66,6 +66,7 @@
$form['action']         = 'users_edit.php';
$form['db_table']      = 'sys_user';
$form['db_table_idx']   = 'userid';
$form["db_history"]      = "no";
$form['tab_default']   = 'users';
$form['list_default']   = 'users_list.php';
$form['auth']         = 'yes';
@@ -76,9 +77,9 @@
$form['auth_preset']['groupid'] = 0; 
//** Permissions are: r = read, i = insert, u = update, d = delete
$form['auth_preset']['perm_user'] = 'riud';
$form['auth_preset']['perm_group'] = 'riud'; //r = read, i = insert, u = update, d = delete
$form['auth_preset']['perm_other'] = ''; //r = read, i = insert, u = update, d = delete
$form['auth_preset']['perm_user']  = 'riud';
$form['auth_preset']['perm_group'] = 'riud';
$form['auth_preset']['perm_other'] = '';
//* Pick out modules
$modules_list = array();
@@ -86,7 +87,7 @@
while ($file = @readdir ($handle)) { 
    if ($file != '.' && $file != '..') {
        if(@is_dir(ISPC_WEB_PATH."/$file")) {
            if(is_file(ISPC_WEB_PATH."/$file/lib/module.conf.php") and $file != 'login') {
            if(is_file(ISPC_WEB_PATH."/$file/lib/module.conf.php") and $file != 'login' && $file != 'designer') {
            $modules_list[$file] = $file;
         }
        }
@@ -136,8 +137,16 @@
      'username' => array (
         'datatype'   => 'VARCHAR',
         'formtype'   => 'TEXT',
         'regex'      => '/^.{1,30}$/',
         'errmsg'   => 'username_err',
         'validators'   => array (    0 => array (   'type'   => 'NOTEMPTY',
                                          'errmsg'=> 'username_empty'),
                              1 => array (   'type'   => 'UNIQUE',
                                          'errmsg'=> 'username_unique'),
                              2 => array (   'type'   => 'REGEX',
                                          'regex' => '/^[\w\.\-\_]{0,50}$/',
                                          'errmsg'=> 'username_err'),
                           ),
         'regex'      => '',
         'errmsg'   => '',
         'default'   => '',
         'value'      => '',
         'separator'   => '',