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

Revision 18369, 572 bytes checked in by mistic100, 7 years ago (diff)

first commit

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(PWG_LOCAL_DIR) and !file_exists(PWG_LOCAL_DIR . 'comments_blacklist.txt') ) 
19  {
20    touch(PWG_LOCAL_DIR . 'comments_blacklist.txt');
21  }
22
23}
24
25?>
Note: See TracBrowser for help on using the repository browser.