gerv%gerv.net d33b76fcce Add simple CAPTCHA support
git-svn-id: svn://10.0.0.236/trunk@230324 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-19 21:26:51 +00:00

82 lines
2.5 KiB
Cheetah

[%# ***** BEGIN LICENSE BLOCK *****
# Version: MPL 1.1
#
# The contents of this file are subject to the Mozilla Public License Version
# 1.1 (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
# http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
# for the specific language governing rights and limitations under the
# License.
#
# The Original Code is the Hendrix Feedback System.
#
# The Initial Developer of the Original Code is
# Gervase Markham.
# Portions created by the Initial Developer are Copyright (C) 2004
# the Initial Developer. All Rights Reserved.
#
# Contributor(s):
#
# The Initial Developer wrote this software to the Glory of God.
# ***** END LICENSE BLOCK ***** %]
[% PROCESS header.html.tmpl
title = "Hendrix - Error" %]
<p>Unfortunately, there is a problem with your submission, as follows:
</p>
[% SWITCH error %]
[% CASE "bad_parameters" %]
<p class="error">
You need to fill in all the required fields - name, product, summary
and your actual feedback.
</p>
<p>Please press Back and fill in the missing field(s).</p>
[% CASE "cant_post" %]
<p class="error">
We are unable to send your feedback to the server.
</p>
<p>Please try again later. Your feedback is reproduced below so you can
save it somewhere.</p>
<pre>
[% message FILTER html %]
</pre>
[% CASE "like_spam" %]
<p class="error">
Sorry, your message looks like some spam we've been receiving. Please
press Back, change the Summary to something else and try again.
</p>
[% CASE "captcha_error" %]
<p class="error">
Sorry, you didn't correctly calculate the sum. We ask you to answer
this question to prevent
spammers using our form. Please press Back, check your maths and try again.
</p>
[% CASE "rbl_hit" %]
<p class="error">
Your internet address is in a list of known open proxies. We consult this
list in an effort to stop spammers from using this form. If you are not a
spammer, please send this information to your Internet Service Provider
(ISP).<br>
[% FOREACH hit IN rbl_results.keys %]
<b>[% hit %]</b> - [% rbl_results.$hit %]<br>
[% END %]
</p>
[% CASE DEFAULT %]
The error is unknown. Please try again later.
[% END %]
[% PROCESS footer.html.tmpl %]