Ejemplo n.º 1
0
 public function captcha()
 {
     ob_get_clean();
     $v = new \Think\PhpCaptcha(null, 120, 50);
     $v->UseColour(true);
     $v->SetNumChars(4);
     $v->Create();
 }
Ejemplo n.º 2
0
function check_captcha($code)
{
    return Think\PhpCaptcha::Validate($code);
}