#!/bin/sh
host=`hostname`
fullhost=`hostname -f`
SIZE=`du -s unsorted|sed 's/[^0-9].*$//'`
case "$HTTP_USER_AGENT" in
*Lynx*) browser=text
        ;;
default) browser=graphics
         ;;
esac

cat << HTML_EOF
Content-type: text/html

<html>
<title>Wakko's Animaniacs ArKhive (WAAK)</title>
<h1>BIG FAT NOTICE AT BOTTOM!</h1>
<center><img src="icons/char-l.gif" alt="[ANI Cast]"></center>
<hr>
Before I begin.  I'll be putting this site up on my own machine.  It's at
<a href=http://www.animx.eu.org>ani</a>.
<hr>
<!-- The Warner brothers -->
<br><img src="icons/dot-l.gif" alt="[Dot]"><br>
<img src="icons/wakko-l.gif" align="center" alt="[Wakko]">
<a href="ani.cgi?WarnerPics">Pics</a> and <a href="ani.cgi?WarnerSounds">Sounds</a> of The Warners<br>
<img src="icons/yakko-l.gif" alt="[Yakko]">
HTML_EOF

[ "$browser" = "text" ] && echo "<br>"

cat << HTML_EOF
<!-- Pinky & The Brain -->
<br><img src="icons/pinky-l.gif" alt="[Pinky]"><br>
<img src="icons/brain-l.gif" align="top" alt="[Brain]">
<a href="ani.cgi?P&BPics">Pics</a> and <a href="ani.cgi?P&BSounds">Sounds</a> of Pinky and The Brain
HTML_EOF

[ "$browser" = "text" ] && echo "<br>"

cat << HTML_EOF
<!-- Slappy Squirl -->
<br><img src="icons/slappy-l.gif" align="center" alt="[Slappy]">
<a href="ani.cgi?SlappyPics">Pics</a> and <a href="ani.cgi?SlappySounds">Sounds</a> of Slappy, the Slap Happy Squirl</a>

<hr><font size="-1"><i>Note: I don't have good icons for these, if you do, mail them to me</i></font><p>

<!-- Songs from various episodes -->
<a href="ani.cgi?Songs">Songs</a> from various episodes

<!-- Helllllllllo, Nurse -->
<br><a href="ani.cgi?Nurse">Pics</a> of Helllllllllo, Nurse (yes, that *IS* her name!)

<!-- Dr. Otto Von Scratchansniff -->
<br><a href="ani.cgi?ScratchansniffSounds">Sounds</a> of Dr. Otto Von Scratchansniff, the studio shrink!
<br><a href="ani.cgi?ScratchansniffPatients">Patients</a> of Dr. Scratchansniff

<!-- Thadeous Plotz -->
<br>Sounds from <a href="ani.cgi?Plotz">Mr. Thadeous Plotz</a> the studio CEO

<!-- Jerry (the director) -->
<br>Sounds from <a href="ani.cgi?Jerry">Jerry</a> the "annoying" director

<!-- Minerva Mink -->
<br>Pics of <a href="ani.cgi?Mink">Minerva Mink</a> the all body, no brains mink.

<!-- Other characters -->
<br>Other <a href="ani.cgi?Other">Pics</a>

<!-- Other large sounds -->
<br>Miscellenious LARGE <a href="ani.cgi?Misc">sounds</a>

<hr>
<!-- Unsorted crap -->
I also have ${SIZE}k of <a href="unsorted/">unsorted</a> stuff laying around.
<hr>
HTML_EOF
if [ "$host" = "kite" ];then
 echo "<img src=\"icons/title-l.gif\" align=\"left\" alt=\"ANI Logo\"><br><br>"
 echo "To <a href=\"/\">KITE</a>'s home page<br>"
 echo "To the <a href=\"/users\">users</a> page<br><br><br>"
else
 echo "<img src=\"icons/title-l.gif\" alt=\"ANI Logo\">"
fi
cat <<EOF
<p>E-mail <a href="fatchance.html">Wakko</a> here at $host
<br>OH! before I forget here's a pic of <a href="me.gif">me</a>
<br>Wanna know something <a href=http://www.animx.eu.org/about/>about</a> me?
<h1>BIG FAT NOTICE!</h1>
I don't mean to be rude or anything, but if you have your own web page and
want to put one of the pics off my site, please download it.  Why?  I've
seen this site go through a few different hostnames and some people are
still using kite.ml.org.  It's kitenet.net now.  What will it be later on? 
I don't know.  The guy who owns this machine is a personal friend of mine
and I believe he'll stick to this name but, you never know.
<p><b>Also, if you are an advertiser, please skip this page, I do not need
your worthless email.</b>
</html>
EOF
