Rev | Line | |
---|
[15940] | 1 | <?php |
---|
| 2 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
| 3 | |
---|
[24889] | 4 | defined('GUESTBOOK_ID') or define('GUESTBOOK_ID', basename(dirname(__FILE__))); |
---|
| 5 | include_once(PHPWG_PLUGINS_PATH . GUESTBOOK_ID . '/include/install.inc.php'); |
---|
[15940] | 6 | |
---|
| 7 | // Installation |
---|
| 8 | function plugin_install() |
---|
| 9 | { |
---|
[24889] | 10 | guestbook_install(); |
---|
[24890] | 11 | define('guestbook_installed', true); |
---|
[15940] | 12 | } |
---|
| 13 | |
---|
| 14 | // Activation |
---|
| 15 | function plugin_activate() |
---|
| 16 | { |
---|
[24889] | 17 | if (!defined('guestbook_installed')) |
---|
[15940] | 18 | { |
---|
[24889] | 19 | guestbook_install(); |
---|
[15940] | 20 | } |
---|
| 21 | } |
---|
| 22 | |
---|
| 23 | // Uninstallation |
---|
| 24 | function plugin_uninstall() |
---|
| 25 | { |
---|
[24889] | 26 | guestbook_uninstall(); |
---|
| 27 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.