source:
extensions/ContactForm/maintain.inc.php
@
17945
Last change on this file since 17945 was 17945, checked in by , 12 years ago | |
---|---|
File size: 569 bytes |
Rev | Line | |
---|---|---|
[6547] | 1 | <?php |
2 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); | |
3 | ||
[17945] | 4 | defined('CONTACT_FORM_ID') or define('CONTACT_FORM_ID', basename(dirname(__FILE__))); |
5 | include_once(PHPWG_PLUGINS_PATH . CONTACT_FORM_ID . '/include/install.inc.php'); | |
[6547] | 6 | |
[17483] | 7 | function plugin_install() |
8 | { | |
[17658] | 9 | contact_form_install(); |
10 | define('contact_form_installed', true); | |
[6547] | 11 | } |
12 | ||
[17483] | 13 | function plugin_activate() |
14 | { | |
[17658] | 15 | if (!defined('contact_form_installed')) |
[17483] | 16 | { |
[17658] | 17 | contact_form_install(); |
[17483] | 18 | } |
[6547] | 19 | } |
20 | ||
[17483] | 21 | function plugin_uninstall() |
22 | { | |
23 | pwg_query('DELETE FROM `'. CONFIG_TABLE .'` WHERE param LIKE "ContactForm%" LIMIT 3;'); | |
[6547] | 24 | } |
25 | ||
[17483] | 26 | ?> |
Note: See TracBrowser
for help on using the repository browser.