| @@ 396-399 (lines=4) @@ | ||
| 393 | . ")$/"; |
|
| 394 | ||
| 395 | if ($d = @opendir(_DIR_LOGOS)) { |
|
| 396 | while($f = readdir($d)) { |
|
| 397 | if (preg_match($type, $f, $r)) |
|
| 398 | $logos[] = $r[1]; |
|
| 399 | } |
|
| 400 | } |
|
| 401 | @closedir($d); |
|
| 402 | return join(',',$logos); |
|
| @@ 404-407 (lines=4) @@ | ||
| 401 | $tout = array(); |
|
| 402 | if (!$all_langs) { |
|
| 403 | if ($d = @opendir(repertoire_lang())) { |
|
| 404 | while (($f = readdir($d)) !== false) { |
|
| 405 | if (preg_match(',^spip_([a-z_]+)\.php[3]?$,', $f, $regs)) |
|
| 406 | $tout[] = $regs[1]; |
|
| 407 | } |
|
| 408 | closedir($d); |
|
| 409 | sort($tout); |
|
| 410 | $tout = join(',', $tout); |
|