#!/bin/ksh

DIRNAME=/home/httpd/docs/intranet/home/kristen_hall/guest/guest.accept

if [ ! -d $DIRNAME ] ; then
   mkdir $DIRNAME
fi

echo "<HR>"
for fname in $DIRNAME/* ; do
  cat <$fname | (
    read year month day hour minute
    if [ "$month" = "01" ] ; then
       month="January"
    elif [ "$month" = "02" ] ; then
       month="February"
    elif [ "$month" = "03" ] ; then
       month="March"
    elif [ "$month" = "04" ] ; then
       month="April"
    elif [ "$month" = "05" ] ; then
       month="May"
    elif [ "$month" = "06" ] ; then
       month="June"
    elif [ "$month" = "07" ] ; then
       month="July"
    elif [ "$month" = "08" ] ; then
       month="August"
    elif [ "$month" = "09" ] ; then
       month="September"
    elif [ "$month" = "10" ] ; then
       month="October"
    elif [ "$month" = "11" ] ; then
       month="November"
    elif [ "$month" = "12" ] ; then
       month="December"
    fi
    echo "Date: $month $day, $year $hour:$minute <BR>"
    read poster
    echo "Poster: $poster <BR>"
    cat )
  echo "<BR><HR>"
done

