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

Last change on this file since 10840 was 10840, checked in by mistic100, 13 years ago

minor bug

File size: 511 bytes
Line 
1<?php
2function plugin_install()
3{
4  global $conf;
5
6 
7  if (!isset($conf['cryptographp_theme']))
8  {
9    pwg_query('INSERT INTO '.CONFIG_TABLE.' (param,value,comment) VALUES ("cryptographp_theme","cryptographp","CryptograPHP theme");');
10  }
11}
12
13function plugin_activate($id, $version, &$errors)
14{
15  global $conf;
16
17  if (!isset($conf['cryptographp_theme']))
18  {
19    plugin_install();
20  }
21}
22
23
24function plugin_uninstall()
25{
26  pwg_query('DELETE FROM '.CONFIG_TABLE.' WHERE param="cryptographp_theme" LIMIT 1');
27}
28
29?>
Note: See TracBrowser for help on using the repository browser.