source: extensions/comments_blacklist/maintain.inc.php @ 19838

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

make sure words file is created on the right place

File size: 562 bytes
Line 
1<?php
2defined('PHPWG_ROOT_PATH') or die('Hacking attempt!');
3
4defined('COMM_BLACKLIST_ID') or define('COMM_BLACKLIST_ID', basename(dirname(__FILE__)));
5include_once(PHPWG_PLUGINS_PATH . COMM_BLACKLIST_ID . '/include/install.inc.php');
6
7
8function plugin_install() 
9{
10  comm_blacklist_install();
11  define('comm_blacklist_installed', true);
12}
13
14function plugin_activate()
15{
16  if (!defined('comm_blacklist_installed'))
17  {
18    comm_blacklist_install();
19  }
20}
21
22function plugin_uninstall() 
23{
24  @unlink(PHPWG_ROOT_PATH . PWG_LOCAL_DIR . 'comments_blacklist.txt');
25}
26
27?>
Note: See TracBrowser for help on using the repository browser.