settings_menu(){
printf '
- [form #settings method="POST" action="?"
- [h1 Settings][a .settings href="?" Close]'
+ [form #settings method="POST" action="?settings"
+ [hidden "session_key" "%s"]
+ [h1 Settings][a .settings href="?" Close]
+ ' "$SESSION_KEY"
+ if [ "$ERROR" ]; then
+ printf '[p .error %s %s]' "${ERROR%% *}" "$(HTML "${ERROR#.* }")"
+ unset ERROR
+ fi
printf '
[a .section href="#nick" Nickname]
[div #nick [input name="nickname" value="%s"][submit "action" "nick" Set Cookie]]
if [ -d "$_DATA/@${LOCATION#~}" ]; then
pubinfo="$_DATA/@${LOCATION#~}/pubinfo"
else
+ # ToDo Edit / Display of public user information
REDIRECT /
fi
;;