source: extensions/autoupdate/trunk/maintain.inc.php @ 6196

Last change on this file since 6196 was 6196, checked in by patdenice, 15 years ago

Webmaster status is required to launch any upgrade process.
Display "save template directory" fielset only if Piwigo version < 2.1.
Add random parameter in all_version url (to avoid cache server).
Move empty directory to trash is rmdir fail.

File size: 524 bytes
Line 
1<?php
2
3function plugin_activate()
4{
5  global $prefixeTable, $conf;
6
7  if (!isset($conf['autoupdate_ignore_list']))
8  {
9    $query = '
10INSERT INTO ' . CONFIG_TABLE . ' (param,value,comment)
11VALUES ("autoupdate_ignore_list" , "'.addslashes(serialize(array())).'" , "Ignored plugin list for Piwigo Auto Update plugin");';
12
13    pwg_query($query);
14  }
15}
16
17function plugin_uninstall()
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.