XpressEngine Core
1.11.2
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Pages
modules
spamfilter
spamfilter.admin.view.php
Go to the documentation of this file.
1
<?php
2
/* Copyright (C) NAVER <http://www.navercorp.com> */
8
class
spamfilterAdminView
extends
spamfilter
9
{
13
function
init
()
14
{
15
// Set template path
16
$this->
setTemplatePath
($this->module_path.
'tpl'
);
17
}
18
22
function
dispSpamfilterAdminDeniedIPList
()
23
{
24
// Get the list of denied IP addresses and words
25
$oSpamFilterModel =
getModel
(
'spamfilter'
);
26
$ip_list = $oSpamFilterModel->getDeniedIPList();
27
Context::set
(
'ip_list'
, $ip_list);
28
29
$security =
new
Security
();
30
$security->encodeHTML(
'ip_list..'
);
31
32
// Set a template file
33
$this->
setTemplateFile
(
'denied_ip_list'
);
34
35
}
36
40
function
dispSpamfilterAdminDeniedWordList
()
41
{
42
// Get the list of denied IP addresses and words
43
$oSpamFilterModel =
getModel
(
'spamfilter'
);
44
$word_list = $oSpamFilterModel->getDeniedWordList();
45
Context::set
(
'word_list'
, $word_list);
46
47
$security =
new
Security
();
48
$security->encodeHTML(
'word_list..word'
);
49
50
// Set a template file
51
$this->
setTemplateFile
(
'denied_word_list'
);
52
}
53
57
function
dispSpamfilterAdminConfigBlock
()
58
{
59
// Get configurations (using module model object)
60
$oModuleModel
=
getModel
(
'module'
);
61
$config =
$oModuleModel
->getModuleConfig(
'spamfilter'
);
62
Context::set
(
'config'
,$config);
63
64
$this->
setTemplateFile
(
'config_block'
);
65
}
66
}
67
/* End of file spamfilter.admin.view.php */
68
/* Location: ./modules/spamfilter/spamfilter.admin.view.php */
ModuleObject\setTemplateFile
setTemplateFile($filename)
Definition:
ModuleObject.class.php:252
$oModuleModel
$oModuleModel
Definition:
ko.install.php:236
spamfilterAdminView\dispSpamfilterAdminDeniedIPList
dispSpamfilterAdminDeniedIPList()
Output the list of banned IPs.
Definition:
spamfilter.admin.view.php:22
spamfilter
The parent class of the spamfilter module.
Definition:
spamfilter.class.php:8
Context\set
set($key, $val, $set_to_get_vars=0)
Definition:
Context.class.php:1948
spamfilterAdminView
The admin view class of the spamfilter module.
Definition:
spamfilter.admin.view.php:8
spamfilterAdminView\dispSpamfilterAdminConfigBlock
dispSpamfilterAdminConfigBlock()
Configure auto block.
Definition:
spamfilter.admin.view.php:57
spamfilterAdminView\dispSpamfilterAdminDeniedWordList
dispSpamfilterAdminDeniedWordList()
Output the list of banned words.
Definition:
spamfilter.admin.view.php:40
Security
Definition:
Security.class.php:11
spamfilterAdminView\init
init()
Initialization.
Definition:
spamfilter.admin.view.php:13
getModel
getModel($module_name)
Definition:
func.inc.php:145
ModuleObject\setTemplatePath
setTemplatePath($path)
Definition:
ModuleObject.class.php:275
Generated on Tue Dec 18 2018 17:04:29 for XpressEngine Core by
1.8.5