source: extensions/header_manager/maintain.inc.php @ 17644

Last change on this file since 17644 was 17644, checked in by mistic100, 8 years ago

improve upgrade process (for manual upgrades and piwigo.com upgrades)
improve delete button visibility

File size: 580 bytes
Line 
1<?php
2if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
3 
4include_once(PHPWG_PLUGINS_PATH . 'header_manager/include/install.inc.php');
5
6function plugin_install() 
7{
8  header_manager_install();
9  define('header_manager_installed', true);
10}
11
12function plugin_activate()
13{
14  if (!defined('header_manager_installed'))
15  {
16    header_manager_install()
17  }
18}
19
20function plugin_uninstall() 
21{
22  global $prefixeTable;
23 
24  pwg_query('DROP TABLE `' .$prefixeTable . 'category_banner`;');
25  pwg_query('DELETE FROM `'. CONFIG_TABLE .'` WHERE param = "header_manager" LIMIT 1;');
26}
27
28?>
Note: See TracBrowser for help on using the repository browser.