X-Git-Url: http://git.plutz.net/?p=busy;a=blobdiff_plain;f=index.cgi;h=1612a9fb89d42c75dd024c4858f6a15fa97f7345;hp=6710ea357e3041dc8e735d66a587dd2d7cfe0140;hb=470dbac80eb2334fdb04a85e448d6194140d250d;hpb=44407376a39cd71f292875c4d09214277110d724 diff --git a/index.cgi b/index.cgi index 6710ea3..1612a9f 100755 --- a/index.cgi +++ b/index.cgi @@ -18,16 +18,15 @@ umask=002 alias _wiki="stx2any --no-template --link-abbrevs --quote -T html" +. auth/acl.sh page=$(egrep -o '(^|&)p=[a-zA-Z0-9/_-]+(&|$)' <<<"${QUERY_STRING}" |sed 's,&,,g;s,p=,,') [ -z "$LOGIN" ] && LOGIN=false -[ -z "$DEV" ] && DEV=false -[ -z "$ADM" ] && ADM=false [ -z "$page" ] && page=Home if (! $LOGIN && egrep -qx "https?://${HTTP_HOST}/(session.cgi\?|write/).*" <<<"${HTTP_REFERER}"); then - echo -n "Location: http://${HTTP_HOST}/session.cgi?${QUERY_STRING}\n\n" + echo -n "Location: https://${HTTP_HOST}/session.cgi?${QUERY_STRING}\n\n" exit 0 fi @@ -62,7 +61,7 @@ function hide_screen(id){ $(egrep '^slogan=.*$' project.meta |cut -d= -f2-)
-$( $LOGIN || echo '
+$( $LOGIN || echo ' Login:


@@ -74,7 +73,7 @@ $( $LOGIN || echo ' Home Wiki - Code + Code Tasks
$(if [ -r "./${page}.page" ]; then