source: extensions/CryptograPHP/maintain.inc.php @ 20189

Last change on this file since 20189 was 20189, checked in by mistic100, 11 years ago

fix for new guestbook template + code cleaning

File size: 513 bytes
Line 
1<?php
2defined('PHPWG_ROOT_PATH') or die('Hacking attempt!');
3
4defined('CRYPTO_ID') or define('CRYPTO_ID', basename(dirname(__FILE__)));
5include_once(PHPWG_PLUGINS_PATH . CRYPTO_ID . '/include/install.inc.php');
6
7function plugin_install() 
8{
9  crypto_install();
10  define('crypto_installed', true);
11}
12
13function plugin_activate()
14{
15  if (!defined('crypto_installed'))
16  {
17    crypto_install();
18  }
19}
20
21function plugin_uninstall()
22{
23  pwg_query('DELETE FROM '.CONFIG_TABLE.' WHERE param="cryptographp" LIMIT 1');
24}
25
26?>
Note: See TracBrowser for help on using the repository browser.