1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90
|
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:py="http://genshi.edgewall.org/">
<xi:include href="admin.html" />
<head>
<title>Spam Filter</title>
<script type="text/javascript">
$(document).ready(function() {
$("#logging_enabled").click(function() {
$("#purge_age").enable(this.checked);
}).click();
});
</script>
</head>
<body>
<h2>Spam Filtering: Configuration</h2>
<form class="mod" id="spamconfig" method="post">
<fieldset id="karmatuning">
<legend>Karma Tuning</legend>
<div class="field">
<label>
Minimum karma required for a successful submission:
<input type="text" id="min_karma" name="min_karma" size="3"
value="${min_karma}" />
</label>
</div>
<p class="hint">
Content submissions are passed through a set of registered and enabled
<em>filter strategies</em>, each of which check the submitted content
and may assign <em>karma points</em> to it. The sum of these karma
points needs to be greater than or equal to the minimum karma
configured here for the submission to be accepted.
</p>
<table class="listing" id="karmapoints">
<thead><tr>
<th>Strategy</th>
<th>Karma points</th>
<th>Description</th>
</tr></thead>
<tr py:for="strategy in strategies">
<th>${strategy.name}</th>
<td>
<input type="text" name="${strategy.name}_karmapoints"
value="${strategy.karma_points}" size="3" />
</td>
<td><p class="hint">${strategy.karma_help}</p></td>
</tr>
</table>
</fieldset>
<fieldset id="logging">
<legend>Logging</legend>
<div class="field">
<label>
<input type="checkbox" id="logging_enabled" name="logging_enabled"
checked="${logging_enabled or None}" />
Enable
</label>
</div>
<p class="hint">
The spam filter plugin can optionally log every content submission so
that you can monitor and tune the effectiveness of the filtering. The
log is stored in the database, and can be viewed under “<em>Spam
Filtering → Monitoring</em>” from the web administration
interface.
</p>
<div class="field">
<label>
Purge old entries after
<input type="text" id="purge_age" name="purge_age" size="3"
value="${purge_age}" />
days
</label>
</div>
</fieldset>
<div class="buttons">
<input type="submit" value="Apply changes" />
</div>
</form>
</body>
</html>
|