From: terry%netscape.com <>
Date: Tue, 1 Sep 1998 11:33:37 +0000 (+0000)
Subject: Added parameters to specify the HTML that goes at the top of every
X-Git-Tag: bugzilla-1.3~29
X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=548d8d045b4cfdfa54f207e05cf351d6f09f0e66;p=thirdparty%2Fbugzilla.git
Added parameters to specify the HTML that goes at the top of every
page. The banner.html and blurb.html files are now obsolete!
---
diff --git a/CGI.tcl b/CGI.tcl
index c368ed8a4e..8adecab368 100755
--- a/CGI.tcl
+++ b/CGI.tcl
@@ -289,22 +289,12 @@ name=PleaseMailAPassword>
}
-proc CopyOut {filename} {
- if {[file exists $filename]} {
- set fid [open $filename "r"]
- while {[gets $fid line] > 0} {
- puts $line
- }
- close $fid
- }
-}
-
proc PutHeader {title h1 {h2 ""}} {
puts "
$title";
puts "";
- CopyOut "banner.html"
+ puts [Param bannerhtml]
puts "";
puts " \n";
@@ -319,7 +309,7 @@ proc PutHeader {title h1 {h2 ""}} {
puts " \n";
puts " \n";
- CopyOut "blurb.html"
+ puts [Param blurbhtml]
puts " |
\n";
diff --git a/defparams.tcl b/defparams.tcl
index 07046bc82a..a008dc07fe 100644
--- a/defparams.tcl
+++ b/defparams.tcl
@@ -90,6 +90,17 @@ proc check_urlbase {url} {
return ""
}
+DefParam bannerhtml {The html that gets emitted at the head of every Bugzilla page.} l {
+ |
}
+
+DefParam blurbhtml {A blurb that appears as part of the header of every Bugzilla page. This is a place to put brief warnings, pointers to one or two related pages, etc.} l { This is Bugzilla: the Mozilla bug system. For more
+ information about what Bugzilla is and what it can do, see
+ mozilla.org's
+ bug pages.
+}
+
DefParam whinedays {The number of days that we'll let a bug sit untouched in a NEW state before our cronjob will whine at the owner.} t 7 check_numeric