Last change
on this file since 5481 was
4711,
checked in by patdenice, 15 years ago
|
[Plugin][Piwigo Auto Upgrade]
If gallery and plugins are up to date, display note on admin homepage only one time for each session.
Allow to disable notification for plugins you don't want to update.
|
File size:
459 bytes
|
Line | |
---|
1 | <?php |
---|
2 | |
---|
3 | function plugin_activate() |
---|
4 | { |
---|
5 | global $prefixeTable; |
---|
6 | |
---|
7 | $query = ' |
---|
8 | INSERT INTO ' . CONFIG_TABLE . ' (param,value,comment) |
---|
9 | VALUES ("autoupdate_ignore_list" , "'.addslashes(serialize(array())).'" , "Ignored plugin list for Piwigo Auto Update plugin");'; |
---|
10 | |
---|
11 | pwg_query($query); |
---|
12 | } |
---|
13 | |
---|
14 | function plugin_deactivate() |
---|
15 | { |
---|
16 | global $prefixeTable; |
---|
17 | |
---|
18 | $query = 'DELETE FROM ' . CONFIG_TABLE . ' WHERE param="autoupdate_ignore_list" LIMIT 1;'; |
---|
19 | pwg_query($query); |
---|
20 | } |
---|
21 | |
---|
22 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.