Wordfilters

This commit is contained in:
Savetheinternet 2011-04-06 19:18:36 +10:00
parent f16f621def
commit 638589d254
3 changed files with 80 additions and 28 deletions

View file

@ -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';