21 lines
392 B
Bash
Executable File
21 lines
392 B
Bash
Executable File
#! /bin/sh
|
|
|
|
USERNAME=$(basename ${REQUEST_URI})
|
|
DOMAIN=$(echo "${USERNAME}" | cut -d@ -f2)
|
|
if [ "${USERNAME}" = "${DOMAIN}" ]; then
|
|
USER_JID=${USERNAME}@chapril.org
|
|
else
|
|
USER_JID=${USERNAME}
|
|
fi
|
|
|
|
echo "Content-type: text/html"
|
|
echo ""
|
|
|
|
|
|
#echo "<pre>USERNAME=${USERNAME}" ; echo "DOMAIN=$DOMAIN" ; echo "</pre>" # DEBUG
|
|
|
|
cat index.html.tpl | sed "s/{{user_jid}}/${USER_JID}/g"
|
|
|
|
|
|
exit 0
|