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