비표준 그누보드4 첫커밋

This commit is contained in:
whitedot
2012-10-05 15:12:27 +09:00
parent 8751c57ffc
commit a4b2e70e4d
899 changed files with 89562 additions and 0 deletions

37
js/kcaptcha.js Normal file
View File

@ -0,0 +1,37 @@
/*
** 2010.03.12 : jQuery 로 대체하여 앞으로 사용하지 않습니다.
*/
if (typeof(KCAPTCHA_JS) == 'undefined') // 한번만 실행
{
if (typeof g4_path == 'undefined')
alert('g4_path 변수가 선언되지 않았습니다. js/kcaptcha.js');
var KCAPTCHA_JS = true;
var md5_norobot_key = '';
function imageClick() {
var url = g4_path+"/"+g4_bbs+"/kcaptcha_session.php";
var para = "";
var myAjax = new Ajax.Request(
url,
{
method: 'post',
asynchronous: true,
parameters: para,
onComplete: imageClickResult
});
}
function imageClickResult(req) {
var result = req.responseText;
var img = document.createElement("IMG");
img.setAttribute("src", g4_path+"/"+g4_bbs+"/kcaptcha_image.php?t=" + (new Date).getTime());
document.getElementById('kcaptcha_image').src = img.getAttribute('src');
md5_norobot_key = result;
}
Event.observe(window, "load", imageClick);
}