mirror of
https://github.com/claudehohl/Stikked.git
synced 2025-04-25 12:31:06 -05:00
config
This commit is contained in:
parent
96fe4f627c
commit
f66694f362
@ -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'] = '';
|
||||
|
@ -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'];
|
||||
|
Loading…
x
Reference in New Issue
Block a user