source:
extensions/header_manager/maintain.inc.php
@
20461
Last change on this file since 20461 was 17655, checked in by , 12 years ago | |
---|---|
File size: 584 bytes |
Rev | Line | |
---|---|---|
[15854] | 1 | <?php |
2 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); | |
[17655] | 3 | |
4 | include_once(PHPWG_PLUGINS_PATH . 'header_manager/include/install.inc.php'); | |
[15854] | 5 | |
6 | function plugin_install() | |
7 | { | |
[17655] | 8 | header_manager_install(); |
[17654] | 9 | |
[17644] | 10 | define('header_manager_installed', true); |
[15854] | 11 | } |
12 | ||
13 | function plugin_activate() | |
14 | { | |
[17644] | 15 | if (!defined('header_manager_installed')) |
[15854] | 16 | { |
[17655] | 17 | header_manager_install(); |
[15854] | 18 | } |
19 | } | |
20 | ||
21 | function plugin_uninstall() | |
22 | { | |
[16937] | 23 | global $prefixeTable; |
24 | ||
25 | pwg_query('DROP TABLE `' .$prefixeTable . 'category_banner`;'); | |
[15854] | 26 | pwg_query('DELETE FROM `'. CONFIG_TABLE .'` WHERE param = "header_manager" LIMIT 1;'); |
27 | } | |
28 | ||
29 | ?> |
Note: See TracBrowser
for help on using the repository browser.