summaryrefslogtreecommitdiffstats
path: root/CGI.pl
diff options
context:
space:
mode:
authorterry%mozilla.org <>2000-01-13 03:55:16 +0100
committerterry%mozilla.org <>2000-01-13 03:55:16 +0100
commit438b9fe122472e111c8d7294244502afceefab99 (patch)
tree9c96e1fa76a46c1b52b5f31e9f99735536d3dcac /CGI.pl
parentb5e7fccefa01bb1402cca97842786e68e607c13b (diff)
downloadbugzilla-438b9fe122472e111c8d7294244502afceefab99.tar.gz
bugzilla-438b9fe122472e111c8d7294244502afceefab99.tar.xz
Provide a simple param to let the maintainer shut down Bugzilla for a while.
Diffstat (limited to 'CGI.pl')
-rw-r--r--CGI.pl11
1 files changed, 9 insertions, 2 deletions
diff --git a/CGI.pl b/CGI.pl
index 0ab0cd10c..91edd28f1 100644
--- a/CGI.pl
+++ b/CGI.pl
@@ -494,7 +494,7 @@ sub confirm_login {
if ($loginok != 1) {
print "Content-type: text/html\n\n";
- PutHeader("Login");
+ PutHeader("Login", undef, undef, undef, 1);
print "I need a legitimate e-mail address and password to continue.\n";
if (!defined $nexturl || $nexturl eq "") {
# Sets nexturl to be argv0, stripping everything up to and
@@ -548,7 +548,7 @@ name=PleaseMailAPassword>
sub PutHeader {
- my ($title, $h1, $h2, $extra) = (@_);
+ my ($title, $h1, $h2, $extra, $ignoreshutdown) = (@_);
if (!defined $h1) {
$h1 = $title;
@@ -583,6 +583,13 @@ sub PutHeader {
print Param("blurbhtml");
print "</TD></TR></TABLE>\n";
+
+ if (Param("shutdownhtml")) {
+ if (!$ignoreshutdown) {
+ print Param("shutdownhtml");
+ exit;
+ }
+ }
}