XpressEngine Core  1.11.2
 All Classes Namespaces Files Functions Variables Pages
spamfilter.admin.view.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (C) NAVER <http://www.navercorp.com> */
9 {
13  function init()
14  {
15  // Set template path
16  $this->setTemplatePath($this->module_path.'tpl');
17  }
18 
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 
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 
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 */
setTemplateFile($filename)
$oModuleModel
Definition: ko.install.php:236
dispSpamfilterAdminDeniedIPList()
Output the list of banned IPs.
The parent class of the spamfilter module.
set($key, $val, $set_to_get_vars=0)
The admin view class of the spamfilter module.
dispSpamfilterAdminConfigBlock()
Configure auto block.
dispSpamfilterAdminDeniedWordList()
Output the list of banned words.
getModel($module_name)
Definition: func.inc.php:145