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

Last change on this file since 21533 was 21441, checked in by mistic100, 11 years ago

some code corrections

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