Une page Web pour aider à rejoindre le réseau XMPP
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

20 lines
392 B

#! /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