Changeset 3444 for branches/2.2/security
- Timestamp:
- 10/29/10 17:08:55 (14 years ago)
- Location:
- branches/2.2/security
- Files:
-
- 5 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/security/captcha.php
r3437 r3444 83 83 $image = imagecreate($imagelength, $imageheight); 84 84 $bgcolor = imagecolorallocate($image, 146, 176, 212); 85 $stringcolor = imagecolorallocate($image, 0, 0, 155);85 $stringcolor = imagecolorallocate($image, 0, rand(0,100), rand(0,155)); 86 86 $linecolor = imagecolorallocate($image, 0, 0, 0); 87 imagettftext($image, 2 5, -4, 8, 25,87 imagettftext($image, 20, rand(-4,4),8,30, 88 88 $stringcolor, 89 89 $this->Font, 90 90 $this->CaptchaString); 91 91 imagecolortransparent($image,$bgcolor); 92 93 94 $src = imagecreatefrompng('captcha_images/img00'.rand(1,4).'.png'); 95 imagecopymerge($image, $src, 0, 0, 0, 0, 151, 37, 25); 96 92 97 switch ($this->ImageType) 93 98 {
Note: See TracChangeset
for help on using the changeset viewer.