private function get_html() { $config = RMFunctions::get()->plugin_settings('ayah', true); self::set_config(); require_once RMCPATH . '/plugins/ayah/include/ayah.php'; $ayah = new AYAH(); $ayah->debug_mode($config['debug']); return $ayah->getPublisherHTML(); }
public function show() { $config = RMFunctions::get()->plugin_settings('ayah', true); $this->set_config(); include_once RMCPATH . '/plugins/ayah/include/ayah.php'; $ayah = new AYAH(); $ayah->debug_mode($config['debug']); $field = $ayah->getPublisherHTML(); return $field; }
function getHtmlByName($captcha) { if ($captcha == 'sweet') { //sweet-captcha //$sweetcaptcha = new $sweetcaptcha(237528,'1bdea965d3b5c76f8e181497c7f13a42','22e2f639510c142c5217bc7324fb0ba2','sweetcaptcha.php'); //require_once('sweetcaptcha.php'); return $sweetcaptcha->get_html(); } elseif ($captcha == 're') { //recaptcha $publickey = "6Lf3kAYTAAAAAGJpD5oRTiwMHDF2Enp5jjDCxOAh"; $privatekey = "6Lf3kAYTAAAAAEMVCybX4IDJtl_uEpJKuQsPc8Q5"; return recaptcha_get_html($publickey, null); } elseif ($captcha == 'playtrue') { ////playtruecaptcha stuff $ayah = new AYAH(); return $ayah->getPublisherHTML(); } elseif ($captcha == 'secureimage') { ///secure image suff $options = array(); $options['input_name'] = 'ct_captcha'; return Securimage::getCaptchaHtml($options); } }
$resp = solvemedia_check_answer($data['solvemedia_verification_key'], getIP(), array_key_exists('adcopy_challenge', $_POST) ? $_POST['adcopy_challenge'] : '', array_key_exists('adcopy_response', $_POST) ? $_POST['adcopy_response'] : '', $data["solvemedia_auth_key"]); $data["captcha_valid"] = $resp->is_valid; } break; case 'reCaptcha': $data["captcha"] = str_replace('<:: your_site_key ::>', $data["recaptcha_public_key"], $recaptcha_template); if (array_key_exists('address', $_POST)) { $url = 'https://www.google.com/recaptcha/api/siteverify?secret=' . $data["recaptcha_private_key"] . '&response=' . (array_key_exists('g-recaptcha-response', $_POST) ? $_POST["g-recaptcha-response"] : '') . '&remoteip=' . getIP(); $resp = json_decode(file_get_contents($url), true); $data['captcha_valid'] = $resp['success']; } break; case 'AreYouAHuman': require_once "libs/ayahlib.php"; $ayah = new AYAH(array('publisher_key' => $data['ayah_publisher_key'], 'scoring_key' => $data['ayah_scoring_key'], 'web_service_host' => 'ws.areyouahuman.com', 'debug_mode' => false, 'use_curl' => !$connection_options['disable_curl'])); $data['captcha'] = $ayah->getPublisherHTML(); if (array_key_exists('address', $_POST)) { $score = $ayah->scoreResult(); $data['captcha_valid'] = $score; } break; case 'FunCaptcha': require_once "libs/funcaptcha.php"; $funcaptcha = new FUNCAPTCHA(); $data["captcha"] = $funcaptcha->getFunCaptcha($data["funcaptcha_public_key"]); if (array_key_exists('address', $_POST)) { $data['captcha_valid'] = $funcaptcha->checkResult($data["funcaptcha_private_key"]); } break; } $data['captcha_info'] = $captcha;
// already-filled-in (sender name and email). // //if ( $_POST['Action'] == "verify" ) { // // We wouldn't be here if they hadn't failed // $smarty->assign('verifyFailed', TRUE); //} //$smarty->assign('senderName', ($theDropbox->authorizedUser() ? $theDropbox->authorizedUserData("displayName") : htmlentities(stripslashes($_POST['senderName'])))); //$smarty->assign('senderOrg', ($theDropbox->authorizedUser() ? $theDropbox->authorizedUserData("organization") : htmlentities(stripslashes($_POST['senderOrganization'])))); //$smarty->assign('senderEmail', ($theDropbox->authorizedUser() ? strtolower($theDropbox->authorizedUserData("mail")) : htmlentities(stripslashes($_POST['senderEmail'])))); $smarty->assign('senderName', $theDropbox->authorizedUser() ? $theDropbox->authorizedUserData("displayName") : (isset($_POST['senderName']) ? htmlentities(paramPrepare($_POST['senderName'])) : NULL)); $smarty->assign('senderOrg', $theDropbox->authorizedUser() ? $theDropbox->authorizedUserData("organization") : (isset($_POST['senderOrganization']) ? htmlentities(paramPrepare($_POST['senderOrganization'])) : NULL)); $smarty->assign('senderEmail', $theDropbox->authorizedUser() ? strtolower($theDropbox->authorizedUserData("mail")) : (isset($_POST['senderEmail']) ? htmlentities(paramPrepare($_POST['senderEmail'])) : NULL)); if (!$theDropbox->authorizedUser()) { $captcha = $theDropbox->captcha(); if ($captcha === 'areyouahuman') { $smarty->assign('recaptchaHTML', $ayah->getPublisherHTML()); $smarty->assign('recaptchaDisabled', FALSE); } elseif ($captcha === 'google' || $captcha === '') { // Using Google or an old version without this set $reCaptchaPublicKey = $theDropbox->recaptchaPublicKey(); if ($reCaptchaPublicKey === 'disabled') { $smarty->assign('recaptchaDisabled', TRUE); } else { $smarty->assign('recaptchaHTML', recaptcha_get_html($reCaptchaPublicKey)); $smarty->assign('recaptchaDisabled', FALSE); } } else { // Must be disabled $smarty->assign('recaptchaDisabled', TRUE); } }
<div class="answer"> <input name="permission" type="radio" value="Yes" <?php if ($PERM === "Yes") { echo "checked"; } ?> > Yes<br> <input name="permission" type="radio" value="No" <?php if ($PERM === "No") { echo "checked"; } ?> > No </div><br> <?php echo $ayah->getPublisherHTML(); ?> <br> <input class="button" name='submitapp' type="submit" value="Submit"> </form> </div> <div class="col2-half"> <h2> Tips </h2> <p> Before submitting the form, please ensure that you have done each of the following: </p> <ul> <li>Complete all questions as necessary</li> <li>Check the accuracy of each answer</li>
$ayah = new AYAH(); if (array_key_exists('submit_signup', $_POST)) { // Use the AYAH object to see if the user passed or failed the game. $score = $ayah->scoreResult(); if ($score) { // This happens if the user passes the game. In this case, // we're just displaying a congratulatory message. // echo "Congratulations: you are a human!"; } else { // This happens if the user does not pass the game. // echo "Sorry, but we were not able to verify you as human. Please try again."; $errors[] = $lang['signup.captcha']; $err['captcha'] = 1; } } $areyh = $ayah->getPublisherHTML(); $smarty->assign('areyh', $areyh); } $signup = array('username' => '', 'email' => '', 'age' => '', 'terms' => '', 'gender' => ''); if (isset($_POST['submit_signup'])) { $filter = new VFilter(); $valid = new VValidation(); $username = $filter->get('username'); $password = $filter->get('password'); $password_confirm = $filter->get('password_confirm'); $email = $filter->get('email'); $vcode = $filter->get('verification'); $age = $filter->get('age'); $terms = $filter->get('terms'); $gender = $filter->get('gender'); if ($username == '') {
/** * Draws the html form element * * @param array $data to pre-populate element with * @param int $repeatCounter repeat group counter * * @return string elements html */ public function render($data, $repeatCounter = 0) { $name = $this->getHTMLName($repeatCounter); $id = $this->getHTMLId($repeatCounter); $element = $this->getElement(); $params = $this->getParams(); $value = $this->getValue($data, $repeatCounter); if (!$this->isEditable()) { if ($element->hidden == '1') { return '<!-- ' . stripslashes($value) . ' -->'; } else { return stripslashes($value); } } if ($params->get('captcha-method') == 'recaptcha') { if (!function_exists('_recaptcha_qsencode')) { require_once JPATH_SITE . '/plugins/fabrik_element/captcha/libs/recaptcha-php-1.11/recaptchalib.php'; } $publickey = $params->get('recaptcha_publickey'); // $$$tom added lang & theme options $theme = $params->get('recaptcha_theme', 'red'); $lang = JString::strtolower($params->get('recaptcha_lang', 'en')); $error = null; if ($this->user->get('id') != 0 && $params->get('captcha-showloggedin', 0) == false) { return '<input class="inputbox text" type="hidden" name="' . $name . '" id="' . $id . '" value="" />'; } else { $browser = JBrowser::getInstance(); $ssl = $browser->isSSLConnection(); return $this->fabrik_recaptcha_get_html($id, $publickey, $theme, $lang, $error, $ssl); } } elseif ($params->get('captcha-method') == 'playthru') { if ($this->user->get('id') != 0 && $params->get('captcha-showloggedin', 0) == false) { return '<input class="inputbox text" type="hidden" name="' . $name . '" id="' . $id . '" value="" />'; } if (!defined('AYAH_PUBLISHER_KEY')) { define('AYAH_PUBLISHER_KEY', $params->get('playthru_publisher_key', '')); define('AYAH_SCORING_KEY', $params->get('playthru_scoring_key', '')); } require_once JPATH_SITE . '/plugins/fabrik_element/captcha/libs/ayah_php_bundle_1.1.7/ayah.php'; $ayah = new AYAH(); return $ayah->getPublisherHTML(); } elseif ($params->get('captcha-method') == 'nocaptcha') { $layout = $this->getLayout('nocaptcha'); $displayData = new stdClass(); $displayData->id = $id; $displayData->name = $name; $displayData->site_key = $params->get('recaptcha_publickey'); return $layout->render($displayData); } else { if (!function_exists('imagettfbbox')) { throw new RuntimeException(FText::_('PLG_FABRIK_ELEMENT_CAPTCHA_STANDARD_TTF_ERROR')); } $size = $element->width; $fontSize = $params->get('captcha-font-size', 22); $angle = $params->get('captcha-angle', 0); $padding = $params->get('captcha-padding', 10); $characters = $params->get('captcha-chars', 6); $code = $this->_generateCode($characters); // $$$ hugh - code that generates image now in image.php $this->session->set('com_' . $this->package . '.element.captcha.security_code', $code); // Additional plugin params with validation $noiseColor = $params->get('captcha-noise-color', '0000FF'); // '0000FF' again if we have param value but it's invalid $noiseColor = $this->_getRGBcolor($noiseColor, '0000FF'); $textColor = $params->get('captcha-text-color', '0000FF'); $textColor = $this->_getRGBcolor($textColor, '0000FF'); $bgColor = $params->get('captcha-bg', 'FFFFFF'); $bgColor = $this->_getRGBcolor($bgColor, 'FFFFFF'); // Let's keep all params in relatively safe place not only captcha value // Felixkat - Add $this->session->set('com_' . $this->package . '.element.captcha.fontsize', $fontSize); $this->session->set('com_' . $this->package . '.element.captcha.angle', $angle); $this->session->set('com_' . $this->package . '.element.captcha.padding', $padding); $this->session->set('com_' . $this->package . '.element.captcha.noise_color', $noiseColor); $this->session->set('com_' . $this->package . '.element.captcha.text_color', $textColor); $this->session->set('com_' . $this->package . '.element.captcha.bg_color', $bgColor); $this->session->set('com_' . $this->package . '.element.captcha.font', $this->font); $type = $params->get('password') == '1' ? 'password' : 'text'; if ($this->elementError != '') { $type .= ' elementErrorHighlight'; } if ($element->hidden == '1') { $type = 'hidden'; } $layout = $this->getLayout('form'); $displayData = new stdClass(); $displayData->id = $id; $displayData->name = $name; // $$$ hugh - changed from static image path to using simple image.php script, to get round IE caching images //$displayData->url = COM_FABRIK_LIVESITE . 'plugins/fabrik_element/captcha/image.php?foo=' . rand(); // Changed to relative path as some sites were on site.com and loading from www.site.com (thus sessions different) $displayData->url = JRoute::_('plugins/fabrik_element/captcha/image.php?foo=' . rand()); $displayData->type = $type; $displayData->size = $size; return $layout->render($displayData); } }
public function doCaptcha($display = true) { $captcha = parent::getOption('integration-captcha'); switch ($captcha) { case 'reCAPTCHA': require_once 'captcha/recaptcha-1.11/recaptchalib.php'; $publickey = parent::getOption('reCAPTCHA-public-key'); $privatekey = parent::getOption('reCAPTCHA-private-key'); /* Captcha has been submitted. */ if (!empty($_POST['recaptcha_response_field'])) { $resp = recaptcha_check_answer($privatekey, $_SERVER["REMOTE_ADDR"], $_POST["recaptcha_challenge_field"], $_POST["recaptcha_response_field"]); if (!$resp->is_valid) { $this->captchaError = $resp->error; } } else { $this->captchaError = true; } if ($display) { echo recaptcha_get_html($publickey, $this->captchaError); } break; case 'playThru': if (!defined('AYAH_PUBLISHER_KEY')) { define('AYAH_PUBLISHER_KEY', parent::getOption('playThru-publisher-key')); } if (!defined('AYAH_SCORING_KEY')) { define('AYAH_SCORING_KEY', parent::getOption('playThru-scoring-key')); } if (!defined('AYAH_WEB_SERVICE_HOST')) { define('AYAH_WEB_SERVICE_HOST', 'ws.areyouahuman.com'); } require_once 'captcha/ayah-1.0.2/ayah.php'; $integration = new AYAH(); if (!$display && !empty($_POST) && !$integration->scoreResult()) { $this->captchaError = true; } /* Show the captcha form. */ if ($display) { echo $integration->getPublisherHTML(); } break; } }
function build_ayah() { global $lang, $mybb, $templates; define('AYAH_PUBLISHER_KEY', $this->ayah_publisher_key); define('AYAH_SCORING_KEY', $this->ayah_scoring_key); define('AYAH_USE_CURL', $this->ayah_use_curl); define('AYAH_DEBUG_MODE', $this->ayah_debug_mode); define('AYAH_WEB_SERVICE_HOST', $this->ayah_web_service_host); require_once MYBB_ROOT . "inc/3rdparty/ayah/ayah.php"; $ayah = new AYAH(); $output = $ayah->getPublisherHTML(); if (!empty($output)) { eval("\$this->html = \"" . $templates->get($this->captcha_template, 1, 0) . "\";"); //eval("\$this->html = \"".$templates->get("member_register_regimage_ayah")."\";"); } }
function form_antibot($title = false, $input_name, $input_id, $input_value = false, $array = false) { /* To do * To do: label off * Note: DO NOT USE DISABLED, it will not pass information to server. Use "readonly" instead. */ global $_POST; if (isset($title) && $title !== "") { $title = stripinput($title); } else { $title = ""; } if (isset($input_name) && $input_name !== "") { $input_name = stripinput($input_name); } else { $input_name = ""; } if (isset($input_id) && $input_id !== "") { $input_id = stripinput($input_id); } else { $input_id = ""; } if (isset($input_value) && $input_value !== "") { $input_value = stripinput($input_value); } else { $input_value = ""; } // 4 choices to sub-array // a. icon, b. button, c.dropdown list d.dropdown with modal if (!is_array($array)) { $array = array(); $state_validation = ""; $before = ""; $after = ""; $required = ""; $placeholder = ""; $deactivate = ""; $width = ""; $class = "input-sm"; $well = ""; $type = ""; $stacking = ""; } else { $before = array_key_exists('before', $array) ? $array['before'] : ""; $after = array_key_exists('after', $array) ? $array['after'] : ""; $placeholder = array_key_exists('placeholder', $array) ? $array['placeholder'] : ""; $deactivate = array_key_exists('deactivate', $array) ? $array['deactivate'] : ""; $class = array_key_exists('class', $array) ? $array['class'] : "input-sm"; $required = array_key_exists('required', $array) ? $array['required'] : ""; $width = array_key_exists('width', $array) ? "style='width: " . $array['width'] . "'" : ""; $well = array_key_exists('well', $array) ? "style='margin-top:-10px;'" : ""; $type = array_key_exists('password', $array) && $array['password'] == "1" ? "password" : "text"; $stacking = array_key_exists("stacking", $array) ? 1 : ""; } if ($required == "1" && (isset($_POST[$input_name]) && empty($_POST[$input_name]))) { $state_validation = "has-error"; } else { $state_validation = ""; } if ($stacking == "1") { $col = "col-sm-12 col-md-12 col-lg-12"; $col2 = "col-sm-12 col-md-12 col-lg-12"; } else { $col = "col-sm-12 col-md-3 col-lg-3 control-label"; $col2 = "col-sm-12 col-md-9 col-lg-9"; } // Append/Prepend Plugin API if (!empty($before) || !empty($after)) { $init_bs3 = "<div class='input-group'>"; $end_bs3 = "</div>"; } else { // cancel plugin $init_bs3 = ""; $end_bs3 = ""; } $html = ""; if (!empty($title)) { $html .= "<div class='form-group " . $state_validation . "'>"; $html .= "<label for='{$input_id}-0' class='{$col}'>{$title}</label>"; $html .= "<div class='{$col2}' {$well}>"; } // Are you a human require_once INCLUDES . "captchas/ayah/ayah.php"; $ayah = new AYAH(); if (array_key_exists('ayah_submit', $_POST)) { $score = $ayah->scoreResult(); if ($score) { $html = "Congratulations: you are a human!"; } else { $html = "Sorry, but we were not able to verify you as human. Please try again."; } } $html .= "<div class='row'>"; $html .= "<div class='col-sm-12 col-md-12 col-lg-12'>"; $html .= $ayah->getPublisherHTML(); $html .= "</div>"; $html .= "</div>"; if (!empty($title)) { $html .= "</div></div>"; } return $html; }
function ust_signup_fields_bp() { $ust_settings = get_site_option("ust_settings"); if ($ust_settings['signup_protect'] == 'recaptcha') { $recaptcha = get_site_option('ust_recaptcha'); require_once 'includes/recaptchalib.php'; echo '<div class="register-section" id="blog-details-section">'; echo "<script type='text/javascript'>var RecaptchaOptions = { theme : '{$recaptcha['theme']}', lang : '{$recaptcha['lang']}' , tabindex : 30 };</script>"; echo '<label>' . __('Human Verification:', 'ust') . '</label>'; do_action('bp_recaptcha_errors'); echo '<div id="reCAPTCHA">'; echo rp_recaptcha_get_html($recaptcha['pubkey']); echo '</div></div>'; } else { if ($ust_settings['signup_protect'] == 'asirra') { echo '<div class="register-section" id="blog-details-section">'; echo '<label>' . __('Human Verification:', 'ust') . '</label>'; do_action('bp_asirra_errors'); echo '<div id="asirraError"></div>'; echo '<script type="text/javascript" src="http://challenge.asirra.com/js/AsirraClientSide.js"></script>'; echo '<script type="text/javascript"> asirraState.SetEnlargedPosition("right"); asirraState.SetCellsPerRow(4); formElt = document.getElementById("signup_form"); formElt.onsubmit = function() { return MySubmitForm(); }; var passThroughFormSubmit = false; function MySubmitForm() { if (passThroughFormSubmit) { return true; } Asirra_CheckIfHuman(HumanCheckComplete); return false; } function HumanCheckComplete(isHuman) { if (!isHuman) { asirraError = document.getElementById("asirraError"); asirraError.innerHTML = \'<div class="error">' . __('Please try to correctly identify the cats again.', 'ust') . '</div>\'; return false; } else { passThroughFormSubmit = true; formElt.submit(); return true; } } </script>'; echo '</div>'; echo '<input type="hidden" name="signup_submit" value="1" />'; } else { if ($ust_settings['signup_protect'] == 'questions') { $ust_qa = get_site_option("ust_qa"); if (is_array($ust_qa) && count($ust_qa)) { $qkey = rand(0, count($ust_qa) - 1); //encrypt the answer field name to make it harder for sploggers to guess. Changes every hour & different for every site. $salt = get_site_option("ust_salt"); $datesalt = strtotime(date('Y-m-d H:00:00')); $field_name = 'qa_' . md5($qkey . $salt . $datesalt); echo '<div class="register-section" id="antisplog">'; echo '<label>' . __('Human Verification:', 'ust') . '</label>'; do_action('bp_qa_errors'); echo stripslashes($ust_qa[$qkey][0]); echo '<br /><input type="text" id="qa" name="' . $field_name . '" value="' . htmlentities($_POST[$field_name]) . '" />'; echo '<br /><small>' . __('NOTE: Answers are not case sensitive.', 'ust') . '</small>'; echo '</div>'; } } else { if ($ust_settings['signup_protect'] == 'ayah') { $ust_ayah = get_site_option("ust_ayah"); require_once "includes/ayah.php"; $integration = new AYAH(array("publisher_key" => @$ust_ayah['pubkey'], "scoring_key" => @$ust_ayah['privkey'])); echo '<div class="register-section" id="blog-details-section">'; do_action('bp_ayah_errors'); echo $integration->getPublisherHTML(); echo '</div>'; } } } } }
/** * Draws the html form element * * @param array $data to pre-populate element with * @param int $repeatCounter repeat group counter * * @return string elements html */ public function render($data, $repeatCounter = 0) { $name = $this->getHTMLName($repeatCounter); $id = $this->getHTMLId($repeatCounter); $element = $this->getElement(); $params = $this->getParams(); $value = $this->getValue($data, $repeatCounter); if (!$this->isEditable()) { if ($element->hidden == '1') { return '<!-- ' . stripslashes($value) . ' -->'; } else { return stripslashes($value); } } if ($params->get('captcha-method') == 'recaptcha') { if (!function_exists('_recaptcha_qsencode')) { require_once JPATH_SITE . '/plugins/fabrik_element/captcha/libs/recaptcha-php-1.11/recaptchalib.php'; } $publickey = $params->get('recaptcha_publickey'); // $$$tom added lang & theme options $theme = $params->get('recaptcha_theme', 'red'); $lang = JString::strtolower($params->get('recaptcha_lang', 'en')); $error = null; if ($this->user->get('id') != 0 && $params->get('captcha-showloggedin', 0) == false) { return '<input class="inputbox text" type="hidden" name="' . $name . '" id="' . $id . '" value="" />'; } else { $browser = JBrowser::getInstance(); $ssl = $browser->isSSLConnection(); return $this->fabrik_recaptcha_get_html($id, $publickey, $theme, $lang, $error, $ssl); } } elseif ($params->get('captcha-method') == 'playthru') { if ($this->user->get('id') != 0 && $params->get('captcha-showloggedin', 0) == false) { return '<input class="inputbox text" type="hidden" name="' . $name . '" id="' . $id . '" value="" />'; } if (!defined('AYAH_PUBLISHER_KEY')) { define('AYAH_PUBLISHER_KEY', $params->get('playthru_publisher_key', '')); define('AYAH_SCORING_KEY', $params->get('playthru_scoring_key', '')); } require_once JPATH_SITE . '/plugins/fabrik_element/captcha/libs/ayah_php_bundle_1.1.7/ayah.php'; $ayah = new AYAH(); return $ayah->getPublisherHTML(); } elseif ($params->get('captcha-method') == 'nocaptcha') { $layout = $this->getLayout('nocaptcha'); $displayData = new stdClass(); $displayData->id = $id; $displayData->name = $name; $displayData->site_key = $params->get('recaptcha_publickey'); return $layout->render($displayData); } else { if (!function_exists('imagettfbbox')) { throw new RuntimeException(FText::_('PLG_FABRIK_ELEMENT_CAPTCHA_STANDARD_TTF_ERROR')); } $size = $element->width; $fontSize = $params->get('captcha-font-size', 22); $angle = $params->get('captcha-angle', 0); $padding = $params->get('captcha-padding', 10); $characters = $params->get('captcha-chars', 6); $code = $this->_generateCode($characters); $this->session->set('com_' . $this->package . '.element.captcha.security_code', $code); $type = $params->get('password') == '1' ? 'password' : 'text'; if ($this->elementError != '') { $type .= ' elementErrorHighlight'; } if ($element->hidden == '1') { $type = 'hidden'; } $layout = $this->getLayout('form'); $displayData = new stdClass(); $displayData->id = $id; $displayData->name = $name; $formId = $this->getFormModel()->getId(); $rowId = $this->app->input->get('rowid', '0'); $elementId = $this->getId(); $displayData->url = COM_FABRIK_LIVESITE . 'index.php?option=com_' . $this->package . '&task=plugin.pluginAjax&plugin=captcha&method=ajax_image&format=raw&element_id=' . $elementId . '&formid=' . $formId . '&rowid=' . $rowId . '&repeatcount=' . $repeatCounter; $displayData->type = $type; $displayData->size = $size; return $layout->render($displayData); } }
/** * Gets the HTML that will be displayed on a form. * * @return {string} HTML */ function getForm() { $ayah = new AYAH(); return $ayah->getPublisherHTML() . '<noscript>' . wfMessage('areyouahumancaptcha-nojs')->parse() . '</noscript>'; }