Last change
on this file since 21411 was
21222,
checked in by ddtddt, 11 years ago
|
[extensions] - Photo_add_by - new feature choise where add 'photo add by
|
File size:
373 bytes
|
Rev | Line | |
---|
[21222] | 1 | <?php |
---|
| 2 | |
---|
| 3 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
| 4 | |
---|
| 5 | |
---|
| 6 | function plugin_install() |
---|
| 7 | { |
---|
| 8 | $query = 'INSERT INTO ' . CONFIG_TABLE . ' (param,value,comment) VALUES ("Photo_add_by","datecreate","Photo_add_by");'; |
---|
| 9 | pwg_query($query); |
---|
| 10 | } |
---|
| 11 | |
---|
| 12 | function plugin_uninstall() |
---|
| 13 | { |
---|
| 14 | $q = 'DELETE FROM ' . CONFIG_TABLE . ' WHERE param="Photo_add_by" LIMIT 1;'; |
---|
| 15 | pwg_query($q); |
---|
| 16 | } |
---|
| 17 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.