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

Last change on this file since 10839 was 10837, checked in by mistic100, 14 years ago

first version of CryptograPHP

File size: 510 bytes
Line 
1<?php
2function plugin_install()
3{
4  global $conf;
5
6 
7  if (!isset($conf['cryptograph_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.