Last change
on this file since 9683 was
9683,
checked in by mistic100, 13 years ago
|
[extentions] Smilies Support
- compatibility with Piwigo 2.2.0
- many corrections
|
File size:
549 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 | { |
---|
10 | $q = 'INSERT INTO ' . CONFIG_TABLE . ' (param,value,comment) |
---|
11 | VALUES ("smiliessupport","plugins/SmiliesSupport/smilies,5,sourire.gif","Parametres SmiliesSupport");'; |
---|
12 | pwg_query($q); |
---|
13 | } |
---|
14 | } |
---|
15 | |
---|
16 | function plugin_uninstall() |
---|
17 | { |
---|
18 | global $conf; |
---|
19 | |
---|
20 | if (isset($conf['smiliessupport'])) |
---|
21 | { |
---|
22 | pwg_query('DELETE FROM ' . CONFIG_TABLE . ' WHERE param="smiliessupport" LIMIT 1;'); |
---|
23 | } |
---|
24 | } |
---|
25 | |
---|
26 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.