span style="color: #0000BB"><?php$img = imagecreatetruecolor(60,28);imagefill($img,0,0,imagecolorallocate($img,255,255,255));imagerectangle($img,0,0,59,27,imagecolorallocate($img,0,0,0));$_SESSION['code'] = (string)rand(1000,9995);for($i = 0;$i < 4;$i ++)imagestring($img,rand(2,5),4 + (14 * $i),rand(1,12),$_SESSION['code'][$i],imagecolorallocate($img,rand(50,150),rand(50,150),rand(50,150)));header('Content-Type: image/gif');header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');header('Cache-Control: no-store, no-cache, must-revalidate');header('Cache-Control: post-check=0, pre-check=0', false);header('Pragma: no-cache');imagegif($img,null);imagedestroy($img);exit;?> |