Last change
on this file since 7060 was
3305,
checked in by patdenice, 16 years ago
|
New extension added:
BBCode Bar (2.0.a)
|
File size:
538 bytes
|
Line | |
---|
1 | <?php |
---|
2 | |
---|
3 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
4 | |
---|
5 | function plugin_install() |
---|
6 | { |
---|
7 | global $conf; |
---|
8 | |
---|
9 | if (!isset($conf['bbcode_bar'])) |
---|
10 | { |
---|
11 | $q = 'INSERT INTO ' . CONFIG_TABLE . ' (param,value,comment) |
---|
12 | VALUES ("bbcode_bar","1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,plugins/bbcode_bar/icon","Parametres BBCode_bar");'; |
---|
13 | pwg_query($q); |
---|
14 | } |
---|
15 | } |
---|
16 | |
---|
17 | function plugin_uninstall() |
---|
18 | { |
---|
19 | global $conf; |
---|
20 | |
---|
21 | if (isset($conf['bbcode_bar'])) |
---|
22 | { |
---|
23 | pwg_query('DELETE FROM ' . CONFIG_TABLE . ' WHERE param="bbcode_bar" LIMIT 1;'); |
---|
24 | } |
---|
25 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.