diff --git a/index.html.tpl b/index.html.tpl index 01629e7..abd6d25 100644 --- a/index.html.tpl +++ b/index.html.tpl @@ -87,7 +87,7 @@ img.app, img.store {

J'ai déménagé !

Je suis désormais joignable pour tchatter sur le réseau indépendant Jabber/XMPP.

-

Mon adresse XMPP : {{username}}@chapril.org

+

Mon adresse XMPP : {{user_jid}}

Pour me joindre :

1) Installe une appli Jabber/XMPP et crée-toi un compte

diff --git a/invitation.cgi b/invitation.cgi index 215f0b4..ebdbefb 100755 --- a/invitation.cgi +++ b/invitation.cgi @@ -1,14 +1,20 @@ #! /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 -n "
" ; env ; echo "
" # DEBUG +#echo "
USERNAME=${USERNAME}" ; echo "DOMAIN=$DOMAIN" ; echo "
" # DEBUG -cat index.html.tpl | sed "s/{{username}}/${USERNAME}/g" +cat index.html.tpl | sed "s/{{user_jid}}/${USER_JID}/g" exit 0