Line | |
---|
1 | <?php |
---|
2 | function 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 | |
---|
13 | function plugin_activate($id, $version, &$errors) |
---|
14 | { |
---|
15 | global $conf; |
---|
16 | |
---|
17 | if (!isset($conf['cryptographp_theme'])) |
---|
18 | { |
---|
19 | plugin_install(); |
---|
20 | } |
---|
21 | } |
---|
22 | |
---|
23 | |
---|
24 | function 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.