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