mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 10:41:40 +09:00
54 lines
1.4 KiB
PHP
54 lines
1.4 KiB
PHP
<?php
|
|
/**
|
|
* @class spamfilterView
|
|
* @author zero (zero@nzeo.com)
|
|
* @brief spamfilter 모듈의 View class
|
|
**/
|
|
|
|
class spamfilterView extends spamfilter {
|
|
|
|
/**
|
|
* @brief 초기화
|
|
**/
|
|
function init() {
|
|
// 템플릿 경로 지정
|
|
$this->setTemplatePath($this->module_path.'tpl.admin');
|
|
}
|
|
|
|
/**
|
|
* @brief 스팸필터의 설정 화면
|
|
**/
|
|
function dispConfig() {
|
|
// 템플릿 파일 지정
|
|
$this->setTemplateFile('index');
|
|
}
|
|
|
|
/**
|
|
* @brief 금지 목록 출력
|
|
**/
|
|
function dispDeniedIPList() {
|
|
// 등록된 금지 IP 목록을 가져옴
|
|
$oSpamFilterModel = &getModel('spamfilter');
|
|
$ip_list = $oSpamFilterModel->getDeniedIPList();
|
|
|
|
Context::set('ip_list', $ip_list);
|
|
|
|
// 템플릿 파일 지정
|
|
$this->setTemplateFile('denied_ip_list');
|
|
}
|
|
|
|
/**
|
|
* @brief 금지 목록 출력
|
|
**/
|
|
function dispDeniedWordList() {
|
|
// 등록된 금지 Word 목록을 가져옴
|
|
$oSpamFilterModel = &getModel('spamfilter');
|
|
$word_list = $oSpamFilterModel->getDeniedWordList();
|
|
|
|
Context::set('word_list', $word_list);
|
|
|
|
// 템플릿 파일 지정
|
|
$this->setTemplateFile('denied_word_list');
|
|
}
|
|
}
|
|
?>
|