|
Everything else is working well but the security image in registration don't work it gets this error: Error in imagettfbbox function...
My current settings are
imagettfbbox function');
$x = ($width - $textbox[10])/2;
$y = ($height - $textbox[10])/2;
imagettftext($image, $font_size, 0, $x, $y, $text_color, $this->font , $code) or die('Error in imagettftext function');
/* output captcha image to browser */
header('Content-Type: image/jpeg');
imagejpeg($image);
imagedestroy($image);
$_SESSION['security_code'] = $code;
}
}
$width = isset($_GET['width']) ? $_GET['width'] : '120';
$height = isset($_GET['height']) ? $_GET['height'] : '40';
$characters = isset($_GET['characters']) && $_GET['characters'] > 1 ? $_GET['characters'] : '6';
$captcha = new CaptchaSecurityImages($width,$height,$characters);
?>
Last edited by Pavelaattori; 12-21-2008 at 05:22 PM.
|