Changeset 3576 for extensions/autoupdate/autoupdate.php
- Timestamp:
- Jul 14, 2009, 2:59:01 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/autoupdate/autoupdate.php
r3575 r3576 40 40 if ($result = $zip->extract(PCLZIP_OPT_PATH, PHPWG_ROOT_PATH, PCLZIP_OPT_REMOVE_PATH, $_GET['autoupdate'], PCLZIP_OPT_REPLACE_NEWER)) 41 41 { 42 if (file_exists(PHPWG_ROOT_PATH.'obsolete.list') 43 and $old_files = file(PHPWG_ROOT_PATH.'obsolete.list', FILE_IGNORE_NEW_LINES) 44 and !empty($old_files)) 45 { 46 array_push($old_files, 'obsolete.list'); 47 foreach($old_files as $old_file) 48 { 49 $path = PHPWG_ROOT_PATH.$old_file; 50 if (is_file($path)) 51 { 52 @unlink($path); 53 } 54 elseif (is_dir($path)) 55 { 56 autoupdate_deltree($path); 57 } 58 } 59 } 42 60 autoupdate_deltree($conf['local_data_dir'].'/autoupdate'); 43 61 redirect('admin.php?autoupdate=success');
Note: See TracChangeset
for help on using the changeset viewer.