source:
extensions/SmartAlbums/maintain.inc.php
@
19185
Last change on this file since 19185 was 17716, checked in by , 12 years ago | |
---|---|
File size: 645 bytes |
Rev | Line | |
---|---|---|
[10871] | 1 | <?php |
2 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); | |
3 | ||
[17716] | 4 | include_once(PHPWG_PLUGINS_PATH . 'SmartAlbums/include/install.inc.php'); |
[16104] | 5 | |
[11376] | 6 | function plugin_install() |
7 | { | |
[17716] | 8 | smart_albums_install(); |
9 | define('smart_albums_installed', true); | |
[10871] | 10 | } |
11 | ||
[11376] | 12 | function plugin_activate() |
[11381] | 13 | { |
[17716] | 14 | if (!defined('smart_albums_installed')) |
[11376] | 15 | { |
[17716] | 16 | smart_albums_install(); |
[11376] | 17 | } |
18 | } | |
19 | ||
20 | function plugin_uninstall() | |
[17716] | 21 | { |
22 | global $prefixeTable; | |
23 | ||
24 | pwg_query('DROP TABLE `' . $prefixeTable . 'category_filters`;'); | |
[11333] | 25 | pwg_query('ALTER TABLE `' . IMAGE_CATEGORY_TABLE . '` DROP `smart`;'); |
[16104] | 26 | pwg_query('DELETE FROM `' . CONFIG_TABLE . '` WHERE param = \'SmartAlbums\' LIMIT 1;'); |
[10871] | 27 | } |
[16104] | 28 | |
[10871] | 29 | ?> |
Note: See TracBrowser
for help on using the repository browser.