summaryrefslogtreecommitdiff
path: root/templates/mod/debug
diff options
context:
space:
mode:
authorMichael Save <savetheinternet@tinyboard.org>2012-08-27 02:28:04 +1000
committerMichael Save <savetheinternet@tinyboard.org>2012-08-27 02:28:04 +1000
commit6a705fd8c2324b642ac6bfc660d76cff6d5eab62 (patch)
tree7f916bebf46f66ed55569ea1456686524aebc192 /templates/mod/debug
parent1dcb385e9e3791d2d3c1d049fe9b8d906539088e (diff)
parentc919e7362542117f613c2800017ae89c269a07b5 (diff)
Merge branch 'mod-rewrite'
Conflicts: inc/lib/Twig/Extensions/Extension/Tinyboard.php install.php mod.php stylesheets/style.css templates/index.html templates/page.html templates/thread.html
Diffstat (limited to 'templates/mod/debug')
-rw-r--r--templates/mod/debug/antispam.html65
1 files changed, 65 insertions, 0 deletions
diff --git a/templates/mod/debug/antispam.html b/templates/mod/debug/antispam.html
new file mode 100644
index 00000000..a846bc17
--- /dev/null
+++ b/templates/mod/debug/antispam.html
@@ -0,0 +1,65 @@
+<p style="text-align:center">
+ Most used (in active):
+</p>
+<table class="modlog" style="width:700px;margin:auto">
+ <tr>
+ <th>Board</th>
+ <th>Thread</th>
+ <th>Hash (SHA1)</th>
+ <th>Created</th>
+ <th>Expires</th>
+ <th>Passed</th>
+ </tr>
+ {% for hash in top %}
+ <tr>
+ <td>{{ config.board_abbreviation|sprintf(hash.board) }}</td>
+ <td>
+ {% if hash.thread %}
+ {{ hash.thread }}
+ {% else %}
+ -
+ {% endif %}</td>
+ <td>
+ <small><code>{{ hash.hash }}</code></small>
+ </td>
+ <td>
+ <span title="{{ hash.created|date(config.post_date) }}">{{ hash.created|ago }} ago</span>
+ </td>
+ <td>
+ {% if hash.expires %}
+ <span title="{{ hash.expires|date(config.post_date) }}">
+ {{ hash.expires|until }}
+ </span>
+ {% else %}
+ -
+ {% endif %}
+ </td>
+ <td>{{ hash.passed }}</td>
+ </tr>
+ {% endfor %}
+</table>
+<p style="text-align:center">
+ Total: <strong>{{ total }}</strong> (<strong>{{ expiring }}</strong> set to expire)
+</p>
+
+<form method="post" action="?/debug/antispam">
+ <table class="modlog" style="width:1%;white-space:nowrap;margin:auto">
+ <tr>
+ <th>Board</th>
+ <th>Thread</th>
+ <th></th>
+ </tr>
+ <tr>
+ <td>
+ <input type="text" name="board" style="width:90px" value="{{ board }}">
+ </td>
+ <td>
+ <input type="text" name="thread" style="width:90px" value="{{ thread }}">
+ </td>
+ <td>
+ <input type="submit" name="filter" value="Filter">
+ <input type="submit" name="purge" value="Purge">
+ </td>
+ </tr>
+ </table>
+</form>