source: extensions/Subscribe_to_comments/maintain.inc.php @ 17922

Last change on this file since 17922 was 17922, checked in by mistic100, 12 years ago

use new upgrade process

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