diff options
author | mkanat%kerio.com <> | 2005-07-14 13:01:34 +0000 |
---|---|---|
committer | mkanat%kerio.com <> | 2005-07-14 13:01:34 +0000 |
commit | bcfde177dbb9f3748f59af067357e5902335ca46 (patch) | |
tree | 9b889e93b023cc3a275867f1fd87571888353d25 /CGI.pl | |
parent | bf0a551fc3ff716b540dc221ab58f80cc2b3d820 (diff) | |
download | bugs-bcfde177dbb9f3748f59af067357e5902335ca46.tar bugs-bcfde177dbb9f3748f59af067357e5902335ca46.tar.gz bugs-bcfde177dbb9f3748f59af067357e5902335ca46.tar.bz2 bugs-bcfde177dbb9f3748f59af067357e5902335ca46.tar.xz bugs-bcfde177dbb9f3748f59af067357e5902335ca46.zip |
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.pl | 26 |
1 files changed, 0 insertions, 26 deletions
@@ -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. |