$captcha_width, //验证码图片宽度 'imageH' => $captcha_height, //验证码图片高度 'fontSize' => $captcha_font_size, //验证码字体大小 'length' => $captcha_length, //验证码位数 'useNoise' => false, //关闭验证码杂点 ); if(isset($_REQUEST['captcha'])){ if ($_REQUEST['captcha'] == 'is_login') { //登录 $code_config['seKey'] = 'captcha_login'; } elseif ($_REQUEST['captcha'] == 'is_register_email') { //注册-邮箱方式 $code_config['seKey'] = 'register_email'; } elseif ($_REQUEST['captcha'] == 'is_register_phone') { //注册-手机方式 $code_config['seKey'] = 'mobile_phone'; } elseif ($_REQUEST['captcha'] == 'is_discuss') { //网友讨论圈 $code_config['seKey'] = 'captcha_discuss'; } elseif ($_REQUEST['captcha'] == 'is_user_comment') { //晒单 $code_config['seKey'] = 'user_comment'; } elseif ($_REQUEST['captcha'] == 'is_get_password') { //忘记密码邮箱找回密码 $code_config['seKey'] = 'get_password'; } elseif ($_REQUEST['captcha'] == 'is_get_phone_password') { //手机找回密码 $code_config['seKey'] = 'get_phone_password'; }elseif ($_REQUEST['captcha'] == 'get_pwd_question') { //问题找回密码 $code_config['seKey'] = 'psw_question'; }elseif ($_REQUEST['captcha'] == 'is_bonus') { //红包 $code_config['seKey'] = 'bonus'; } elseif ($_REQUEST['captcha'] == 'admin_login') { //后台登陆 $code_config['seKey'] = 'admin_login'; } } $identify = isset($_REQUEST['identify']) ? intval($_REQUEST['identify']) : ''; $img = new Verify($code_config); $img->entry($identify); ?>