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

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

first commit

File size: 572 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(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.