2009-01-23 17:05:20 +00:00
<? php defined ( "SYSPATH" ) or die ( "No direct script access." ) ?>
<div id="gAdminRecaptcha">
2009-07-02 20:50:29 -07:00
<h1> <?= t("reCAPTCHA Challenge Filtering") ?> </h1>
2009-01-23 17:05:20 +00:00
<p>
2009-07-02 20:50:29 -07:00
<?= t("reCAPTCHA is a free CAPTCHA service that helps to digitize books, newspapers and old time radio shows. In order to use it, you need to sign up for a <a href=\"%domain_url\">reCAPTCHA Public/Private Key pair</a>, which is also free. Once registered, the challenge and response strings are evaluated at <a href=\"%recaptcha_url\">recaptcha.net</a> to determine if the form content has been entered by a bot.",
2009-06-06 12:22:20 -07:00
array("domain_url" => $form->get_key_url,
2009-09-01 12:14:23 -07:00
"recaptcha_url" => html::mark_clean("http://recaptcha.net"))) ?>
2009-01-23 17:05:20 +00:00
</p>
<?= $form ?>
</div>
2009-01-28 08:15:56 +00:00
<? if ($public_key && $private_key): ?>
<div id="gAdminRecaptchaTest" class="gBlock">
2009-07-02 20:50:29 -07:00
<h2> <?= t("reCAPTCHA Test") ?> </h2>
2009-01-28 08:15:56 +00:00
<p>
2009-07-07 13:08:35 -07:00
<?= t("If you see a CAPTCHA form below, then reCAPTCHA is functioning properly.") ?>
2009-01-28 08:15:56 +00:00
</p>
<div id="gRecaptcha"/>
<script type="text/javascript" src="http://api.recaptcha.net/js/recaptcha_ajax.js"></script>
<script type="text/javascript">
Recaptcha.create("<?= $public_key ?>", "gRecaptcha", {
callback: Recaptcha.focus_response_field,
lang: "en",
2009-09-01 01:28:52 -07:00
custom_translations : { instructions_visual : <?= t("Type words to check:")->for_js() ?>},
2009-01-28 08:15:56 +00:00
theme: "white"
});
</script>
</div>
</div>
<? endif ?>