source: extensions/autoupdate/maintain.inc.php @ 4711

Last change on this file since 4711 was 4711, checked in by patdenice, 14 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
3function plugin_activate()
4{
5  global $prefixeTable;
6
7  $query = '
8INSERT INTO ' . CONFIG_TABLE . ' (param,value,comment)
9VALUES ("autoupdate_ignore_list" , "'.addslashes(serialize(array())).'" , "Ignored plugin list for Piwigo Auto Update plugin");';
10
11  pwg_query($query);
12}
13
14function 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.