X-Git-Url: http://git.plutz.net/?p=busy;a=blobdiff_plain;f=index.cgi;h=6084c3e04902543ff56d5eadef0d0f3bc105f8ad;hp=1612a9fb89d42c75dd024c4858f6a15fa97f7345;hb=ab208fff56e536585bc0978898a7c3f610c73dce;hpb=7d60f1ac8a996344f14edfcf751d965818df43d7 diff --git a/index.cgi b/index.cgi index 1612a9f..6084c3e 100755 --- a/index.cgi +++ b/index.cgi @@ -18,7 +18,7 @@ umask=002 alias _wiki="stx2any --no-template --link-abbrevs --quote -T html" -. auth/acl.sh +. auth/permissions.sh page=$(egrep -o '(^|&)p=[a-zA-Z0-9/_-]+(&|$)' <<<"${QUERY_STRING}" |sed 's,&,,g;s,p=,,') @@ -38,22 +38,36 @@ cat < - Busy + $(sed -rn 's:^name=(.*)$:\1:p' project.meta) - Busy $([ -r "${page}.css" ] && echo '') + + + + +
@@ -67,8 +81,30 @@ $( $LOGIN || echo '

') +$( $LOGIN && echo "You are loggeed in as ${REMOTE_USER}
") +$( $LOGIN && $ACL_ADMIN && echo 'Admin
') +$( $LOGIN && echo 'My Settings
')
+ $(btcAddress="$(sed -rn 's:^btcAddress=(.*)$:\1:p' project.meta)" + flattrThingURL=$(sed -rn 's:^flattrThingURL=(.*)$:\1:p' project.meta) + + grep -q 'useBitcoin=yes' project.meta && [ \! -f "QRcodes/bitcoin:${btcAddress}.png" ] &&\ + qrencode -o "QRcodes/bitcoin:${btcAddress}.png" "bitcoin:$btcAddress" + grep -q 'useBitcoin=yes' project.meta && echo ' + + + ' + grep -q 'useFlattr=yes' project.meta && echo ' + + + ')