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