package err;


open (FILE, "<panel2.conf") or die "AAAArrrrrgghhh";
while ($line = <FILE>) {
  ($key,$val) = ($line =~/^(\S*)\s*=\s*(\S*)/);
    if ($key ne "") { $conf{$key}=$val }
}
close FILE;


sub error_seite{
   print "Content-type: text/html\n\n",
	 "<html><head><title>ERROR</title></head>\n",
	 "<body bgcolor='#D8D5D8' text='#000000' link='#0084FF' alink='#0084FF' vlink='#0084FF'>\n",
     "<center>\n",
	 "<font face=$conf{stdfont} color='#FF0000'>\n",
	 "<img src='$conf{picsource}/$conf{proratalogo}'><br><br><br><br><b>\n",
     @_[0], 
     "</b>&nbsp;</font><font face=$conf{stdfont} color='#000000'>\n<p><hr size=1 width=75%><p>\n",
     @_[1],
	 "<center></font><font size=-1 color='#0080C0'><a href='http://www.prorata.de'>http://www.prorata.de</a><br></font></center>",
	 "<br>\n</font</font>\n</BODY>\n</HTML>";
   exit;
}


1;
