#!/bin/sh
# Negative deposit page
# /etc/service
#  neg_deposit 81/tcp
#
# /etc/inetd.conf
#  neg_deposit  stream  tcp     nowait  root /usr/local/abills/neg_deposit/neg_deposit neg_deposit
#

debug=1

echo "Content-Type: text/html\n\n";

if [ -f /usr/local/abills/neg_deposit/index.htm ]; then
  cat /usr/local/abills/neg_deposit/index.htm
else 
 
 echo "<h3>Negative Deposit</h3>"
fi;

if [ w${debug} != w ]; then
   date "+%Y;%m:%d %H;%M:%S" >> /tmp/neg_deposit
   echo "================" >> /tmp/neg_deposit
   env >> /tmp/neg_deposit
   echo "================" >> /tmp/neg_deposit
fi;

