| 1234567891011121314151617181920212223242526 |
- <?php
- $basedir = '.';
- if ($dh = opendir ( $basedir )) {
- while ( ($file = readdir ( $dh )) !== false ) {
- if ($file != '.' && $file != '..' && $file != '.svn') {
- if (! is_dir ( $basedir . "/" . $file )) {
-
-
-
- rename($file, str_replace('smiley_','',$file));
-
-
-
-
- } else {
- $dirname = $basedir . "/" . $file;
- checkdir ( $dirname );
- }
- }
- }
- closedir ( $dh );
- }
- ?>
|