From 7d60f1ac8a996344f14edfcf751d965818df43d7 Mon Sep 17 00:00:00 2001 From: paul Date: Sun, 30 Oct 2011 16:26:10 +0000 Subject: [PATCH] introduced simple acl engine svn path=/trunk/; revision=18 --- Home.page | 14 +++++++++----- Tasks.page | 12 ++++++++++-- auth/acl.sh | 11 +++++++++++ auth/develop.user | 1 - index.cgi | 7 +++---- session.cgi | 5 ----- 6 files changed, 33 insertions(+), 17 deletions(-) create mode 100755 auth/acl.sh delete mode 100644 auth/develop.user diff --git a/Home.page b/Home.page index ba0fbe2..8f9d9dc 100644 --- a/Home.page +++ b/Home.page @@ -2,6 +2,10 @@ search="$(egrep -o '(^|&)(s=).+(&|$)' <<<"${QUERY_STRING}" |sed -r 's:^&?s=::;s:\+: :g;s:%:\\x:g')" search="$(echo -e "${search}" |sed 's:\t: :g;s:\r::g;s:\\:\\\\:g' |head -n1)" +[ -z "$ACL_EDITINTRO" ] && ACL_EDITINTRO=false +[ -z "$ACL_ADDNEWS" ] && ACL_ADDNEWS=false +[ -z "$ACL_EDITNEWS" ] && ACL_EDITNEWS=false + cat <
@@ -29,10 +33,10 @@ cat <
$([ -r "Home/intro" ] && _wiki "Home/intro") - $($ADM && echo "
Edit" ) + $($ACL_EDITINTRO && echo "
Edit" )
HomeEND -$ADM && cat <