Rev | Line | |
---|
[24215] | 1 | <?php |
---|
| 2 | defined('PHPWG_ROOT_PATH') or die('Hacking attempt!'); |
---|
| 3 | |
---|
| 4 | defined('EASYCAPTCHA_ID') or define('EASYCAPTCHA_ID', basename(dirname(__FILE__))); |
---|
| 5 | include_once(PHPWG_PLUGINS_PATH . EASYCAPTCHA_ID . '/include/install.inc.php'); |
---|
| 6 | |
---|
| 7 | function plugin_install() |
---|
| 8 | { |
---|
| 9 | easycaptcha_install(); |
---|
| 10 | define('easycaptcha_installed', true); |
---|
| 11 | } |
---|
| 12 | |
---|
| 13 | function plugin_activate() |
---|
| 14 | { |
---|
| 15 | if (!defined('easycaptcha_installed')) |
---|
| 16 | { |
---|
| 17 | easycaptcha_install(); |
---|
| 18 | } |
---|
| 19 | } |
---|
| 20 | |
---|
| 21 | function plugin_uninstall() |
---|
| 22 | { |
---|
| 23 | pwg_query('DELETE FROM '.CONFIG_TABLE.' WHERE param="EasyCaptcha" LIMIT 1'); |
---|
| 24 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.