source:
extensions/UserCollections/maintain.inc.php
@
17657
Last change on this file since 17657 was 17657, checked in by , 12 years ago | |
---|---|
File size: 579 bytes |
Rev | Line | |
---|---|---|
[16591] | 1 | <?php |
2 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); | |
3 | ||
[17657] | 4 | include_once(PHPWG_PLUGINS_PATH . 'UserCollections/include/install.inc.php'); |
5 | ||
[16591] | 6 | function plugin_install() |
7 | { | |
[17657] | 8 | user_collections_install(); |
[16591] | 9 | |
[17657] | 10 | define('user_collections_installed', true); |
[16591] | 11 | } |
12 | ||
13 | function plugin_activate() | |
[16658] | 14 | { |
[17657] | 15 | if (!defined('user_collections_intalled')) |
[16658] | 16 | { |
[17657] | 17 | user_collections_install(); |
[16658] | 18 | } |
19 | } | |
[16591] | 20 | |
21 | function plugin_uninstall() | |
22 | { | |
23 | global $prefixeTable; | |
24 | ||
25 | pwg_query('DROP TABLE IF EXISTS `'.$prefixeTable.'collections`;'); | |
26 | pwg_query('DROP TABLE IF EXISTS `'.$prefixeTable.'collection_images`;'); | |
27 | } | |
28 | ||
29 | ?> |
Note: See TracBrowser
for help on using the repository browser.