restore bridge app
This commit is contained in:
parent
c2856daa25
commit
649e5dff17
11
apps/bridge/app.rc
Executable file → Normal file
11
apps/bridge/app.rc
Executable file → Normal file
|
@ -65,17 +65,14 @@ fn mk_new_comment {
|
|||
u=$post_arg_comment_user':'$post_arg_comment_passwd
|
||||
dir=$comments_dir^'_pending'
|
||||
# XXX: This doesn't work because we then do a redirect.
|
||||
# NN: Now it works, but the notify_notes has to be not-empty.
|
||||
# Kind of a hack, because I'm not really that familiar with rc.
|
||||
notify_notes='Saved commend.'
|
||||
_status='Saved comment and registration info, they will be enabled when approved by an admin.'
|
||||
notify_notes='Saved comment and registration info, they will be enabled when approved by an admin.'
|
||||
}
|
||||
if not
|
||||
_status=$status
|
||||
}
|
||||
if not if(! ~ $#bridge_anon_comments 0) {
|
||||
if(~ $"post_arg_ima_robot 'not')
|
||||
u='Anonymous' # Anonymous
|
||||
u='Glenda' # Anonymous
|
||||
if not
|
||||
_status='You are a robot!'
|
||||
}
|
||||
|
@ -87,8 +84,7 @@ fn mk_new_comment {
|
|||
if not
|
||||
_status='You are not a member of a group allowed to comment.'
|
||||
|
||||
# if(~ $#_status 0) {
|
||||
if (~ $#notify_notes 1){
|
||||
if(~ $#_status 0) {
|
||||
umask 002
|
||||
|
||||
dir=$dir'/'`{date -n} # FIXME Obvious race
|
||||
|
@ -105,4 +101,3 @@ fn mk_new_comment {
|
|||
notify_errors=$_status
|
||||
status=$_status
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user