$this->captcha = new Zend_Captcha_Image(array( 'font' => $this->get_font(), 'imgdir' => $img_dir, 'fontsize' => rand(21, 22), 'width' => 100, 'height' => 40, 'wordlen' => 4, 'session' => new Zend_Session_Namespace(G_COOKIE_PREFIX . '_Captcha'), 'timeout' => 600 )); $this->captcha->setDotNoiseLevel(rand(1, 2)); // 这里是设置点干扰和线条干扰,自已调一下 $this->captcha->setLineNoiseLevel(rand(1, 2)); }
这家伙很懒,还没有设置简介