Various small cleanups: remove unused code, clarity and reliability fixes here and here, move code to more appropriate locations, improve some comments.

This commit is contained in:
Uriel 2009-01-12 02:07:31 +01:00
parent 76bd359a11
commit ae20a466a3
4 changed files with 46 additions and 72 deletions

View file

@ -9,7 +9,7 @@ if(~ $REQUEST_METHOD POST && ! ~ $#target_blog_dir 0 && ! ~ $#post_title 0) {
if(~ $#blog_editors_group 0)
echo Cant post to $target_blog_dir, no editors group set.
if not if (! check_user $blog_editors_group)
if not if(! check_user $blog_editors_group)
echo Post to $target_blog_dir denied, user $logged_user not in group $blog_editors_group
if not if(! make_blog_post $target_blog_dir $post_title $post_body)
echo Posting to $target_blog_dir failed: $status