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