public function code() { //实例化验证码对象 $code = new Code(); //显示验证码 $code->show(); }
public function verify() { //require YY_PATH.'Core/Code.class.php'; import('Code', YY_PATH . 'Core'); $code = new Code(); $code->show(); }
/** * 登录页面显示验证码 * * @access public */ public function code() { C(array("CODE_BG_COLOR" => "#ffffff", "CODE_LEN" => 4, "CODE_FONT_SIZE" => 20, "CODE_WIDTH" => 120, "CODE_HEIGHT" => 35)); $code = new Code(); $code->show(); exit; }
/** * 申请友情链接验证码 */ public function code() { if (IS_POST) { if (Q('code', null, 'strtoupper') == session('code')) { echo 1; exit; } } else { $code = new Code(); $code->show(); } }
public function code() { $code = new Code(80, 25, '', '', 3, 15); $code->show(); }
/** * 验证码 */ public function code() { $code = new Code(); $code->show(); exit; }
public function showCode(){ $code = new Code(); $code->show(); }