summaryrefslogtreecommitdiffstats
path: root/CGI.pl
diff options
context:
space:
mode:
authormkanat%kerio.com <>2005-07-14 15:01:34 +0200
committermkanat%kerio.com <>2005-07-14 15:01:34 +0200
commitbcfde177dbb9f3748f59af067357e5902335ca46 (patch)
tree9b889e93b023cc3a275867f1fd87571888353d25 /CGI.pl
parentbf0a551fc3ff716b540dc221ab58f80cc2b3d820 (diff)
downloadbugzilla-bcfde177dbb9f3748f59af067357e5902335ca46.tar.gz
bugzilla-bcfde177dbb9f3748f59af067357e5902335ca46.tar.xz
Bug 283989: CGI.pl global init code should be moved to Bugzilla::CGI
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=wurblzap, a=justdave
Diffstat (limited to 'CGI.pl')
-rw-r--r--CGI.pl26
1 files changed, 0 insertions, 26 deletions
diff --git a/CGI.pl b/CGI.pl
index 73df77695..78ef20fef 100644
--- a/CGI.pl
+++ b/CGI.pl
@@ -32,14 +32,6 @@ use lib ".";
# use Carp; # for confess
-BEGIN {
- if ($^O =~ /MSWin32/i) {
- # Help CGI find the correct temp directory as the default list
- # isn't Windows friendly (Bug 248988)
- $ENV{'TMPDIR'} = $ENV{'TEMP'} || $ENV{'TMP'} || "$ENV{'WINDIR'}\\TEMP";
- }
-}
-
use Bugzilla::Util;
use Bugzilla::Config;
use Bugzilla::Constants;
@@ -60,28 +52,10 @@ sub CGI_pl_sillyness {
$zz = $::buffer;
}
-use CGI::Carp qw(fatalsToBrowser);
-
require 'globals.pl';
use vars qw($template $vars);
-# If Bugzilla is shut down, do not go any further, just display a message
-# to the user about the downtime. (do)editparams.cgi is exempted from
-# this message, of course, since it needs to be available in order for
-# the administrator to open Bugzilla back up.
-if (Param("shutdownhtml") && $0 !~ m:(^|[\\/])(do)?editparams\.cgi$:) {
- $::vars->{'message'} = "shutdown";
-
- # Return the appropriate HTTP response headers.
- print Bugzilla->cgi->header();
-
- # Generate and return an HTML message about the downtime.
- $::template->process("global/message.html.tmpl", $::vars)
- || ThrowTemplateError($::template->error());
- exit;
-}
-
# Implementations of several of the below were blatently stolen from CGI.pm,
# by Lincoln D. Stein.