#! /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 "
USERNAME=${USERNAME}" ; echo "DOMAIN=$DOMAIN" ; echo "" # DEBUG cat index.html.tpl | sed "s/{{user_jid}}/${USER_JID}/g" exit 0