
Originally Posted by
ts232
I use css buttons, and the redraw image button is not active. The user can not click on it to generate an action, it simply selects the ALT text.
includes/classes/captcha.php:
Find
Code:
function redraw_button($image, $alt = '', $parameters = '', $sec_class = '') {
$redraw = 'onclick="document.getElementById(\'captcha-img\').src=\'' . $this->img_href . '&rand=\'+Math.random();return false;"';
return zen_image_button($image, $alt, $redraw . ' ' . $parameters, $sec_class );
}
Replace by
Code:
function redraw_button($image, $alt = '', $parameters = '', $sec_class = '') {
$redraw = ' onclick="document.getElementById(\'captcha-img\').src=\'' . $this->img_href . '&rand=\'+Math.random();return false;"';
$redraw_button = zen_image_button($image, $alt, $redraw . ' ' . $parameters, $sec_class );
if (strtolower(IMAGE_USE_CSS_BUTTONS) == 'yes' && strpos($redraw_button, $redraw) === false) {
$redraw_button = str_replace('<span ', '<span ' . $redraw, $redraw_button);
}
return $redraw_button;
}
Bookmarks