Introduction
Introduction Statistics Contact Development Disclaimer Help
Fix anon posting, make 'pseudo-captcha' more fun and slightly harder. - swerc -…
git clone git://git.suckless.org/swerc
Log
Files
Refs
README
---
commit 2b40816f676dc0572820755950759a3ce6766837
parent b34adc30196dd0ace7e1d18f8369db3648201ef2
Author: [email protected] <unknown>
Date: Tue, 20 Oct 2009 02:28:10 +0200
Fix anon posting, make 'pseudo-captcha' more fun and slightly harder.
Diffstat:
M apps/bridge/app.rc | 2 +-
M apps/bridge/foot.tpl | 10 ++++++----
2 files changed, 7 insertions(+), 5 deletions(-)
---
diff --git a/apps/bridge/app.rc b/apps/bridge/app.rc
@@ -20,7 +20,7 @@ fn bridge_init {
if(~ $REQUEST_METHOD GET && test -d $comments_dir)
ll_add handlers_body_foot template apps/bridge/comments_list.tpl
- if(check_user $groups_allowed_comments || {~ $#logged_user 0 && ! ~ $#…
+ if(check_user $groups_allowed_comments || {~ $#logged_user 0 && ~ 1 $#…
if(~ $#post_arg_bridge_post 1) {
ll_add handlers_body_foot template apps/bridge/foot.tpl
diff --git a/apps/bridge/foot.tpl b/apps/bridge/foot.tpl
@@ -24,10 +24,12 @@
</div>
% }
% if not if(~ $#bridge_anon_comments 1) {
- <label>Are you a robot?
- <select>
- <option value="yes">Yes</option>
- <option value="no">No</option>
+ <label>Is <a href="http://glenda.cat-v.org">Glenda a cute bunny</a>?
+ <select name='ima_robot'>
+ <option value="yes">No</option>
+ <option value="not">Yes</option>
+ <option value="foobar">I hate bunnies!</option>
+ <option value="robot">I'm a robot!</option>
</select>
</label>
% }
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.