123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <?php
- function demo_uninstall() {
- variable_del('demo_reset_last');
- }
- function demo_update_6100() {
-
-
-
- $new_path = variable_get('demo_dump_path', file_directory_path() . '/demo');
- if (strpos($new_path, conf_path()) !== FALSE || strpos($new_path, '/all/') !== FALSE) {
- $old_path = $new_path . str_replace('sites', '', conf_path());
- if ($new_path != $old_path && file_check_directory($old_path)) {
-
- $files = file_scan_directory($old_path, '/\.(info|sql)$/');
- foreach ($files as $file) {
- rename($file->filename, $new_path . '/' . $file->basename);
- }
-
-
- @rmdir($old_path);
- }
- }
- }
|