From 7dae10b5d49f983266a2fc8c85beaff87694cc25 Mon Sep 17 00:00:00 2001 From: Wolfram Schneider Date: Thu, 12 Feb 1998 11:04:03 +0000 Subject: [PATCH] Use html_header and html_footer functions from cgi-style.pl. --- data/cgi/missing_handler.cgi | 31 ++++++------------------------- en/cgi/missing_handler.cgi | 31 ++++++------------------------- 2 files changed, 12 insertions(+), 50 deletions(-) diff --git a/data/cgi/missing_handler.cgi b/data/cgi/missing_handler.cgi index 2904c9e9ba..51291214b7 100755 --- a/data/cgi/missing_handler.cgi +++ b/data/cgi/missing_handler.cgi @@ -52,11 +52,11 @@ # # _________________________________________________________________ # -# $Date: 1997-12-23 18:39:47 $ +# $Date: 1998-02-12 11:04:03 $ # ---------------------------------------------------------------------- # # -# $Id: missing_handler.cgi,v 1.2 1997-12-23 18:39:47 wosch Exp $ +# $Id: missing_handler.cgi,v 1.3 1998-02-12 11:04:03 wosch Exp $ # output title $title = $ENV{'MISSING_HANDLER_TITLE'} || @@ -73,20 +73,8 @@ $server_admin=$ENV{'SERVER_ADMIN'}; $http_host=$ENV{'HTTP_HOST'}; $server_name=$ENV{'SERVER_NAME'}; - -# HTTP header -print "Content-type: text/html\n\n"; - -# HTML title -print < -$title - - - - -

$title

-EOF +require 'cgi-style.pl'; +print &html_header($title); # HTML body print qq[The file
@@ -112,12 +100,5 @@ Please contact the server administrator Thank you very much!

]; -# HTML footer -print < -$footer -\$Date: 1997-12-23 18:39:47 $ - -EOF - -exit(0); +print&html_footer; +exit; diff --git a/en/cgi/missing_handler.cgi b/en/cgi/missing_handler.cgi index 2904c9e9ba..51291214b7 100755 --- a/en/cgi/missing_handler.cgi +++ b/en/cgi/missing_handler.cgi @@ -52,11 +52,11 @@ # # _________________________________________________________________ # -# $Date: 1997-12-23 18:39:47 $ +# $Date: 1998-02-12 11:04:03 $ # ---------------------------------------------------------------------- # # -# $Id: missing_handler.cgi,v 1.2 1997-12-23 18:39:47 wosch Exp $ +# $Id: missing_handler.cgi,v 1.3 1998-02-12 11:04:03 wosch Exp $ # output title $title = $ENV{'MISSING_HANDLER_TITLE'} || @@ -73,20 +73,8 @@ $server_admin=$ENV{'SERVER_ADMIN'}; $http_host=$ENV{'HTTP_HOST'}; $server_name=$ENV{'SERVER_NAME'}; - -# HTTP header -print "Content-type: text/html\n\n"; - -# HTML title -print < -$title - - - - -

$title

-EOF +require 'cgi-style.pl'; +print &html_header($title); # HTML body print qq[The file
@@ -112,12 +100,5 @@ Please contact the server administrator Thank you very much!

]; -# HTML footer -print < -$footer -\$Date: 1997-12-23 18:39:47 $ - -EOF - -exit(0); +print&html_footer; +exit;