Fix captchas

This commit is contained in:
tim
2015-11-22 00:22:34 +02:00
parent 602d644181
commit 925a8572d0
11 changed files with 18 additions and 662 deletions
-18
View File
@@ -111,24 +111,6 @@ if (isset($file_src) || isset($img)) {
if (!$is_admin && (($action == "") || isset($validate['captcha']))) {
echo '<div><br class="clear" /></div>';
echo '<div class="g-recaptcha" data-sitekey="'.htmlspecialchars(config('RECAPTCHA_SITE_KEY')).'"></div>';
echo '<div id="captcha" style="display: none;">';
echo '<div id="recaptcha_image"></div>';
$redo_cap_class = isset($validate['captcha']) ? 'class="no" ' : '';
echo '<label '.$redo_cap_class.'for="recaptcha_response_field">Type the two words:</label>';
echo '<input type="text" name="recaptcha_response_field" id="recaptcha_response_field" maxlength="150" value="" />';
echo '<span class="required">&nbsp;*</span>';
echo '<span class="icons">';
echo '<a href="javascript:Recaptcha.reload()">';
echo '<img src="/graphics/recaptcha-refresh.png" alt="Refresh CAPTCHA" title="Refresh CAPTCHA" /></a>';
echo '<span class="recaptcha_only_if_image"><a href="javascript:Recaptcha.switch_type(\'audio\')">';
echo '<img src="/graphics/recaptcha-audio.png" alt="Get audio CAPTCHA" title="Audio version" /></a></span>';
echo '<span class="recaptcha_only_if_audio"><a href="javascript:Recaptcha.switch_type(\'image\')">';
echo '<img src="/graphics/recaptcha-text.png" alt="Get image CAPTCHA" title="Image version" /></a></span>';
echo '<a href="javascript:Recaptcha.showhelp()">';
echo '<img src="/graphics/recaptcha-help.png" alt="CAPTCHA help" title="Help" /></a>';
echo '</span>';
echo '<br class="clear" />';
echo '</div>';
}
if ($is_admin) {