Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
e941bb43
Commit
e941bb43
authored
Sep 02, 2003
by
justdave%syndicomm.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 165366: When editparams is used to shutdown Bugzilla, provide a link back to editparams
Patch by Vlad Dascalu <jocuri@softhome.net> r= kiko, a= justdave
parent
4fcf4f3c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
doeditparams.cgi
doeditparams.cgi
+10
-1
No files found.
doeditparams.cgi
View file @
e941bb43
...
@@ -48,6 +48,8 @@ if (!UserInGroup("tweakparams")) {
...
@@ -48,6 +48,8 @@ if (!UserInGroup("tweakparams")) {
PutHeader
(
"Saving new parameters"
);
PutHeader
(
"Saving new parameters"
);
my
$howto
=
""
;
foreach
my
$i
(
GetParamList
())
{
foreach
my
$i
(
GetParamList
())
{
my
$name
=
$i
->
{
'name'
};
my
$name
=
$i
->
{
'name'
};
my
$value
=
$::FORM
{
$name
};
my
$value
=
$::FORM
{
$name
};
...
@@ -97,6 +99,12 @@ foreach my $i (GetParamList()) {
...
@@ -97,6 +99,12 @@ foreach my $i (GetParamList()) {
}
}
print
"Changed "
.
html_quote
(
$name
)
.
".<br>\n"
;
print
"Changed "
.
html_quote
(
$name
)
.
".<br>\n"
;
SetParam
(
$name
,
$value
);
SetParam
(
$name
,
$value
);
if
((
$name
eq
"shutdownhtml"
)
&&
(
$value
ne
""
))
{
# The system is down, inform the user how to restore it
$howto
=
"<p>Bugzilla has now been shut down, to re-enable "
.
"the system, please return to "
.
"<a href=\"editparams.cgi\">editparams.cgi</a>.</p>"
;
}
}
}
}
}
...
@@ -105,7 +113,8 @@ WriteParams();
...
@@ -105,7 +113,8 @@ WriteParams();
unlink
"data/versioncache"
;
unlink
"data/versioncache"
;
print
"OK, done.<p>\n"
;
print
"<p>OK, done.</p>\n"
;
print
$howto
;
print
"<a href=\"editparams.cgi\">Edit the params some more.</a><p>\n"
;
print
"<a href=\"editparams.cgi\">Edit the params some more.</a><p>\n"
;
print
"<a href=\"query.cgi\">Go back to the query page.</a>\n"
;
print
"<a href=\"query.cgi\">Go back to the query page.</a>\n"
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment