Last change
on this file since 6167 was
6167,
checked in by patdenice, 15 years ago
|
Upgrade work for 2.1.
Language keys have not been inserted yet.
|
File size:
525 bytes
|
Rev | Line | |
---|
[4711] | 1 | <?php |
---|
| 2 | |
---|
| 3 | function plugin_activate() |
---|
| 4 | { |
---|
[6167] | 5 | global $prefixeTable, $conf; |
---|
[4711] | 6 | |
---|
[6167] | 7 | if (!isset($conf['autoupdate_ignore_list'])) |
---|
| 8 | { |
---|
| 9 | $query = ' |
---|
[4711] | 10 | INSERT INTO ' . CONFIG_TABLE . ' (param,value,comment) |
---|
| 11 | VALUES ("autoupdate_ignore_list" , "'.addslashes(serialize(array())).'" , "Ignored plugin list for Piwigo Auto Update plugin");'; |
---|
| 12 | |
---|
[6167] | 13 | pwg_query($query); |
---|
| 14 | } |
---|
[4711] | 15 | } |
---|
| 16 | |
---|
| 17 | function plugin_deactivate() |
---|
| 18 | { |
---|
| 19 | global $prefixeTable; |
---|
| 20 | |
---|
| 21 | $query = 'DELETE FROM ' . CONFIG_TABLE . ' WHERE param="autoupdate_ignore_list" LIMIT 1;'; |
---|
| 22 | pwg_query($query); |
---|
| 23 | } |
---|
| 24 | |
---|
| 25 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.