Revision 317
Added by stefan over 18 years ago
uninstall.php | ||
---|---|---|
1 | 1 |
<?php |
2 | 2 |
|
3 | 3 |
// $Id$ |
4 |
|
|
4 |
|
|
5 | 5 |
/* |
6 | 6 |
|
7 | 7 |
Website Baker Project <http://www.websitebaker.org/> |
... | ... | |
21 | 21 |
along with Website Baker; if not, write to the Free Software |
22 | 22 |
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
23 | 23 |
|
24 |
*/ |
|
25 |
|
|
26 |
// Must include code to stop this file being access directly |
|
27 |
if(defined('WB_PATH') == false) { exit("Cannot access this file directly"); } |
|
24 |
*/ |
|
28 | 25 |
|
26 |
// Must include code to stop this file being access directly |
|
27 |
if(defined('WB_PATH') == false) { exit("Cannot access this file directly"); } |
|
28 |
|
|
29 | 29 |
$database->query("DELETE FROM ".TABLE_PREFIX."search WHERE name = 'module' AND value = 'news'"); |
30 |
$database->query("DELETE FROM ".TABLE_PREFIX."search WHERE extra = 'news'");
|
|
30 |
$database->query("DELETE FROM ".TABLE_PREFIX."search WHERE extra = 'news'"); |
|
31 | 31 |
$database->query("DROP TABLE ".TABLE_PREFIX."mod_news_posts"); |
32 | 32 |
$database->query("DROP TABLE ".TABLE_PREFIX."mod_news_groups"); |
33 | 33 |
$database->query("DROP TABLE ".TABLE_PREFIX."mod_news_comments"); |
34 |
$database->query("DROP TABLE ".TABLE_PREFIX."mod_news_settings");
|
|
34 |
$database->query("DROP TABLE ".TABLE_PREFIX."mod_news_settings"); |
|
35 | 35 |
require(WB_PATH.'/framework/functions.php'); |
36 | 36 |
rm_full_dir(WB_PATH.PAGES_DIRECTORY.'/posts'); |
37 |
|
|
37 |
|
|
38 | 38 |
?> |
Also available in: Unified diff
Changed all line endings to Unix stlye