From 4727e6c09f88e63f02e6c8f359862d0c0942ed36 Mon Sep 17 00:00:00 2001 From: "terry%netscape.com" <> Date: Wed, 16 Sep 1998 04:49:23 +0000 Subject: Everything has been ported to now run under Perl. --- show_bug.cgi | 43 ++++++++++++++++++++++++------------------- 1 file changed, 24 insertions(+), 19 deletions(-) (limited to 'show_bug.cgi') 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 -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 "

Search By Bug Number

" - puts "
" - puts "You may find a single bug by entering its bug id here: " - puts "" - puts "" - puts "
" - exit 0 +require "CGI.pl"; + +if (!defined $::FORM{'id'}) { + print "

Search By Bug Number

\n"; + print "
\n"; + print "You may find a single bug by entering its bug id here: \n"; + print "\n"; + print "\n"; + print "
\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 "
\n"; -puts "
" -source "bug_form.tcl" +do "bug_form.pl"; -- cgit v1.2.3-24-g4f1b