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/branches/1.5.0_english@8278 201d5d3c-b55e-5fd7-737f-ddc643e51545
56 lines
1.7 KiB
PHP
56 lines
1.7 KiB
PHP
<?php
|
|
/**
|
|
* @class spamfilterAdminView
|
|
* @author NHN (developers@xpressengine.com)
|
|
* @brief The admin view class of the spamfilter module
|
|
**/
|
|
|
|
class spamfilterAdminView extends spamfilter {
|
|
|
|
/**
|
|
* @brief Initialization
|
|
**/
|
|
function init() {
|
|
// Set template path
|
|
$this->setTemplatePath($this->module_path.'tpl');
|
|
}
|
|
|
|
/**
|
|
* @brief Spam Filter configurations
|
|
**/
|
|
function dispSpamfilterAdminConfig() {
|
|
// Get configurations (using module model object)
|
|
$oModuleModel = &getModel('module');
|
|
$config = $oModuleModel->getModuleConfig('spamfilter');
|
|
Context::set('config',$config);
|
|
// Set a template file
|
|
$this->setTemplateFile('index');
|
|
}
|
|
|
|
/**
|
|
* @brief Output the list of banned IPs
|
|
**/
|
|
function dispSpamfilterAdminDeniedIPList() {
|
|
// Get the list of banned IP addresses
|
|
$oSpamFilterModel = &getModel('spamfilter');
|
|
$ip_list = $oSpamFilterModel->getDeniedIPList();
|
|
|
|
Context::set('ip_list', $ip_list);
|
|
// Set a template file
|
|
$this->setTemplateFile('denied_ip_list');
|
|
}
|
|
|
|
/**
|
|
* @brief Output the list of prohibited words
|
|
**/
|
|
function dispSpamfilterAdminDeniedWordList() {
|
|
// Get the list of prohibited words
|
|
$oSpamFilterModel = &getModel('spamfilter');
|
|
$word_list = $oSpamFilterModel->getDeniedWordList();
|
|
|
|
Context::set('word_list', $word_list);
|
|
// Set a template file
|
|
$this->setTemplateFile('denied_word_list');
|
|
}
|
|
}
|
|
?>
|