Last change
on this file since 9728 was
9683,
checked in by mistic100, 13 years ago
|
[extentions] Smilies Support
- compatibility with Piwigo 2.2.0
- many corrections
|
File size:
549 bytes
|
Rev | Line | |
---|
[3304] | 1 | <?php |
---|
| 2 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
| 3 | |
---|
| 4 | function plugin_install() |
---|
| 5 | { |
---|
[9683] | 6 | global $conf; |
---|
[3304] | 7 | |
---|
[9683] | 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 | } |
---|
[3304] | 14 | } |
---|
| 15 | |
---|
| 16 | function plugin_uninstall() |
---|
| 17 | { |
---|
[9683] | 18 | global $conf; |
---|
[3304] | 19 | |
---|
[9683] | 20 | if (isset($conf['smiliessupport'])) |
---|
| 21 | { |
---|
| 22 | pwg_query('DELETE FROM ' . CONFIG_TABLE . ' WHERE param="smiliessupport" LIMIT 1;'); |
---|
| 23 | } |
---|
[3304] | 24 | } |
---|
[9683] | 25 | |
---|
| 26 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.