diff options
author | terry%netscape.com <> | 1998-09-16 04:49:23 +0000 |
---|---|---|
committer | terry%netscape.com <> | 1998-09-16 04:49:23 +0000 |
commit | 4727e6c09f88e63f02e6c8f359862d0c0942ed36 (patch) | |
tree | 3dec365d9db2c17d4c4ab9eb5297650d09ab24ec /show_bug.cgi | |
parent | Added new "Layout" component to NGLayout. (diff) | |
download | bugzilla-4727e6c09f88e63f02e6c8f359862d0c0942ed36.tar.gz bugzilla-4727e6c09f88e63f02e6c8f359862d0c0942ed36.tar.bz2 bugzilla-4727e6c09f88e63f02e6c8f359862d0c0942ed36.zip |
Everything has been ported to now run under Perl.
Diffstat (limited to 'show_bug.cgi')
-rwxr-xr-x | show_bug.cgi | 43 |
1 files changed, 24 insertions, 19 deletions
diff --git a/show_bug.cgi b/show_bug.cgi index 5228ed394..98829e356 100755 --- a/show_bug.cgi +++ b/show_bug.cgi @@ -1,5 +1,5 @@ -#! /usr/bonsaitools/bin/mysqltcl -# -*- Mode: tcl; indent-tabs-mode: nil -*- +#!/usr/bonsaitools/bin/perl -w +# -*- Mode: perl; indent-tabs-mode: nil -*- # # The contents of this file are subject to the Mozilla Public License # Version 1.0 (the "License"); you may not use this file except in @@ -19,26 +19,31 @@ # # Contributor(s): Terry Weissman <terry@mozilla.org> -source "CGI.tcl" -puts "Content-type: text/html" -puts "" +use diagnostics; +use strict; +print "Content-type: text/html\n"; +print "\n"; -if {[lookup FORM id] == ""} { - puts "<H2>Search By Bug Number</H2>" - puts "<FORM METHOD=GET ACTION=\"show_bug.cgi\">" - puts "You may find a single bug by entering its bug id here: " - puts "<INPUT NAME=id>" - puts "<INPUT TYPE=\"submit\" VALUE=\"Show Me This Bug\">" - puts "</FORM>" - exit 0 +require "CGI.pl"; + +if (!defined $::FORM{'id'}) { + print "<H2>Search By Bug Number</H2>\n"; + print "<FORM METHOD=GET ACTION=\"show_bug.cgi\">\n"; + print "You may find a single bug by entering its bug id here: \n"; + print "<INPUT NAME=id>\n"; + print "<INPUT TYPE=\"submit\" VALUE=\"Show Me This Bug\">\n"; + print "</FORM>\n"; + exit; } -ConnectToDatabase -GetVersionTable +ConnectToDatabase(); + +GetVersionTable(); + +PutHeader("Bugzilla bug $::FORM{'id'}", "Bugzilla Bug", $::FORM{'id'}); +navigation_header(); -PutHeader "Bugzilla bug $FORM(id)" "Bugzilla Bug" $FORM(id) -navigation_header +print "<HR>\n"; -puts "<HR>" -source "bug_form.tcl" +do "bug_form.pl"; |