2009-01-23 17:05:20 +00:00
<? php defined ( "SYSPATH" ) or die ( "No direct script access." ) ?>
2009-10-18 20:22:10 -06:00
<div class="g-block">
2009-10-28 12:15:52 -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>
2009-10-18 20:22:10 -06:00
<div class="g-block-content">
<?= $form ?>
2009-01-28 08:15:56 +00:00
2009-10-18 20:22:10 -06:00
<? if ($public_key && $private_key): ?>
<div id="g-admin-recaptcha-test">
2009-10-28 12:15:52 -07:00
<h2> <?= t("reCAPTCHA test") ?> </h2>
2009-10-18 20:22:10 -06:00
<p>
<?= t("If you see a CAPTCHA form below, then reCAPTCHA is functioning properly.") ?>
</p>
2009-01-28 08:15:56 +00:00
2009-10-18 20:22:10 -06:00
<div id="g-recaptcha">
<script type="text/javascript" src="http://api.recaptcha.net/js/recaptcha_ajax.js"></script>
<script type="text/javascript">
Recaptcha.create("<?= $public_key ?>", "g-recaptcha", {
callback: Recaptcha.focus_response_field,
lang: "en",
custom_translations : { instructions_visual : <?= t("Type words to check:")->for_js() ?>},
theme: "white"
});
</script>
</div>
</div>
<? endif ?>
2009-10-28 12:15:52 -07:00
2009-01-28 08:15:56 +00:00
</div>
</div>