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