httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christof Damian <cdam...@guideguide.com>
Subject Re: Apache 2.0 alpha. (again) :)
Date Thu, 09 Mar 2000 09:33:10 GMT
Jim Jagielski wrote:
> 
> I think that's hard-coded in bugzilla... Not sure how easy to rip
> out, but we can certainly give it a whack :)
> 

that shouldn't be to difficult, I hacked it for our company once. Its
not in use though.

I just changed two files:

--- /nfs-home/stuff/src/mozilla/webtools/bugzilla/post_bug.cgi  Wed
Jul 21 16:38:22 1999
+++ post_bug.cgi        Thu Oct 14 18:03:59 1999
@@ -1,4 +1,4 @@
-#!/usr/bonsaitools/bin/perl -w
+#!/usr/bin/perl -w
 # -*- Mode: perl; indent-tabs-mode: nil -*-
 #
 # The contents of this file are subject to the Mozilla Public License
@@ -32,7 +32,10 @@
 my $zz = $::buffer;
 $zz = $zz . $zz;
 
-confirm_login();
+if (defined $::FORM{'anonym'}) 
+  {
+    confirm_login();
+  };
 
 print "Set-Cookie: PLATFORM=$::FORM{'product'} ; path=/ ;
expires=Sun, 30-Jun-2029 00:00:00 GMT\n";
 print "Set-Cookie: VERSION-$::FORM{'product'}=$::FORM{'version'} ;
path=/ ; expires=Sun, 30-Jun-2029 00:00:00 GMT\n";
@@ -55,7 +58,8 @@
 umask 0;
 ConnectToDatabase();
 
-if (!defined $::FORM{'component'} || $::FORM{'component'} eq "") {
+if ((!defined $::FORM{'component'} || $::FORM{'component'} eq "") 
+    and defined $::FORM{'anonym'}) {
     print "You must choose a component that corresponds to this bug. 
If\n";
     print "necessary, just guess.  But please hit the <B>Back</B>
button\n";
     print "and choose a component.\n";
@@ -148,6 +152,8 @@
 
 print "<BR><A HREF=\"createattachment.cgi?id=$id\">Attach a file to
this bug</a>\n";
 
+if (!defined $::FORM{'anonym'}) {
 navigation_header();
+};
 
 exit;
--- enter_bug.cgi       Wed Oct 13 19:09:00 1999
+++ anon_bug.cgi        Thu Oct 14 17:49:28 1999
@@ -62,7 +62,7 @@
 
 my $product = $::FORM{'product'};
 
-confirm_login();
+#confirm_login();
 
 print "Content-type: text/html\n\n";
 
@@ -186,6 +186,7 @@
 
 print "
 <FORM METHOD=POST ACTION=\"post_bug.cgi\">
+<INPUT TYPE=HIDDEN NAME=anonym VALUE=1>
 <INPUT TYPE=HIDDEN NAME=bug_status VALUE=NEW>
 <INPUT TYPE=HIDDEN NAME=reporter
VALUE=\"$::COOKIE{'Bugzilla_login'}\">
 <INPUT TYPE=HIDDEN NAME=product VALUE=\""  . value_quote($product) .
"\">
@@ -204,14 +205,8 @@
 
 print "
   <TR>
-    <td ALIGN=right valign=top><B>Reporter:</B></td>
-    <td valign=top>$::COOKIE{'Bugzilla_login'}</td>
-    <td ALIGN=right valign=top><B>Product:</B></td>
-    <td valign=top>$product</td>
-  </TR>
-  <TR>
-    <td ALIGN=right valign=top><B>Version:</B></td>
-    <td>" . Version_element(pickversion(), $product) . "</td>
+    <td ALIGN=right valign=top></td>
+    <td></td>
     <td align=right valign=top><b><a
href=\"describecomponents.cgi?product=" .
     url_quote($product) . "\">Component:</a></b></td>
     <td>$component_popup</td>
@@ -227,30 +222,14 @@
     <td></td>
   </TR>
   <TR>";
-if (Param('letsubmitterchoosepriority')) {
-    print "
-    <TD ALIGN=RIGHT><B><A
HREF=\"bug_status.html#priority\">Priority</A>:</B></TD>
-    <TD>$priority_popup</TD>";
-} else {
     print '<INPUT TYPE=HIDDEN NAME=priority VALUE="' .
         value_quote($priority) . '">';
-}
 print "
     <TD ALIGN=RIGHT><B><A
HREF=\"bug_status.html#severity\">Severity</A>:</B></TD>
     <TD>$sev_popup</TD>
     <td></td>
     <td></td>
   </TR>
-  <tr><td>&nbsp<td> <td> <td> <td> <td> </tr>
-  <tr>
-    <TD ALIGN=RIGHT><B><A
HREF=\"bug_status.html#assigned_to\">Assigned To:</A></B></TD>
-    <TD colspan=5>$assign_element
-    (Leave blank to assign to default component owner)</td>
-  </tr>
-  <tr>
-    <TD ALIGN=RIGHT><B>Cc:</B></TD>
-    <TD colspan=5>$cc_element</TD>
-  </tr>
   <tr><td>&nbsp<td> <td> <td> <td> <td> </tr>
   <TR>
     <TD ALIGN=RIGHT><B>URL:</B>

-- 
Christof Damian              [ we are looking for perl and linux
Technical Director             programmers, more information @
guideguide ltd.	               http://guideguide.com/wanted.html ]

Mime
View raw message