Changeset 17734
- Timestamp:
- Oct 28, 2023, 6:24:45 PM (9 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/trunk/spam-filter/tracspamfilter/templates/admin_external.html
r17301 r17734 1 <!DOCTYPE html 2 PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 3 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 4 <html xmlns="http://www.w3.org/1999/xhtml" 5 xmlns:xi="http://www.w3.org/2001/XInclude" 6 xmlns:py="http://genshi.edgewall.org/" 7 xmlns:i18n="http://genshi.edgewall.org/i18n" i18n:domain="tracspamfilter"> 8 <xi:include href="admin.html" /> 1 {# Copyright (C) 2023 Dirk Stöcker 2 3 This software is licensed as described in the file COPYING, which 4 you should have received as part of this distribution. The terms 5 are also available at https://trac.edgewall.org/wiki/TracLicense. 6 7 This software consists of voluntary contributions made by many 8 individuals. For the exact contribution history, see the revision 9 history and logs, available at https://trac.edgewall.org/. 10 #} 11 # extends 'admin.html' 12 <!DOCTYPE html> 9 13 <head> 10 <title>External services</title> 14 <title> 15 # block admintitle 16 ${_("External services")} 17 #endblock admintitle 18 </title> 11 19 </head> 12 20 13 21 <body> 14 <h2>Spam Filtering: External services</h2> 15 16 <div py:if="error" class="system-message"> 17 <strong>An error checking supplied data occured, see below for details.</strong> 22 # block adminpanel 23 <h2>${_("Spam Filtering: External services")}</h2> 24 25 # if error: 26 <div class="system-message"> 27 <strong>${_("An error checking supplied data occured, see below for details.")}</strong> 18 28 </div> 29 19 30 20 31 <form class="mod" id="spamconfig" method="post" action=""> 21 32 <div class="field"> 22 33 <label> 23 <input type="checkbox" id="use_external" name="use_external" 24 checked="${use_external or None}" /> 25 Use external services 34 <input type="checkbox" id="use_external" name="use_external"${{'checked': use_external}|htmlattr}/> 35 ${_("Use external services")} 26 36 </label> 27 37 </div> … … 29 39 <div class="field"> 30 40 <label> 31 <input type="checkbox" id="train_external" name="train_external" 32 checked="${train_external or None}" /> 33 Train external services 41 <input type="checkbox" id="train_external" name="train_external"${{'checked': train_external}|htmlattr}/> 42 ${_("Train external services")} 34 43 </label> 35 44 <br/> 36 <label i18n:msg="spam, ham"> 45 # set skip_spam 46 <input type="text" id="skip_external" name="skip_external" size="3" value="${skip_external}" /> 47 # endset 48 # set skip_ham 49 <input type="text" id="skip_externalham" name="skip_externalham" size="3" value="${skip_externalham}" /> 50 # endset 51 <label> 52 # trans skip_spam, skip_ham 37 53 Skip external services, when internal tests reach a karma of - 38 Spam: 39 <input type="text" id="skip_external" name="skip_external" size="3" 40 value="${skip_external}" /> 41 Ham: 42 <input type="text" id="skip_externalham" name="skip_externalham" size="3" 43 value="${skip_externalham}" /> 54 Spam: ${skip_spam} 55 Ham: ${skip_ham} 56 # endtrans 44 57 </label> 45 58 <br/> 46 <label i18n:msg="spam, ham"> 59 # set stop_spam 60 <input type="text" id="stop_external" name="stop_external" size="3" value="${stop_external}" /> 61 # endset 62 # set stop_ham 63 <input type="text" id="stop_externalham" name="stop_externalham" size="3" value="${stop_externalham}" /> 64 # endset 65 <label> 66 # trans stop_spam, stop_ham 47 67 Stop external services, when reached a karma of - 48 Spam: 49 <input type="text" id="stop_external" name="stop_external" size="3"50 value="${stop_external}" />51 Ham:52 <input type="text" id="stop_externalham" name="stop_externalham" size="3"53 value="${stop_externalham}" />54 </label>55 </div>56 <fieldset>57 <legend xml:lang="en">Akismet</legend>58 <p class="hint" i18n:msg="">59 The Akismet filter uses the free60 <a class="ext-link" href="http://akismet.com/">Akismet</a>68 Spam: 69 70 71 72 73 > 74 > 75 76 > 77 78 <p class="hint"> 79 80 Akismet</a> 61 81 service to decide if content submissions are potential spam. You need to obtain an 62 82 API key to use the service, which is freely available for personal use. 63 </p> 64 <div class="field"> 65 <label>API key:<br /> 83 # endtrans 84 </p> 85 <div class="field"> 86 <label>${_("API key:")}<br /> 66 87 <input type="text" id="akismet_api_key" class="trac-fullwidth" 67 88 name="akismet_api_key" value="${akismet_api_key}" /> … … 69 90 </div> 70 91 <div class="field"> 71 <label> URL:<br />92 <label><br /> 72 93 <span xml:lang="en">http://</span><input type="text" id="akismet_api_url" name="akismet_api_url" size="40" 73 94 value="${akismet_api_url}" /> … … 75 96 </div> 76 97 77 <div py:if="akismeterror" class="system-message" i18n:msg="error"> 78 <strong>Key validation failed:</strong> ${akismeterror} 79 </div> 80 81 </fieldset> 82 83 <fieldset> 84 <legend xml:lang="en">StopForumSpam</legend> 85 <p class="hint" i18n:msg=""> 86 The StopForumSpam filter uses the 87 <a class="ext-link" 88 href="http://stopforumspam.com/">StopForumSpam</a> 98 # if akismeterror: 99 <div class="system-message"> 100 ${_("<strong>Key validation failed:</strong> %(error)s") % {'error' : akismeterror}} 101 </div> 102 # endif 103 104 </fieldset> 105 106 <fieldset> 107 <legend>${_("StopForumSpam")}</legend> 108 # set stopforumspam_link 109 <a class="ext-link" 110 href="https://stopforumspam.com/"> 111 # endset 112 <p class="hint"> 113 # trans stopforumspam_link 114 The StopForumSpam filter uses the ${stopforumspam_link}StopForumSpam</a> 89 115 service to decide if content submissions are potential spam. You need to obtain an 90 116 API key to report SPAM to the service, which is freely available. 91 </p> 92 <div class="field"> 93 <label>API key:<br /> 117 # endtrans 118 </p> 119 <div class="field"> 120 <label>${_("API key:")}<br /> 94 121 <input type="text" id="stopforumspam_api_key" class="trac-fullwidth" 95 122 name="stopforumspam_api_key" value="${stopforumspam_api_key}" /> … … 99 126 100 127 <fieldset> 101 <legend xml:lang="en">BotScout</legend> 102 <p class="hint" i18n:msg=""> 103 The BotScout filter uses the 104 <a class="ext-link" 105 href="http://botscout.com/">BotScout</a> 128 <legend>${_("BotScout")}</legend> 129 # set botscout_link 130 <a class="ext-link" href="https://botscout.com/"> 131 # endset 132 <p class="hint"> 133 # trans botscout_link 134 The BotScout filter uses the ${botscout_link}BotScout</a> 106 135 service to decide if content submissions are potential spam. You need to obtain an 107 136 API key to use the service, which is freely available. 108 </p> 109 <div class="field"> 110 <label>API key:<br /> 137 # endtrans 138 </p> 139 <div class="field"> 140 <label>${_("API key:")}<br /> 111 141 <input type="text" id="botscout_api_key" class="trac-fullwidth" 112 142 name="botscout_api_key" value="${botscout_api_key}" /> … … 116 146 117 147 <fieldset> 118 <legend xml:lang="en">FSpamList</legend> 119 <p class="hint" i18n:msg=""> 120 The FSpamList filter uses the 121 <a class="ext-link" href="http://www.fspamlist.com/">FSpamList</a> 148 <legend>${_("FSpamList")}</legend> 149 # set fspamlist_link 150 <a class="ext-link" href="https://www.fspamlist.com/"> 151 # endset 152 <p class="hint"> 153 # trans fspamlist_link 154 The FSpamList filter uses the ${fspamlist_link}FSpamList</a> 122 155 service to decide if content submissions are potential spam. You need to obtain an 123 156 API key to use the service, which is freely available. 124 </p> 125 <div class="field"> 126 <label>API key:<br /> 157 # endtrans 158 </p> 159 <div class="field"> 160 <label>${_("API key:")}<br /> 127 161 <input type="text" id="fspamlist_api_key" class="trac-fullwidth" 128 162 name="fspamlist_api_key" value="${fspamlist_api_key}" /> … … 131 165 </fieldset> 132 166 133 <fieldset py:if="blacklists"> 134 <legend xml:lang="en">HTTP:BL</legend> 135 <p class="hint" i18n:msg=""> 136 The HTTP_BL filter uses the free 137 <a class="ext-link" 138 href="http://www.projecthoneypot.org/httpbl.php">HTTP:BL</a> 167 # if blacklists: 168 <fieldset> 169 <legend>${_("HTTP:BL")}</legend> 170 # set httpbl_link 171 <a class="ext-link" href="https://www.projecthoneypot.org/httpbl.php"> 172 # endset 173 <p class="hint"> 174 # trans httpbl_link 175 The HTTP_BL filter uses the free ${httpbl_link}HTTP:BL</a> 139 176 service to decide if content submissions are potential spam. You need to obtain an 140 177 API key to use the service, which is freely available for personal use. 141 </p> 142 <div class="field"> 143 <label>API key:<br /> 178 # endtrans 179 </p> 180 <div class="field"> 181 <label>${_("API key:")}<br /> 144 182 <input type="text" id="httpbl_api_key" class="trac-fullwidth" 145 183 name="httpbl_api_key" value="${httpbl_api_key}" /> … … 147 185 </div> 148 186 </fieldset> 149 150 <div py:if="unknownsourceerror" class="system-message" i18n:msg="error"> 151 <strong>Key validation failed:</strong> ${unknownsourceerror} 187 # endif 188 189 # if unknownsourceerror: 190 <div class="system-message"> 191 ${_("<strong>Key validation failed:</strong> %(error)s") % {'error' : unknownsourceerror}} 152 192 </div> 153 154 <fieldset py:if="blacklists"> 155 <legend>Free access blacklists</legend> 156 <div class="field"> 157 <label>IPv4 Blacklists (comma separated):<br /> 193 # endif 194 195 # if blacklists: 196 <fieldset> 197 <legend>${_("Free access blacklists")}</legend> 198 <div class="field"> 199 <label>${_("IPv4 Blacklists (comma separated):")}<br /> 158 200 <input type="text" id="ip_blacklist_servers" 159 201 name="ip_blacklist_servers" size="80" 160 202 value="${ip_blacklist_servers}" /> 161 <span i18n:msg="list">(default: ${ip_blacklist_default})</span><br/>162 </label> 163 164 <label> IPv6 Blacklists (comma separated):<br />203 <span</span><br/> 204 </label> 205 206 <label><br /> 165 207 <input type="text" id="ip6_blacklist_servers" 166 208 name="ip6_blacklist_servers" size="80" 167 209 value="${ip6_blacklist_servers}" /> 168 <span i18n:msg="list">(default: ${ip6_blacklist_default})</span><br/>169 </label> 170 171 <label> URL Blacklists (comma separated):<br />210 <span</span><br/> 211 </label> 212 213 <label><br /> 172 214 <input type="text" id="url_blacklist_servers" 173 215 name="url_blacklist_servers" size="80" 174 216 value="${url_blacklist_servers}" /> 175 <span i18n:msg="list">(default: ${url_blacklist_default})</span><br/> 176 </label> 177 <span i18n:msg="">A list of DNS blacklists can be found at the <a href="http://www.unifiedemail.net/Tools/RBLCheck/">RBLCheck</a> 178 or <a href="http://multirbl.valli.org/lookup/">MultiRBL</a> services.</span> 179 </div> 180 </fieldset> 181 182 <p class="hint" i18n:msg=""> 217 <span>${_("(default: %(list)s)") % {'list': url_blacklist_default}}</span><br/> 218 </label> 219 # set rblcheck_link 220 <a href="https://www.blacklistmaster.com/check"> 221 # endset 222 # set multirbl_link 223 <a href="https://multirbl.valli.org/lookup/"> 224 # endset 225 <span> 226 # trans rblcheck_link, multirbl_link 227 A list of DNS blacklists can be found e.g. at the ${rblcheck_link}RBLCheck</a> 228 or ${multirbl_link}MultiRBL</a> services. 229 # endtrans 230 </span> 231 </div> 232 </fieldset> 233 # endif 234 235 <p class="hint"> 236 # trans 183 237 You can enable or disable these filters from the “<em>General → 184 238 Plugins</em>” panel of the web administration interface. 239 185 240 </p> 186 241 187 242 </fieldset> 188 243 <div class="buttons"> 189 <input type="submit" value="${dgettext('tracspamfilter', 'Apply changes')}" /> 190 <input py:if="error" type="submit" name="cancel" 191 value="${dgettext('tracspamfilter', 'Revert changes')}" /> 244 <input type="submit" value="${_('Apply changes')}" /> 245 # if error: 246 <input type="submit" name="cancel" value="${_('Revert changes')}" /> 247 # endif 192 248 </div> 193 249 </form> 194 250 # endblock adminpanel 195 251 </body> 196 197 252 </html>
Note:
See TracChangeset
for help on using the changeset viewer.