mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8768 201d5d3c-b55e-5fd7-737f-ddc643e51545
39 lines
1.2 KiB
PHP
39 lines
1.2 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
|
|
* Output the list of banned IPs and words
|
|
**/
|
|
function dispSpamfilterAdminSetting() {
|
|
// Get configurations (using module model object)
|
|
$oModuleModel = &getModel('module');
|
|
$config = $oModuleModel->getModuleConfig('spamfilter');
|
|
|
|
// Get the list of denied IP addresses and words
|
|
$oSpamFilterModel = &getModel('spamfilter');
|
|
$ip_list = $oSpamFilterModel->getDeniedIPList();
|
|
$word_list = $oSpamFilterModel->getDeniedWordList();
|
|
|
|
Context::set('config',$config);
|
|
Context::set('ip_list', $ip_list);
|
|
Context::set('word_list', $word_list);
|
|
// Set a template file
|
|
$this->setTemplateFile('spSpamFilter');
|
|
}
|
|
}
|
|
?>
|