/* Badwords */
if($enableNewRegistrations and $action=='register' and isset($_POST[$dbUserSheme['username'][2]])){
include($pathToFiles.'addon_badwords.php');
$foundBadword=FALSE;

if($arr=preg_split('/[-_ ]/', $_POST[$dbUserSheme['username'][2]])){
foreach($arr as $chk) {

$chkbw=badWords($chk, $bad_words_strict, $bad_words_medium, $bad_words_lax, $reveal);

if($chk!=$chkbw) {
$foundBadword=TRUE;
break;
}

}
}
if($foundBadword) {
$correct=10;
$l_userErrors[$correct]=$_badwordReg;
}
}
/* --Badwords */