~ubuntu-branches/ubuntu/wily/tdiary/wily

« back to all changes in this revision

Viewing changes to plugin/en/10spamfilter.rb

  • Committer: Bazaar Package Importer
  • Author(s): Daigo Moriwaki
  • Date: 2011-04-11 21:53:16 UTC
  • mfrom: (1.2.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20110411215316-ih4gt4q8p29d2wf8
Tags: 3.0.1-1
* New upstream release (Closes: #542801, #594947)
* debian/control:
 - Bumped up Standards-Version to 3.9.1.
 - Updated version dependency.
* debian/tdiary-setup.rb: Followed the upstream changes, incorporating js and
  index.fcgi

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -*- coding: utf-8; -*-
1
2
#
2
 
# en/spamfilter.rb: resource of en $Revision: 1.14 $
 
3
# en/10spamfilter.rb: resource of en
3
4
#
4
5
 
5
6
@spamfilter_label_conf = 'spam filter'
 
7
@dnsblfilter_label_conf = 'DNSBL filter'
6
8
 
7
9
def spamfilter_conf_html
8
10
        r = <<-HTML
53
55
                        <option value="false"#{" selected" unless @conf['spamfilter.resolv_check_mode']}>dispose</option>
54
56
                </select>
55
57
        </p>
56
 
   <h3>Domain Blacklist Services</h3>
57
 
   <p>List of Domain Blacklist Services</p>
58
 
   <p><textarea name="spamlookup.domain.list" cols="70" rows="5">#{h @conf['spamlookup.domain.list']}</textarea></p>
59
 
   <p>List of Safe Domain. Example for search engine.</p>
60
 
   <p><textarea name="spamlookup.safe_domain.list" cols="70" rows="5">#{h @conf['spamlookup.safe_domain.list']}</textarea></p>
61
 
   <h3>Description of TSUKKOMI</h3>
62
 
   <p>Show messeges and spam conditions for your subscribers.<br><textarea name="comment_description" cols="70" rows="5">#{h comment_description}</textarea></p>
63
 
   HTML
 
58
        <h3>Description of TSUKKOMI</h3>
 
59
        <p>Show messeges and spam conditions for your subscribers.<br><textarea name="comment_description" cols="70" rows="5">#{h comment_description}</textarea></p>
 
60
        HTML
64
61
 
65
62
        unless @conf.secure then
66
63
        r << <<-HTML
71
68
                        <option value="1"#{" selected" if @conf['filter.debug_mode'] == 1}>Only spam</option>
72
69
                        <option value="2"#{" selected" if @conf['filter.debug_mode'] == 2}>Full</option>
73
70
                </select></p>
74
 
        <p>File name of debug log.<br>
75
 
                <input type="text" name="spamfilter.debug_file" value="#{h( @conf['filter.debug_file'] || '' )}" size="30"></p>
76
71
        HTML
77
72
        end
78
73
 
79
74
        r
80
75
end
 
76
 
 
77
def dnsblfilter_conf_html
 
78
        r = <<-HTML
 
79
        <h3>Domain Blacklist Services</h3>
 
80
        <p>List of IP based Domain Blacklist Services</p>
 
81
        <p><textarea name="spamlookup.ip.list" cols="70" rows="5">#{h @conf['spamlookup.ip.list']}</textarea></p>
 
82
        <p>List of Domain Blacklist Services</p>
 
83
        <p><textarea name="spamlookup.domain.list" cols="70" rows="5">#{h @conf['spamlookup.domain.list']}</textarea></p>
 
84
        <p>List of Safe Domain. Example for search engine.</p>
 
85
        <p><textarea name="spamlookup.safe_domain.list" cols="70" rows="10">#{h @conf['spamlookup.safe_domain.list']}</textarea></p>
 
86
        HTML
 
87
 
 
88
        r
 
89
end
 
90
 
 
91
# Local Variables:
 
92
# mode: ruby
 
93
# indent-tabs-mode: t
 
94
# tab-width: 3
 
95
# ruby-indent-level: 3
 
96
# End: