Line | |
---|
1 | <?php |
---|
2 | |
---|
3 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt! - ThemeChanger maintain.inc.php - PHPWG_ROOT_PATH undefined'); |
---|
4 | |
---|
5 | function plugin_install() |
---|
6 | { |
---|
7 | $q = ' |
---|
8 | INSERT INTO '.CONFIG_TABLE.' (param,value,comment) |
---|
9 | VALUES ("nbc_ThemeChanger","","Parametres nbc_ThemeChanger") |
---|
10 | ;'; |
---|
11 | |
---|
12 | pwg_query($q); |
---|
13 | } |
---|
14 | |
---|
15 | function plugin_uninstall() |
---|
16 | { |
---|
17 | global $conf; |
---|
18 | |
---|
19 | if (isset($conf['nbc_ThemeChanger'])) |
---|
20 | { |
---|
21 | $q = ' |
---|
22 | DELETE FROM '.CONFIG_TABLE.' |
---|
23 | WHERE param="nbc_ThemeChanger" LIMIT 1 |
---|
24 | ;'; |
---|
25 | |
---|
26 | pwg_query($q); |
---|
27 | } |
---|
28 | } |
---|
29 | |
---|
30 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.