mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 08:49:56 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@1655 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
876fa71ae0
commit
633694cb27
1 changed files with 5 additions and 3 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue