source: extensions/akBookStyle/trunk/maintain.inc.php @ 13748

Last change on this file since 13748 was 10975, checked in by nikrou, 13 years ago

Update to make plugin compatible with piwigo 2.2

File size: 2.0 KB
Line 
1<?php
2// +-----------------------------------------------------------------------+
3// | akBookStyle  - a plugin for Piwigo                                    |
4// +-----------------------------------------------------------------------+
5// | Copyright(C) 2009-2011 Nicolas Roudaire        http://www.nikrou.net  |
6// | Copyright(C) 2009      vdigital                                       |
7// +-----------------------------------------------------------------------+
8// | This program is free software; you can redistribute it and/or modify  |
9// | it under the terms of the GNU General Public License as published by  |
10// | the Free Software Foundation                                          |
11// |                                                                       |
12// | This program is distributed in the hope that it will be useful, but   |
13// | WITHOUT ANY WARRANTY; without even the implied warranty of            |
14// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
15// | General Public License for more details.                              |
16// |                                                                       |
17// | You should have received a copy of the GNU General Public License     |
18// | along with this program; if not, write to the Free Software           |
19// | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,            |
20// | MA 02110-1301 USA                                                     |
21// +-----------------------------------------------------------------------+
22
23if (!defined('PHPWG_ROOT_PATH')) {
24  die('Hacking attempt!');
25}
26
27function plugin_install($plugin_id, $plugin_version, &$errors) {
28}
29
30function plugin_activate($plugin_id, $plugin_version, &$errors) {
31}
32
33function plugin_deactivate($plugin_id) { 
34}
35
36function plugin_uninstall($plugin_id) {
37  $config_file = $GLOBALS['conf']['local_data_dir'].'/plugins/';
38  $config_file .= basename(dirname(__FILE__)).'.dat';
39  if (file_exists($config_file)) {
40    unlink($config_file);
41  }
42}
43?>
Note: See TracBrowser for help on using the repository browser.