aboutsummaryrefslogtreecommitdiffstats
path: root/editparams.cgi
diff options
context:
space:
mode:
authorterry%netscape.com <>1998-09-02 03:54:24 +0000
committerterry%netscape.com <>1998-09-02 03:54:24 +0000
commit139b556d6a65ed43bcb7c945bd66624c5ecae495 (patch)
treeb71e14a7c201b0c4c7d37392a2c982543bff4428 /editparams.cgi
parent8d308d6277ed3a618131f4db785ff25b5a9705d3 (diff)
downloadbugs-139b556d6a65ed43bcb7c945bd66624c5ecae495.tar
bugs-139b556d6a65ed43bcb7c945bd66624c5ecae495.tar.gz
bugs-139b556d6a65ed43bcb7c945bd66624c5ecae495.tar.bz2
bugs-139b556d6a65ed43bcb7c945bd66624c5ecae495.tar.xz
bugs-139b556d6a65ed43bcb7c945bd66624c5ecae495.zip
Use POST, not GET. Allow for boolean params.
Diffstat (limited to 'editparams.cgi')
-rwxr-xr-xeditparams.cgi16
1 files changed, 15 insertions, 1 deletions
diff --git a/editparams.cgi b/editparams.cgi
index a0a400419..a95fe8d92 100755
--- a/editparams.cgi
+++ b/editparams.cgi
@@ -40,7 +40,7 @@ puts "This lets you edit the basic operating parameters of bugzilla. Be careful
puts "<p>"
puts "Any item you check Reset on will get reset to its default value."
-puts "<form method=get action=doeditparams.cgi><table>"
+puts "<form method=post action=doeditparams.cgi><table>"
set rowbreak "<tr><td colspan=2><hr></td></tr>"
puts $rowbreak
@@ -56,6 +56,20 @@ foreach i $param_list {
l {
puts "<textarea wrap=hard name=$i rows=10 cols=80>[value_quote $value]</textarea>"
}
+ b {
+ if {$value} {
+ set on "checked"
+ set off ""
+ } else {
+ set on ""
+ set off "checked"
+ }
+ puts "<input type=radio name=$i value=1 $on>On "
+ puts "<input type=radio name=$i value=0 $off>Off"
+ }
+ default {
+ puts "<font color=red><blink>Unknown param type $param_type($i)!!!</blink></font>"
+ }
}
puts "</td></tr>"
puts $rowbreak