summaryrefslogtreecommitdiff
path: root/inc/config.php
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@n0v4.com>2011-04-06 19:18:36 +1000
committerSavetheinternet <savetheinternet@n0v4.com>2011-04-06 19:18:36 +1000
commit638589d254bdd3f2f6cd639ff47a6ca4fe03631d (patch)
tree67b242e8bb7da8c6f8b4ccd847895f5b6e18f78c /inc/config.php
parentf16f621def58e717c69d2e8af77610f41ffc2ccd (diff)
Wordfilters
Diffstat (limited to 'inc/config.php')
-rw-r--r--inc/config.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/inc/config.php b/inc/config.php
index 6a9b8fd7..b67ddb10 100644
--- a/inc/config.php
+++ b/inc/config.php
@@ -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';