Last change
on this file since 10330 was
9764,
checked in by mistic100, 14 years ago
|
[extentions] Smilies Support
- active for admin in the comments page
- two new sets of smilies
- help tip on admin page (needs translation)
|
File size:
545 bytes
|
Line | |
---|
1 | <?php |
---|
2 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
3 | |
---|
4 | function plugin_install() |
---|
5 | { |
---|
6 | global $conf; |
---|
7 | |
---|
8 | if (!isset($conf['smiliessupport'])) { |
---|
9 | $q = 'INSERT INTO ' . CONFIG_TABLE . ' (param,value,comment) |
---|
10 | VALUES ("smiliessupport","plugins/SmiliesSupport/smilies_1,6,smile.png","Parametres SmiliesSupport");'; |
---|
11 | pwg_query($q); |
---|
12 | } |
---|
13 | } |
---|
14 | |
---|
15 | function plugin_uninstall() |
---|
16 | { |
---|
17 | global $conf; |
---|
18 | |
---|
19 | if (isset($conf['smiliessupport'])) { |
---|
20 | pwg_query('DELETE FROM ' . CONFIG_TABLE . ' WHERE param="smiliessupport" LIMIT 1;'); |
---|
21 | } |
---|
22 | } |
---|
23 | |
---|
24 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.