Changeset 11509 for trunk/install/db/94-database.php
- Timestamp:
- Jun 25, 2011, 9:52:18 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/install/db/94-database.php
r8728 r11509 62 62 // save configuration for a future use by the Community plugin 63 63 $backup_filepath = $conf['local_data_dir'].'/plugins/core_user_upload_to_community.php'; 64 mkgetdir(dirname($backup_filepath)); 64 $save_conf = true; 65 if (is_dir(dirname($backup_filepath))) 66 { 67 if (!is_writable(dirname($backup_filepath))) 68 { 69 $save_conf = false; 70 } 71 } 72 elseif (!is_writable($conf['local_data_dir'])) 73 { 74 $save_conf = false; 75 } 65 76 66 file_put_contents( 67 $backup_filepath, 68 '<?php $user_upload_conf = \''.serialize($user_upload_conf).'\'; ?>' 69 ); 77 if ($save_conf) 78 { 79 mkgetdir(dirname($backup_filepath)); 80 81 file_put_contents( 82 $backup_filepath, 83 '<?php $user_upload_conf = \''.serialize($user_upload_conf).'\'; ?>' 84 ); 85 } 70 86 71 87 //
Note: See TracChangeset
for help on using the changeset viewer.