Changeset 24349 for extensions/skeleton/trunk/maintain.inc.php
- Timestamp:
- Sep 5, 2013, 12:16:43 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/skeleton/trunk/maintain.inc.php
r24182 r24349 50 50 function plugin_uninstall() 51 51 { 52 global $prefixeTable; 53 54 // delete configuration 55 pwg_query('DELETE FROM `'. CONFIG_TABLE .'` WHERE param = "skeleton" LIMIT 1;'); 56 57 // delete table 58 pwg_query('DROP TABLE `'. $prefixeTable .'skeleton`;'); 59 60 // delete field 61 pwg_query('ALTER TABLE `'. IMAGES_TABLE .'` DROP `skeleton`;'); 62 63 // delete local folder 64 $dir = PHPWG_ROOT_PATH . PWG_LOCAL_DIR . 'skeleton/'; 65 foreach (scandir($dir) as $file) 66 { 67 if ($file == '.' or $file == '..') continue; 68 unlink($dir.$file); 69 } 70 rmdir($dir); 52 skeleton_uninstall(); 71 53 }
Note: See TracChangeset
for help on using the changeset viewer.