From 253ef222fcb75e4d612a1371059c39840356f453 Mon Sep 17 00:00:00 2001 From: Uriel Date: Tue, 20 Oct 2009 02:28:10 +0200 Subject: [PATCH] Fix anon posting, make 'pseudo-captcha' more fun and slightly harder. --- apps/bridge/app.rc | 2 +- apps/bridge/foot.tpl | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/apps/bridge/app.rc b/apps/bridge/app.rc index c94810c..72690c5 100644 --- 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 && ! ~ $#allow_new_user_comments 0}) { + if(check_user $groups_allowed_comments || {~ $#logged_user 0 && ~ 1 $#allow_new_user_comments $#bridge_anon_comments}) { 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 index 575b4a3..4acd0b6 100644 --- a/apps/bridge/foot.tpl +++ b/apps/bridge/foot.tpl @@ -24,10 +24,12 @@ % } % if not if(~ $#bridge_anon_comments 1) { - % }