From: endico%mozilla.org <> Date: Tue, 29 Jun 1999 07:24:40 +0000 (+0000) Subject: Added "entryheaderhtml" parameter which lets you specify text to X-Git-Tag: bugzilla-2.6~31 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=74cfcf36f8fde6b0dd202565be4f827638de60e0;p=thirdparty%2Fbugzilla.git Added "entryheaderhtml" parameter which lets you specify text to add to beginning of bug entry form. also aligned text in the form to make it pretty. Uncomment the if people complain the 80 col description text box doesn't fit narrow screens. --- diff --git a/README b/README index 1d4e9c88b5..a335dfd896 100644 --- a/README +++ b/README @@ -132,11 +132,11 @@ provide backwards compatibility with the older MySQL packages; you must answer YES to this question. The default will be no, and if you select it things won't work later. - A host of 'localhost' should be fine and a testing user of 'test' -should find itself with sufficient access to run tests on the 'test' -database which MySQL created upon installation. If 'make test' and 'make -install' go through without errors you should be ready to go as far as -database connectivity is concerned. + A host of 'localhost' should be fine and a testing user of 'test' and +a null password should find itself with sufficient access to run tests on +the 'test' database which MySQL created upon installation. If 'make test' +and 'make install' go through without errors you should be ready to go as +far as database connectivity is concerned. 1.6. TimeDate Perl module collection diff --git a/defparams.pl b/defparams.pl index 2f4bef52e8..5cba822955 100644 --- a/defparams.pl +++ b/defparams.pl @@ -302,6 +302,11 @@ DefParam("webdotbase", "t", "http://www.research.att.com/~north/cgi-bin/webdot.cgi/%urlbase%"); +DefParam("entryheaderhtml", + "This is a special header for the bug entry page. The text will be printed after the page header, before the bug entry form. It is meant to be a place to put pointers to intructions on how to enter bugs.", + "l", + ''); + DefParam("expectbigqueries", "If this is on, then we will tell mysql to set option SQL_BIG_TABLES=1 before doing queries on bugs. This will be a little slower, but one will not get the error The table ### is full for big queries that require a big temporary table.", "b", diff --git a/enter_bug.cgi b/enter_bug.cgi index e8c77aa187..b04c4e3681 100755 --- a/enter_bug.cgi +++ b/enter_bug.cgi @@ -190,7 +190,20 @@ print " - +
"; + +if (Param("entryheaderhtml")){ + print " + + + + + "; +} + +print " @@ -254,8 +267,8 @@ print " value_quote(formvalue('short_desc')) . "\"> - - + + @@ -269,14 +282,24 @@ print "      - + "; + +if ( Param('usebrowserinfo') ) { + print " + + + + "; +} +print "
" . + Param("entryheaderhtml") . "\n" . + "

Reporter: $::COOKIE{'Bugzilla_login'}
Description:
Description:
+
+ Some fields initialized from your user-agent, + $ENV{'HTTP_USER_AGENT'}. If you think it got it wrong, + please tell " . Param('maintainer') . " what it should have been. +
\n"; -if ( Param('usebrowserinfo') ) { - print "Some fields initialized from your user-agent, $ENV{'HTTP_USER_AGENT'}. - If you think it got it wrong, please tell " . Param('maintainer') . " what it should have been."; -} print "\n";