| @@ 306-310 (lines=5) @@ | ||
| 303 | if (is_dir($dir = $d . 'lib/') |
|
| 304 | and $t = opendir($dir) |
|
| 305 | ) { |
|
| 306 | while (($f = readdir($t)) !== false) { |
|
| 307 | if ($f[0] != '.' |
|
| 308 | and is_dir("$dir/$f") |
|
| 309 | ) { |
|
| 310 | $libs[$f] = $dir; |
|
| 311 | } |
|
| 312 | } |
|
| 313 | } |
|
| @@ 107-112 (lines=6) @@ | ||
| 104 | ||
| 105 | $subdirs = array(); |
|
| 106 | if (@is_dir($dir) and is_readable($dir) and $d = opendir($dir)) { |
|
| 107 | while (($f = readdir($d)) !== false) { |
|
| 108 | if ($f[0] != '.' # ignorer . .. .svn etc |
|
| 109 | and $f != 'CVS' |
|
| 110 | and is_dir($f = "$dir/$f") |
|
| 111 | ) { |
|
| 112 | $subdirs[] = $f; |
|
| 113 | } |
|
| 114 | } |
|
| 115 | closedir($d); |
|