<?php 
    include_once APP_PATH.'plugin/vaptcha_v3/hook/vaptcha.php';
    $btn = $conf['user_create_email_on'] ? '#sendcode' : '#submit';
    $script = <<<SCRIPT
    var submit = $('$btn')
    submit.click(function() {
        if(!$('input[name=vaptcha_token]').val()) {
            $('.vaptcha-container').alert('请进行人机验证').focus();
            return false;
        }
        setTimeout(obj.reset.bind(obj), 1000)
    })
SCRIPT;
    echo getVaptchaScript( $conf['user_create_email_on'] ? 'email_code' : 'user_create', $script);
?>
