Wordfilters
This commit is contained in:
@@ -20,7 +20,8 @@
|
||||
'dir' => Array(),
|
||||
'mod' => Array(),
|
||||
'spam' => Array(),
|
||||
'flood_filters' => Array()
|
||||
'flood_filters' => Array(),
|
||||
'wordfilters' => Array()
|
||||
);
|
||||
// Database stuff
|
||||
|
||||
@@ -447,6 +448,14 @@
|
||||
// 'message' => 'Your post has been rejected on the suspicion of a flood attack on this board (too many new threads); post a reply instead.'
|
||||
//);
|
||||
|
||||
// Wordfilters are used to automatically replace certain words/phrases with something else.
|
||||
|
||||
// For a normal string replacement:
|
||||
// $config['wordfilters'][] = Array('cat', 'dog');
|
||||
|
||||
// Advanced raplcement (regular expressions):
|
||||
// $config['wordfilters'][] = Array('/cat/', 'dog', true); // 'true' means it's a regular expression
|
||||
|
||||
// A small file in the main directory indicating that the script has been ran and the board(s) have been generated.
|
||||
// This keeps the script from querying the database and causing strain when not needed.
|
||||
$config['has_installed'] = '.installed';
|
||||
|
Reference in New Issue
Block a user