This commit is contained in:
Claude 2012-10-10 21:22:01 +02:00
parent 96fe4f627c
commit f66694f362
2 changed files with 8 additions and 3 deletions

View File

@ -72,7 +72,10 @@ $config['per_page'] = 10;
**/
$config['private_only'] = false;
$config['enable_captcha'] = false;
$config['blocked_words'] = '.es.tl, mycraft.com, strom';
//blocked words; comma separated list, e.g. '.es.tl, mycraft.com, yourbadword'
$config['blocked_words'] = '';
//spamadmin: accessible via /spamadmin (only active when user + pass is set)
$config['spamadmin_user'] = '';
$config['spamadmin_pass'] = '';

View File

@ -621,11 +621,13 @@ class Main extends CI_Controller
}
}
function _blockwords_check($raw)
function _blockwords_check()
{
//setup message
$this->form_validation->set_message('_blockwords_check', 'Your paste contains blocked words.');
//check
//check
$blocked_words = $this->config->item('blocked_words');
$post = $this->input->post();
$raw = $post['code'];