X-Git-Url: http://git.plutz.net/?a=blobdiff_plain;f=Wiki.page;h=c8034897b2bce641e788fe81ec0bf3453af648c5;hb=b7a135aa4811947e2187efa19d1b1721b43c4dfa;hp=9e135ad1ae1bee697e693724458aa593f667aa2e;hpb=23dcf57a7ef4dbc488712bc510f4fc5e778404e9;p=busy diff --git a/Wiki.page b/Wiki.page index 9e135ad..c803489 100755 --- a/Wiki.page +++ b/Wiki.page @@ -6,6 +6,8 @@ rev="$(egrep -o '(^|&)(r=)[0-9]{10}(&|$)' <<<"${QUERY_STRING}" |tr -d '&r=')" 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_WIKIEDIT" ] && ACL_WIKIEDIT=false + [ -n "$rev" ] && rev=".$rev" if [ -n "$search" ]; then info='' @@ -24,7 +26,7 @@ fi if [ -n "$edit" -a -r "Wiki/${edit}${rev}" ]; then title="$(egrep -x 'title=.+' "Wiki/$edit.meta" |cut -d= -f2- || echo '(Untitled)')" cat < +
Editing $title
@@ -68,10 +70,10 @@ elif [ -n "$info" -a -r "Wiki/${info}${rev}" ]; then done) Latest

$($LOGIN && if [ -z "$lock" ]; then - [ -z "$rev" ] && echo "edit this page" - [ -n "$rev" ] && echo "Click edit to derive a new page revision from this one." + [ -z "$rev" ] && echo "edit this page" + [ -n "$rev" ] && echo "Click edit to derive a new page revision from this one." else - echo "This page is currently being edited by $lockedit anyway" + echo "This page is currently being edited by $lockedit anyway" fi $LOGIN && echo '
')

Table of Content

@@ -100,7 +102,7 @@ WikiEND $LOGIN && cat <Comment / Ask