#--------------------------------------------------------------
my ($build_dir) = "/builds";
my ($log_file) = "download_log";
+my ($left) = "../left.inc" ;
+my ($title) = "../title.inc";
+my ($bottom) = "../bottom.inc";
#--------------------------------------------------------------
}
else {
print "Content-type: text/html\n\n";
-
- print <<EOT;
+
+ print <<"END";
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+
+ <!--
+ download.cgi
+ Created by pjm2 31/03/2001
+ Last modified 31/03/2001
+ -->
+
<html>
- <basefont face="arial,sans-serif" size="2">
- <body bgcolor="white" text="#000066">
+
+ <head>
+ <title>i-scream downloads</title>
+ <meta name="description" content="The i-scream Project is a central monitoring system for Unix, Linux and NT servers.">
+ <meta name="keywords" content="i-scream, project, central monitoring system, unix, linux, nt, server, alert">
+ <meta name="generator" content="notepad on acid, aye.">
+ </head>
+
+ <body bgcolor="#ffffff" link="#0000ff" alink="#3333cc" vlink="#3333cc" text="#000066">
+
+ <table border="0" cellpadding="2" cellspacing="2">
+ <tr>
+ <td valign="top">
+END
+
+ &print_html($left);
+
+ print <<"END";
+ </td>
+ <td valign="top">
+END
+
+ &print_html($title);
+
+ print <<EOT;
<table align="center" width="600">
<tr>
<td>
</html>
EOT
+ &print_html($bottom);
+
+ print <<"END";
+
+ </td>
+ </tr>
+ </table>
+
+ </body>
+
+ </html>
+END
+
}
+exit;
+
-exit;
\ No newline at end of file
+# Print a file without escaping HTML: -
+sub print_html ($) {
+ my ($filename) = @_;
+ print `cat $filename`;
+}
\ No newline at end of file