git-svn-id: http://xe-core.googlecode.com/svn/trunk@1655 201d5d3c-b55e-5fd7-737f-ddc643e51545

This commit is contained in:
zero 2007-06-19 04:53:04 +00:00
parent 876fa71ae0
commit 633694cb27

View file

@ -14,12 +14,14 @@
if($called_position != 'before_module_proc') return;
// 이 애드온이 동작할 대상 (이 부분은 특별히 정해진 규약이 없다)
$effecived_target = array(
'board' => array('procInsertDocument', 'procInsertComment', 'procReceiveTrackback'),
$effecived_target_act = array(
'procBoardInsertDocument', 'procBoardInsertComment',
'procBlogInsertComment',
'trackback',
);
// spam filter모듈이 적용될 module+act를 체크
if(!in_array($this->act, $effecived_target[$this->module])) return;
if(!in_array($this->act, $effecived_target_act)) return;
// 각 모듈별 act에 대해서도 피해갈 부분이 있으면 피해감
switch($this->act) {