changelog shortlog tags branches files raw gz bz2 help

Mercurial > hg > werc / changeset: Fix anon posting, make 'pseudo-captcha' more fun and slightly harder.

changeset 601: 19aa387ec1a0
parent 600: 4539504f023c
child 602: 78f04ff85404
child 604: a32822f992d2
tag:1.2.3
author: uriel@vm41.cat-v.org
date: Tue, 20 Oct 2009 02:28:10 +0200
files: apps/bridge/app.rc apps/bridge/foot.tpl
description: Fix anon posting, make 'pseudo-captcha' more fun and slightly harder.
     1.1--- a/apps/bridge/app.rc	Tue Oct 20 02:13:23 2009 +0200
     1.2+++ b/apps/bridge/app.rc	Tue Oct 20 02:28:10 2009 +0200
     1.3@@ -20,7 +20,7 @@
     1.4         if(~ $REQUEST_METHOD GET && test -d $comments_dir)
     1.5             ll_add handlers_body_foot template apps/bridge/comments_list.tpl
     1.6 
     1.7-        if(check_user $groups_allowed_comments || {~ $#logged_user 0 && ! ~ $#allow_new_user_comments 0}) {
     1.8+        if(check_user $groups_allowed_comments || {~ $#logged_user 0 && ~ 1 $#allow_new_user_comments $#bridge_anon_comments}) {
     1.9 
    1.10             if(~ $#post_arg_bridge_post 1) {
    1.11                 ll_add handlers_body_foot template apps/bridge/foot.tpl
     2.1--- a/apps/bridge/foot.tpl	Tue Oct 20 02:13:23 2009 +0200
     2.2+++ b/apps/bridge/foot.tpl	Tue Oct 20 02:28:10 2009 +0200
     2.3@@ -24,10 +24,12 @@
     2.4     </div>
     2.5 %   }
     2.6 %   if not if(~ $#bridge_anon_comments 1) {
     2.7-    <label>Are you a robot? 
     2.8-        <select>
     2.9-        <option value="yes">Yes</option>
    2.10-        <option value="no">No</option>
    2.11+    <label>Is <a href="http://glenda.cat-v.org">Glenda a cute bunny</a>?
    2.12+        <select name='ima_robot'>
    2.13+        <option value="yes">No</option>
    2.14+        <option value="not">Yes</option>
    2.15+        <option value="foobar">I hate bunnies!</option>
    2.16+        <option value="robot">I'm a robot!</option>
    2.17         </select>
    2.18     </label>
    2.19 %   }