/** * Return if we should show the captcha to the user. Checks for Molloms Request * and if the user is currently logged in as then it can be assumed they are not spam * * @return bool */ private function showCaptcha() { if (Permission::check('ADMIN') || !MollomServer::verifyKey()) { return false; } if ((Session::get('mollom_captcha_requested') || !$this->getFieldMapping()) && (!Member::currentUser() || self::$force_check_on_members)) { return true; } return (bool) self::$always_show_captcha; }
function isKeyVerified() { return MollomServer::verifyKey(); }