Compare commits
2
Commits
b09ee5c4e3
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6647e26c3b | ||
|
|
540ba53762 |
@@ -685,8 +685,11 @@ function send_captcha(): void
|
|||||||
} elseif ($difficulty===7 || $difficulty===8 || $difficulty===10) {
|
} elseif ($difficulty===7 || $difficulty===8 || $difficulty===10) {
|
||||||
echo _('Type the five largest characters:');
|
echo _('Type the five largest characters:');
|
||||||
} else {
|
} else {
|
||||||
echo _('Type the characters in the image:');
|
if($difficulty===-1){ echo _('Type '.$code);}
|
||||||
|
else{echo _('Type the characters in the image:');}
|
||||||
}
|
}
|
||||||
|
if($difficulty===-1){$im=false;}
|
||||||
|
else{
|
||||||
if($difficulty===1 || $difficulty===2 || $difficulty===4){
|
if($difficulty===1 || $difficulty===2 || $difficulty===4){
|
||||||
// optionally use custom GD font for simple, moderate and extreme captchas
|
// optionally use custom GD font for simple, moderate and extreme captchas
|
||||||
if (get_setting('captchagdfont') === '') {
|
if (get_setting('captchagdfont') === '') {
|
||||||
@@ -964,7 +967,7 @@ function send_captcha(): void
|
|||||||
ob_start();
|
ob_start();
|
||||||
imagepng($im);
|
imagepng($im);
|
||||||
imagedestroy($im);
|
imagedestroy($im);
|
||||||
echo base64_encode(ob_get_clean()).'">';
|
echo base64_encode(ob_get_clean()).'">';}
|
||||||
echo '</td></tr><tr><td>'.hidden('challenge', $randid).'<input type="text" name="captcha" size="15" autocomplete="off" required></td></tr>';
|
echo '</td></tr><tr><td>'.hidden('challenge', $randid).'<input type="text" name="captcha" size="15" autocomplete="off" required></td></tr>';
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1091,6 +1094,11 @@ function send_setup(array $C): void
|
|||||||
echo ' selected';
|
echo ' selected';
|
||||||
}
|
}
|
||||||
echo '>'._('Disabled').'</option>';
|
echo '>'._('Disabled').'</option>';
|
||||||
|
echo '<option value="-1"';
|
||||||
|
if($captcha===-1){
|
||||||
|
echo ' selected';
|
||||||
|
}
|
||||||
|
echo '>'._('Accessible').'</option>';
|
||||||
echo '<option value="1"';
|
echo '<option value="1"';
|
||||||
if($captcha===1){
|
if($captcha===1){
|
||||||
echo ' selected';
|
echo ' selected';
|
||||||
|
|||||||
Reference in new issue
Block a user