#!/bin/sh
# $Id: lookat.cgi,v 1.2 2002/07/14 09:26:06 peter Exp $
PARAM="$1"
CHECK="${PARAM//\//:}"
cd /var/www/cbm.6502.org/html/docs
if [ "$1" = "" ]; then
echo Content-type: text/html
echo
echo "
Error!"
echo "The CGI script was called incorrectly"
elif [ "$1" != "$CHECK" ]; then
echo Content-type: text/html
echo
echo "Error!"
echo "The CGI script was called with an invalid parameter"
elif [ ! -f "$1.zip" ]; then
echo Content-type: text/html
echo
echo "The requested file could not be found!