1
Since Liaise (1.26) has no built-in word censoring (that is, no use of XOOPS' censorString or another similar function), I did a simple hack to Liaise's include/form_execute.php file for the textarea case. See below. Has anyone already developed a better way?
Liaise remains valuable (and viable with XOOPS 2.3), and one of my clients allows anonymous users to send forms. Lately there's been regular salacious submittals. Banning the offending IPs has limited value. Preventing submittals in the first place might be somewhat useful, although far from foolproof anyway.
case 'textarea':
// check for bad words using XOOPS function
$temp1 = $myts->stripSlashesGPC($ele[$ele_id]);
$temp2 = $myts->stripSlashesGPC($myts->censorString($ele[$ele_id]));
if( $temp1 == $temp2 ){
$msg[$ele_id] .= $myts->stripSlashesGPC($ele[$ele_id]);
}else{
$err[] = "Improper language (censored words).";
}