diff --git a/modules/spamfilter/lang/ko.php b/modules/spamfilter/lang/ko.php index 2f42626d2..33049f86e 100644 --- a/modules/spamfilter/lang/ko.php +++ b/modules/spamfilter/lang/ko.php @@ -12,9 +12,7 @@ $lang->check_trackback = '트랙백 검사'; $lang->word = '키워드'; $lang->hit = '히트'; $lang->latest_hit = '최근 히트'; -$lang->display_keyword = '키워드 출력'; $lang->custom_message = '에러메세지 설정'; -$lang->about_display_keyword = '글, 댓글 제한으로 인해 등록하지 못하였을 경우 에러메세지에 키워드를 출력합니다. 기본값은 출력합니다.'; $lang->about_custom_message = '키워드를 출력하지 않을시 에러메세지를 설정합니다.'; $lang->about_interval = '지정된 시간 내에 글을 등록하지 못하게 합니다.'; $lang->about_denied_ip = '한 줄에 하나씩 IP 주소 또는 대역을 입력하세요. "//" 또는 "#" 뒷부분은 설명으로 저장됩니다. 예: 127.0.0.1 //설명, 127.0.0.1 #설명
IP 대역 표기법은 매뉴얼을 참고하십시오.'; @@ -22,7 +20,6 @@ $lang->about_denied_word = '한 줄에 하나씩 스팸 키워드를 입력하 $lang->msg_alert_limited_by_config = '%d초 이내에 연속 글 작성은 금지됩니다. 계속 시도하면 IP가 차단될 수 있습니다.'; $lang->msg_alert_limited_message_by_config = '%d초 이내에 연속 쪽지 발송은 금지됩니다. 계속 시도하면 IP가 차단될 수 있습니다.'; $lang->msg_alert_denied_word = '"%s"은(는) 사용이 금지된 단어입니다.'; -$lang->msg_alert_do_not_display_keyword_denied_word = '내용 혹은 제목에 사용이 금지된 단어가 있습니다. 관리자에게 문의하세요.'; $lang->msg_alert_registered_denied_ip = 'IP가 차단되었습니다. 사이트 관리자에게 문의 바랍니다.'; $lang->msg_alert_trackback_denied = '한 글에는 하나의 트랙백만 허용됩니다.'; $lang->cmd_interval = '글, 댓글 스팸 차단'; diff --git a/modules/spamfilter/spamfilter.model.php b/modules/spamfilter/spamfilter.model.php index e91351236..43c2fc698 100644 --- a/modules/spamfilter/spamfilter.model.php +++ b/modules/spamfilter/spamfilter.model.php @@ -90,29 +90,23 @@ class spamfilterModel extends spamfilter executeQuery('spamfilter.updateDeniedWordHit', $args); $config = $this->getConfig(); - if($config->display_keyword === 'Y') + + if($config->custom_message) { - $custom_message = sprintf(lang('msg_alert_denied_word'), $word); - } - else - { - if($config->custom_message) + if(preg_match('/^\\$user_lang->[a-zA-Z0-9]+$/', $config->custom_message)) { - if(preg_match('/^\\$user_lang->[a-zA-Z0-9]+$/', $config->custom_message)) - { - getController('module')->replaceDefinedLangCode($config->custom_message); - $custom_message = htmlspecialchars($config->custom_message); - } - else - { - $custom_message = $config->custom_message; - } + getController('module')->replaceDefinedLangCode($config->custom_message); + $custom_message = htmlspecialchars($config->custom_message); } else { - $custom_message = lang('spamfilter.msg_alert_do_not_display_keyword_denied_word'); + $custom_message = $config->custom_message; } } + else + { + $custom_message = sprintf(lang('msg_alert_denied_word'), $word); + } return new Object(-1, $custom_message); } diff --git a/modules/spamfilter/tpl/config_block.html b/modules/spamfilter/tpl/config_block.html index 62cd0f2ce..fcc73d30e 100644 --- a/modules/spamfilter/tpl/config_block.html +++ b/modules/spamfilter/tpl/config_block.html @@ -38,20 +38,6 @@

{$lang->cmd_check_trackback_help}

-
- -
- - -

{$lang->about_display_keyword}

-
-