#! /bin/sh

R=`env | grep ^REMOTE_ADDR | awk -F= '{print $2}' | awk -F\. '{printf("%03d%03d%03d%03d",$1,$2,$3,$4)}'`
D=`date +%s`
A=Web.Admin.${D}-${R}@fken.ise.osaka-sandai.ac.jp

echo "Content-type: text/html"
echo ""
echo "<html>"
echo "<head>"
echo "<meta http-equiv=\"refresh\"content=\"8;url=/\">"
echo "<meta name=\"robots\" content=\"noindex, nofollow\">"
echo "<title>MT</title>"
echo "</head>"
echo "<body>"
echo "<hr>"
echo "Connect to <a href=\"mailto:${A}\">$A</a>"
echo "<hr>"
echo "</body>"
echo "</html>"

exit 0
