From: paul Date: Sun, 30 Oct 2011 16:26:10 +0000 (+0000) Subject: introduced simple acl engine X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=7d60f1ac8a996344f14edfcf751d965818df43d7;p=busy introduced simple acl engine svn path=/trunk/; revision=18 --- 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 <