Changeset 482772
- Timestamp:
- 12/31/2011 02:17:53 PM (14 years ago)
- File:
-
- 1 edited
-
my-record-collection/trunk/uninstall.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
my-record-collection/trunk/uninstall.php
r248102 r482772 3 3 exit(); 4 4 5 function rmdir_recursive($dir) {6 $files = scandir($dir);7 array_shift($files); // remove '.' from array8 array_shift($files); // remove '..' from array9 10 foreach ($files as $file) {11 $file = $dir . '/' . $file;12 if (is_dir($file)) {13 rmdir_recursive($file);14 rmdir($file);15 } else {16 unlink($file);17 }18 }19 rmdir($dir);20 }21 22 rmdir_recursive(get_option('mrc_upload_dir'));23 5 //DELETING THE WP OIPTIONS CREATED 24 delete_option('mrc_display_mode'); 25 delete_option('mrc_upload_dir'); 26 delete_option('mrc_xml_file'); 6 delete_option('mrc_username'); 7 delete_option('mrc_settings'); 27 8 28 9 //DELETING THE DATABASE TABLE
Note: See TracChangeset
for help on using the changeset viewer.