/** * Returns an array with the captcha text entry so user can type * * @access public * @return array Array indexed by captcha (the text entry) and entry (the input) */ function get() { $res = array(); $objReCaptcha = new ReCaptcha(); $publickey = $GLOBALS['app']->Registry->fetch('reCAPTCHA_public_key', 'Policy'); $reCAPTCHA = $objReCaptcha->recaptcha_get_html($publickey); $res = array(); $res['key'] = 0; $res['text'] = $reCAPTCHA; $res['label'] = _t($this->_label); $res['title'] = _t($this->_label); $res['description'] = _t($this->_description); return $res; }
} ?> </span></div> <div class="contents"><?php echo $comment->getMessage(); ?> </div> <?php } ?> <div id="comments"> <form action="PostBlogComment.action" method="post"> <?php if (!isset($_COOKIE[PostBlogComment::CAPTCHA_COOKIE_NAME])) { echo ReCaptcha::recaptcha_get_html($publickey); } ?> <?php if (hasErrorsOrWarningsForField('name')) { $messages = getErrorsOrWarningsForField('name'); ?> <div class="inlineError"> <ul> <?php foreach ($messages as $message) { ?> <li><?php echo $message->getMessage(); ?> </li>