bhq@iemsoft.cn
2018-11-27 3e083bc512141a008fecae0c6cfe3e6e9b9e2c3d
commit | author | age
3e083b 1 <?php
B 2
3 /**
4  *  生成验证码
5 */
6
7 define('IN_ECS', true);
8 define('INIT_NO_SMARTY', true);
9
10 require(dirname(__FILE__) . '/includes/init.php');
11 require(ROOT_PATH . 'includes/cls_captcha.php');
12
13 $img = new captcha(ROOT_PATH . 'data/captcha/', $_CFG['captcha_width'], $_CFG['captcha_height']);
14 @ob_end_clean(); //清除之前出现的多余输入
15 if (isset($_REQUEST['is_login']))
16 {
17     $img->session_word = 'captcha_login';
18 }
19 $img->generate_image();
20
21 ?>