#!/usr/bin/perl
#<head><title>404.pl</title>
#<meta name="category" content="pl,perl">
#<meta name="description" content="A 404 page not found handler script in perl">
#<meta name="begun" content="Sun Nov 19 22:21:41 MET 2000">
#</head>
#Jip de Kort, pip@dds.nl

use strict;
use CGI qw(:standard :html3);
use jip;

my $Q=new CGI;
print $Q->header(-type=>'text/html',
                 -expires=>'-1day');  

my $uri=$ENV{'REQUEST_URI'};
my $refer=$ENV{'HTTP_REFERER'}; 
$uri=~ s!^/!!;

my $head= hoofd('404');
my $ddns=ddns();


print <<GROK;
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html4
0/strict.dtd">
<html>
 <head>
  <title>Kwark &gt; 404 &gt; $uri</title>
  <link rel="stylesheet" href="/css/kwark.css" type="text/css">
 </head>
 <body>
$head
<div class="search" style="float:right">
<table><tr><td>
<!-- Search Google -->
<form method="get" action="http://www.google.com/search"
        title="Search in google.com">
 <fieldset><legend>
  <a
   href="http://www.google.com/">google</a>
   <br>
  </legend>
  <input type="text" name="q" size="10">
  <INPUT type=submit name=sa VALUE="&gt;">
<small><small>
<input type=hidden name=domains value="kwark.yi.org"><br>
<label for="ikw"><input id="ikw" type=radio name=sitesearch value="">  w
ww</label><label for="ik"><input id="ik" type=radio name=sitesearch value="kwark.yi.org" checked> kwark
</label>
</small></small>
 </fieldset>
</form>

<!-- Search Google -->
</td></tr></table>
</div>





   <div class="main">
<h3>
Pagina <a href="/$uri">http://$ddns/$uri</a> niet gevonden.
</h3>
Probeer iets anders of gebruik de google kwark zoek box.
<BR><BR><BR><BR><BR><BR><BR><BR><BR><BR>
GROK
    if ($refer){
	print <<GROK;
Of ga terug naar <a href="$refer">$refer</a>
GROK
}
#foreach $i (keys %ENV){print "$i= ",$ENV{$i},"\n<br>";}
print "<BR>";
my $voet=voet('404');

    print <<GROK;
 </div>
<br>
$voet
</html>
</body>
GROK




