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
<title>Busy</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<link rel="stylesheet" type="text/css" href="busy.css">
+ <link rel="stylesheet" type="text/css" href="wikitext.css">
$([ -r "${page}.css" ] && echo '<link rel="stylesheet" type="text/css" href="'"$page"'.css">')
<style type="text/css"><!-- --></style>
<script type="text/javascript">
<span id="SLOGAN">$(egrep '^slogan=.*$' project.meta |cut -d= -f2-)</span>
</div>
<div id="USERMENU">
-$( $LOGIN || echo '<form action="/login.cgi?'${QUERY_STRING:gs/&/&/}'" method="post" accept-charset="UTF-8">
+$( $LOGIN || echo '<form action="https://'${HTTP_HOST}'/login.cgi?'${QUERY_STRING:gs/&/&/}'" method="post" accept-charset="UTF-8">
Login:<br>
<input type="text" name="user" value placeholder="Username"><br>
<input type="password" name="pass" value placeholder="Password"><br>
<div id="MENU">
<a href='/?p=Home'>Home</a>
<a href='/?p=Wiki'>Wiki</a>
- <a href='/?p=Code'>Code</a>
- <a href='/?p=Issues'>Issues</a>
+ <a href='/?p=Subversion'>Code</a>
+ <a href='/?p=Tasks'>Tasks</a>
</div>
$(if [ -r "./${page}.page" ]; then
. "./${page}.page"