#! /bin/sh

echo -ne "Content-Type: text/html\r\n\r\n"
cat <<EOT
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
    "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >
<head>
<title>fortune</title>
</head>
<body>
<p>
EOT
./randstr fortunes | sed -e 's#$#<br />#' -e 's#	#<span style="margin-left: 10%;"></span>#g'
cat <<EOT
</p>
<p class="first"><a href="$REQUEST_URI">Get</a> another fortune cookie.</p>
</body>
</html>
EOT
