#!/bin/ksh
# Disable filename globbing
set -f
# Cat the POST body to the log
req=$(cat)
echo === >> $log
echo "$req" >> /tmp/log
# Return the requested info
echo Content-Type: text/html
echo
if [[ "$req" == *servicesAvailable* ]]; then
cat << EOF
servicesAvailable
iDisk
iSync
Email
WebHosting
Backup
EOF
else
cat << EOF
daysLeftUntilExpiration-1
EOF
fi
echo === >> /tmp/log