mirror of
https://github.com/Mibew/java.git
synced 2025-01-22 17:40:35 +03:00
captcha issue fix
git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@645 c66351dc-e62f-0410-b875-e3a5c0b9693f
This commit is contained in:
parent
b07eb9bfb6
commit
1c8e8b88bf
@ -32,7 +32,9 @@ function draw_captcha($security_code) {
|
|||||||
|
|
||||||
//Create the image resource
|
//Create the image resource
|
||||||
$image = ImageCreate($width, $height);
|
$image = ImageCreate($width, $height);
|
||||||
imageantialias($image, true);
|
if(function_exists('imageantialias')) {
|
||||||
|
imageantialias($image, true);
|
||||||
|
}
|
||||||
|
|
||||||
//We are making three colors, white, black and gray
|
//We are making three colors, white, black and gray
|
||||||
$white = ImageColorAllocate($image, 255, 255, 255);
|
$white = ImageColorAllocate($image, 255, 255, 255);
|
||||||
|
Loading…
Reference in New Issue
Block a user