캡차이미지와 캡챠음성파일을 미리 만들어 놓고 img src 에 노출하는 방식으로 변경

This commit is contained in:
gnuboard
2013-01-12 15:52:32 +09:00
parent 76f6048e66
commit 508d060219
9 changed files with 124 additions and 56 deletions

View File

@ -2,12 +2,17 @@
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
if (defined('_CAPTCHA_')) {
$captcha = (object)array(
'lib' => $g4['path']."/plugin/captcha/captcha.lib.php",
'js' => $g4['path']."/plugin/captcha/captcha.js"
$captcha = (object)Array(
'lib' => $g4['path']."/plugin/captcha/captcha.lib.php",
'js' => $g4['path']."/plugin/captcha/captcha.js",
'fonts' => $g4['path']."/plugin/captcha/fonts"
);
include_once($captcha->lib);
$g4['js_file'][] = $captcha->js;
$captcha_obj = new captcha();
$captcha_obj->run();
} else {
unset($_SESSION['ss_captcha_use']);
}