ftimme
2013-06-08 fe9a23f542bc56c1c0b6dc30257418e38ff7bd3a
interface/web/admin/form/users.tform.php
@@ -100,7 +100,9 @@
while ($file = @readdir ($handle)) { 
    if (substr($file, 0, 1) != '.') {
        if(@is_dir(ISPC_THEMES_PATH."/$file")) {
         $themes_list[$file] = $file;
         if(!file_exists(ISPC_THEMES_PATH."/$file/ispconfig_version") || (@file_exists(ISPC_THEMES_PATH."/$file/ispconfig_version") && trim(@file_get_contents(ISPC_THEMES_PATH."/$file/ispconfig_version")) == ISPC_APP_VERSION)) {
                $themes_list[$file] = $file;
            }
        }
   }
}
@@ -144,6 +146,10 @@
                                                    2 => array (    'type'   => 'REGEX',
                                                                    'regex' => '/^[\w\.\-\_]{0,64}$/',
                                                                    'errmsg'=> 'username_err'),
                                       3 => array (   'type'   => 'CUSTOM',
                                          'class' => 'validate_client',
                                          'function' => 'username_collision',
                                          'errmsg'=> 'username_error_collision'),
                                                ),
         'regex'      => '',
         'errmsg'   => '',