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

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

bad folder name

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