updateForm($form, $before, $fieldsToSpamServiceMapping); } catch (Exception $e) { $form->setMessage( _t("SpamProtection.SPAMSPECTIONFAILED", "This website is designed to be protected against spam by " . self::$spam_protecter . " but this is not correctly set up currently."), "warning" ); return null; } if (!$check) return null; return $protecter; } /** * Send Feedback to the Spam Protection. The level of feedback * will depend on the Protector class. * * @param DataObject The Object which you want to send feedback about. Must have a * SessionID field. * @param String Feedback on the $object usually 'spam' or 'ham' for non spam entries */ static function send_feedback($object, $feedback) { $protecter = new self::$spam_protecter(); return $protecter->sendFeedback($object, $feedback); } } ?>