From 3617f847fef76cab39e4094d12c380dcba057634 Mon Sep 17 00:00:00 2001 From: Uriel Date: Tue, 20 Oct 2009 02:09:55 +0200 Subject: [PATCH] Anon posting for bridge. --- apps/bridge/app.rc | 9 +++++++++ apps/bridge/foot.tpl | 12 +++++++++++- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/apps/bridge/app.rc b/apps/bridge/app.rc index 035fa73..c94810c 100644 --- a/apps/bridge/app.rc +++ b/apps/bridge/app.rc @@ -5,6 +5,9 @@ fn conf_enable_comments { allow_new_user_comments=yes shift } + if not if(~ $1 -a) { + bridge_anon_comments=yes + } enable_comments=yes groups_allowed_comments=$* conf_enable_app bridge @@ -67,6 +70,12 @@ fn mk_new_comment { if not _status=$status } + if not if(! ~ $#bridge_anon_comments 0) { + if(~ $"post_arg_ima_robot 'not') + u='Glenda' # Anonymous + if not + _status='You are a robot!' + } if not _status='You need to log in to comment.' } diff --git a/apps/bridge/foot.tpl b/apps/bridge/foot.tpl index 643086f..575b4a3 100644 --- a/apps/bridge/foot.tpl +++ b/apps/bridge/foot.tpl @@ -6,7 +6,8 @@
-% if(~ $#logged_user 0 && ! ~ $#allow_new_user_comments 0) { +% if(~ $#logged_user 0) { +% if(~ $#allow_new_user_comments 1) { @@ -21,5 +22,14 @@
Enter your desired user name/password and after your comment has been reviewed by an admin it will be posted and your account will be enabled. If you are already registered please login before posting.
+% } +% if not if(~ $#bridge_anon_comments 1) { + +% } % }