// 生成4位数验证码 public function verify() { import ( "ORG.Util.Image" ); // 图像操作类库 $type = isset ( $_GET ['type'] ) ? $_GET ['type'] : 'gif'; Image::buildImageVerify ( 4, 1, $type ); }