Changeset 884 for trunk/scripts/check-attachments
- Timestamp:
- 01/23/08 17:37:32 (4 years ago)
- File:
-
- 1 edited
-
trunk/scripts/check-attachments (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/scripts/check-attachments
r852 r884 10 10 11 11 $res = db_query("SELECT `id`, `name`, `page` FROM ia_file"); 12 13 if (read_bool("Lower case all attachments files?", true)) {14 $extra_files = glob(IA_ROOT_DIR . "attach/*");15 foreach ($extra_files as $fname) {16 if (preg_match('/[A-Z]/', $fname)) {17 rename($fname, strtolower($fname));18 }19 }20 unset($extra_files);21 }22 12 23 13 $extra_files = array_flip(glob(IA_ROOT_DIR . "attach/*"));
Note: See TracChangeset
for help on using the changeset viewer.
![[infoarena] development](/chrome/site/logo.png)