#!/bin/sh

echo "Content-type: text/html"
echo
cat <<EOF
<html><head><title>BOFH-Style Excuse Generator</title></head><body>
<h2>Your excuse is:</h2>
<font size='+2'><tt>
EOF

/usr/sbin/bofh /usr/share/bofh-server/excuses |
	grep -v '===' |
	sed 's/^Your excuse is: //'

cat << EOF
</tt></font>
<p><font size="-1"><a href="excuse.txt">View the source of this page</a>
</body></html>
EOF
