In your addpost.php script at around line 495 you should see something that looks like this:
code:
$badwords = join("|", $words);
$badwords = preg_replace("/^\|/","",$badwords);
$Subject = preg_replace("/\b($badwords)\b/i",$config['censored'],$Subject);
$Body = preg_replace("/\b($badwords)\b/i",$config['censored'],$Body);
replace it with this:
code:
$badsize = sizeof($words);
for ($xy=0; $xy<$badsize; $xy++) {
if (!empty($words[$xy]) && $words[$xy] != " ") {
$thisstring = str_replace("*",".*",$words[$xy]);
$BadSubjectCount = eregi($thisstring,$Subject,$BadSubjectArray);
$BadBodyCount = eregi($thisstring,$Body,$BadBodyArray);
if ($BadSubjectCount >= 1 ) {
for ($zy=0; $zy<$BadSubjectCount; $zy++) {
$Subject = str_replace($BadSubjectArray[$zy],$config['censored'],$Subject);
}
}
if ($BadBodyCount >= 1 ) {
for ($zy=0; $zy<$BadBodyCount; $zy++) {
$Body = str_replace($BadBodyArray[$zy],$config['censored'],$Body);
}
}
}
}
This will replace many more instances of the words and if you use wildcards * it could very well replace the whole post with [censored]. LoL
There's probably a regular expression that will do the same job as this code but I'm not a regexp guru though.