source: extensions/comments_blacklist/include/install.inc.php @ 20400

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

make sure words file is created on the right place

File size: 575 bytes
Line 
1<?php
2defined('PHPWG_ROOT_PATH') or die('Hacking attempt!');
3
4function comm_blacklist_install() 
5{
6  global $conf;
7 
8  if (empty($conf['comments_blacklist']))
9  {
10    $comm_blacklist_default_config = serialize(array(
11      'action' => 'reject',
12      ));
13 
14    conf_update_param('comments_blacklist', $comm_blacklist_default_config);
15    $conf['comments_blacklist'] = $comm_blacklist_default_config;
16  }
17 
18  if (!file_exists(PHPWG_ROOT_PATH . PWG_LOCAL_DIR . 'comments_blacklist.txt')) 
19  {
20    touch(PHPWG_ROOT_PATH . PWG_LOCAL_DIR . 'comments_blacklist.txt');
21  }
22
23}
24
25?>
Note: See TracBrowser for help on using the repository browser.