Rev | Line | |
---|
[17882] | 1 | <?php |
---|
| 2 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
| 3 | |
---|
[17925] | 4 | defined('LINKEDPAGES_ID') or define('LINKEDPAGES_ID', basename(dirname(__FILE__))); |
---|
[17927] | 5 | include_once(PHPWG_PLUGINS_PATH . LINKEDPAGES_ID . '/include/install.inc.php'); |
---|
[17882] | 6 | |
---|
| 7 | |
---|
| 8 | function plugin_install() |
---|
| 9 | { |
---|
| 10 | linked_pages_install(); |
---|
| 11 | define('linked_pages_installed', true); |
---|
| 12 | } |
---|
| 13 | |
---|
| 14 | |
---|
| 15 | function plugin_activate() |
---|
| 16 | { |
---|
| 17 | if (!defined('linked_pages_installed')) |
---|
| 18 | { |
---|
| 19 | linked_pages_install(); |
---|
| 20 | } |
---|
| 21 | } |
---|
| 22 | |
---|
| 23 | |
---|
| 24 | function plugin_uninstall() |
---|
| 25 | { |
---|
| 26 | global $prefixeTable; |
---|
| 27 | |
---|
| 28 | pwg_query('DROP TABLE `'.$prefixeTable.'linked_pages`;'); |
---|
| 29 | } |
---|
| 30 | |
---|
| 31 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.