캡챠 적용중

This commit is contained in:
gnuboard
2013-01-11 10:59:47 +09:00
parent 7acfbbf740
commit 7c0bf1d119
2 changed files with 14 additions and 57 deletions

View File

@ -89,7 +89,6 @@ var char_max = parseInt(<?=$comment_max?>); // 최대
</form>
<script src="<?=$g4['path']?>/js/jquery.kcaptcha.js"></script>
<script>
var save_before = '';
var save_html = document.getElementById('bo_vc_w').innerHTML;
@ -190,33 +189,11 @@ var char_max = parseInt(<?=$comment_max?>); // 최대
}
}
if (!check_kcaptcha(f.wr_key)) {
return false;
}
<? if (defined('_CAPTCHA_')) echo captcha_js('f.wr_key'); ?>
return true;
}
/*
jQuery.fn.extend({
kcaptcha_load: function() {
$.ajax({
type: 'POST',
url: g4_path+'/'+g4_bbs+'/kcaptcha_session.php',
cache: false,
async: false,
success: function(text) {
$('#kcaptcha_image')
.attr('src', g4_path+'/'+g4_bbs+'/kcaptcha_image.php?t=' + (new Date).getTime())
.css('cursor', '')
.attr('title', '');
md5_norobot_key = text;
}
});
}
});
*/
function comment_box(comment_id, work)
{
var el_id;
@ -261,10 +238,6 @@ var char_max = parseInt(<?=$comment_max?>); // 최대
if (typeof(wrestInitialized) != 'undefined')
wrestInitialized();
//jQuery(this).kcaptcha_load();
if (comment_id && work == 'c')
$.kcaptcha_run();
}
function comment_delete(url)