source:
extensions/Subscribe_to_comments/maintain.inc.php
@
24074
Last change on this file since 24074 was 21441, checked in by , 12 years ago | |
---|---|
File size: 640 bytes |
Rev | Line | |
---|---|---|
[12560] | 1 | <?php |
2 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); | |
3 | ||
[21441] | 4 | defined('SUBSCRIBE_TO_ID') or define('SUBSCRIBE_TO_ID', basename(dirname(__FILE__))); |
5 | include_once(PHPWG_PLUGINS_PATH . SUBSCRIBE_TO_ID . '/include/install.inc.php'); | |
[15641] | 6 | |
7 | ||
[12560] | 8 | function plugin_install() |
9 | { | |
[17922] | 10 | stc_install(); |
11 | define('stc_installed', true); | |
[12560] | 12 | } |
13 | ||
[15641] | 14 | function plugin_activate() |
15 | { | |
[17922] | 16 | if (!defined('stc_installed')) |
[15641] | 17 | { |
[17922] | 18 | stc_install(); |
[15641] | 19 | } |
20 | } | |
21 | ||
[12560] | 22 | function plugin_uninstall() |
23 | { | |
[17922] | 24 | global $prefixeTable; |
25 | ||
26 | pwg_query('DROP TABLE `'. $prefixeTable . 'subscribe_to_comments`;'); | |
[15641] | 27 | pwg_query('DELETE FROM `'. CONFIG_TABLE .'` WHERE param = "Subscribe_to_Comments" LIMIT 1;'); |
[12560] | 28 | } |
29 | ?> |
Note: See TracBrowser
for help on using the repository browser.