Rev | Line | |
---|
[4629] | 1 | <?php |
---|
| 2 | |
---|
| 3 | function plugin_activate() |
---|
| 4 | { |
---|
[9891] | 5 | global $conf, $prefixeTable; |
---|
[4629] | 6 | |
---|
[9891] | 7 | if (!isset($conf['FCKEditor'])) |
---|
| 8 | { |
---|
| 9 | $query = ' |
---|
[4629] | 10 | INSERT INTO ' . CONFIG_TABLE . ' (param,value,comment) |
---|
| 11 | VALUES ("FCKEditor" , "'.addslashes(serialize(array())).'" , "FCKEditor areas");'; |
---|
| 12 | |
---|
[9891] | 13 | pwg_query($query); |
---|
| 14 | } |
---|
[4629] | 15 | } |
---|
| 16 | |
---|
| 17 | function plugin_deactivate() |
---|
| 18 | { |
---|
| 19 | global $prefixeTable; |
---|
| 20 | |
---|
| 21 | $query = 'DELETE FROM ' . CONFIG_TABLE . ' WHERE param="FCKEditor" LIMIT 1;'; |
---|
| 22 | pwg_query($query); |
---|
| 23 | } |
---|
| 24 | |
---|
| 25 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.