#!/sbin/sh

PATH=/usr/local/bin:$PATH

echo "Content-type: text/html"
echo

#. /public_html/www.c3.hu/actual/checkpar.sh
. ./checkpar.sh

cat header.html

cd old
echo "<UL>"
for i in `ls -rd [0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]`; do
	. ../createdate.sh
	echo -n "<LI><FONT SIZE=\"3\">"
	echo -n "<A HREF=\"archive_day.cgi?old/$i\">"
	echo -n $day-$monthtxt-$year
	echo -n "</A> ("
	msg=`ls $i | wc -l | sed 's/ //g'`
	[ $msg = 0 ] && echo "empty)"
	[ $msg = 1 ] && echo "1 message)"
	[ $msg -ge 2 ] && echo "$msg messages)"
done
echo "</UL>"
cd ..

cat footer.html
