public function listdiraux($dir, &$files)
 {
     $handle = opendir($dir);
     while (($file = readdir($handle)) !== false) {
         if ($file == '.' || $file == '..') {
             continue;
         }
         $filepath = $dir == '.' ? $file : $dir . '/' . $file;
         if (is_link($filepath)) {
             continue;
         }
         if (is_file($filepath)) {
             $files[] = $filepath;
         } else {
             if (is_dir($filepath)) {
                 mslib_befe::listdiraux($filepath, $files);
             }
         }
     }
     closedir($handle);
 }