Revision 677
Added by thorn almost 17 years ago
uninstall.php | ||
---|---|---|
32 | 32 |
// prevent this file from being accessed directly |
33 | 33 |
if(!defined('WB_PATH')) { exit('Cannot access this file directly'); } |
34 | 34 |
|
35 |
// delete the rows from the addons table |
|
36 |
$table = TABLE_PREFIX .'addons'; |
|
37 |
$database->query("DELETE FROM `".$table."` WHERE `".$table."`.`name` ='Javascript Admin' LIMIT 1 "); |
|
38 |
|
|
39 |
// delete the rows from the settings table |
|
40 |
$table = TABLE_PREFIX .'settings'; |
|
41 |
$database->query("DELETE FROM `".$table."` WHERE `".$table."`.`name` ='mod_jsadmin_persist_order' LIMIT 1 "); |
|
42 |
$database->query("DELETE FROM `".$table."` WHERE `".$table."`.`name` ='mod_jsadmin_ajax_order_pages' LIMIT 1 "); |
|
43 |
$database->query("DELETE FROM `".$table."` WHERE `".$table."`.`name` ='mod_jsadmin_ajax_order_sections' LIMIT 1 "); |
|
44 |
|
|
35 |
$table = TABLE_PREFIX ."mod_jsadmin"; |
|
36 |
$database->query("DROP TABLE `$table`"); |
|
45 | 37 |
?> |
Also available in: Unified diff
jsadmin: added latest changes from swen, fixes most (or all?) issues.