Files
gallery3/modules/recaptcha/views/admin_recaptcha.html.php
2009-07-07 13:08:35 -07:00

34 lines
1.4 KiB
PHP

<?php defined("SYSPATH") or die("No direct script access.") ?>
<div id="gAdminRecaptcha">
<h1> <?= t("reCAPTCHA Challenge Filtering") ?> </h1>
<p>
<?= 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.",
array("domain_url" => $form->get_key_url,
"recaptcha_url" => "http://recaptcha.net")) ?>
</p>
<?= $form ?>
</div>
<? if ($public_key && $private_key): ?>
<div id="gAdminRecaptchaTest" class="gBlock">
<h2> <?= t("reCAPTCHA Test") ?> </h2>
<p>
<?= t("If you see a CAPTCHA form below, then reCAPTCHA is functioning properly.") ?>
</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",
custom_translations : { instructions_visual : "<?= t("Type words to check:") ?>"},
theme: "white"
});
</script>
</div>
</div>
<? endif ?>