Posted on: 08/07/05 12:41pm
By: Anonymous (Kiwi)
// now prevent anonymous posters from submitting comments with too many links. // this is to prevent spambots from adding comments filled with porn/drug links. $numLinks = preg_match_all('/hrefs*=/i', $comment, $allLinks); if($numLinks > 2 && $uid == 1) // uid 1 is Anonymous. { $retval .= COM_siteHeader() . COM_startBlock ($LANG12[26], '', COM_getBlockTemplate ('_msg_block', 'header')) . $LANG03[31] . COM_endBlock (COM_getBlockTemplate ('_msg_block', 'footer')) . COM_siteFooter(); return $retval; }
Posted on: 08/12/05 04:48pm
By: Anonymous (kiwi)