ckeditor, captcha 수정중

This commit is contained in:
gnuboard
2013-01-10 10:57:44 +09:00
parent 1ff1d90efd
commit b370acf97a
8 changed files with 34 additions and 77 deletions

View File

@ -137,7 +137,7 @@ $captcha->run();
*/
// 캡챠이미지는 한개만 사용 가능함.
function get_captcha($input_name, $captcha_no)
function get_captcha($input_name, $captcha_no=1)
{
global $g4;
@ -170,4 +170,10 @@ function chk_captcha($input_name)
}
return true;
}
// captcha javascript code
function captcha_js($element)
{
return "if (!check_captcha({$element})) { return false; }";
}
?>

View File

@ -23,7 +23,7 @@ function editor_getdata($id)
function editor_empty($id, $textarea_name="내용을")
{
if (defined('_EDITOR_'))
return "if (!{$id}_data) { alert(\"$textarea_name 입력해 주십시오.\"); return false; }\n";
return "if (!{$id}_data) { alert(\"$textarea_name 입력해 주십시오.\"); CKEDITOR.instances.{$id}.focus(); return false; }\n";
else
return "";
}