Changeset 10468 for temp/trunk/html/test
- Timestamp:
- 2006/12/08 12:43:13 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
temp/trunk/html/test/uehara/captcha/ajax_captcha/create_image.php
r10467 r10468 28 28 $white = ImageColorAllocate($image, 255, 255, 255); 29 29 $black = ImageColorAllocate($image, 0, 0, 0); 30 $grey = ImageColorAllocate($image, 204, 204, 204);31 30 32 31 // 背景色 33 ImageFill($image, 0, 0, $ white);32 ImageFill($image, 0, 0, $black); 34 33 35 34 // 生成したコードを表示 36 ImageString($image, 3, 30, 3, $security_code, $black); 37 /* 38 //Throw in some lines to make it a little bit harder for any bots to break 39 ImageRectangle($image,0,0,$width-1,$height-1,$grey); 40 imageline($image, 0, $height/2, $width, $height/2, $grey); 41 imageline($image, $width/2, 0, $width/2, $height, $grey); 42 */ 43 //Tell the browser what kind of file is come in 35 ImageString($image, 3, 30, 3, $security_code, $white); 36 37 // jpagで出力 44 38 header("Content-Type: image/jpeg"); 45 // jpagで出力46 39 ImageJpeg($image); 47 40 ImageDestroy($image);
Note: See TracChangeset
for help on using the changeset viewer.
