diff --git a/swat/esptest/index.esp b/swat/esptest/index.esp index f229732e3e3..e85937e4bf7 100644 --- a/swat/esptest/index.esp +++ b/swat/esptest/index.esp @@ -1,5 +1,5 @@ <% - var tests = new Array("formtest", "showvars", "include", "session"); + var tests = new Array("formtest", "showvars", "include", "session", "loadparm"); %> diff --git a/swat/esptest/loadparm.esp b/swat/esptest/loadparm.esp new file mode 100644 index 00000000000..b5f3c86b1d9 --- /dev/null +++ b/swat/esptest/loadparm.esp @@ -0,0 +1,74 @@ + +
\n"); +} + + +if (request['REQUEST_METHOD'] == "POST") { + /* if they cancelled then take them back to the list of tests */ + if (form['submit'] == "Cancel") { + redirect("index.esp"); + } + + var v; + + share = form['Share']; + name = form['Name']; + if (share && name) { + v = lpGet(share, name); + } else if (name) { + v = lpGet(name); + } + + showValue(name, v); +} +%> + +Here are some commonly used parameters:
+ +<% +function showParameter(name) { + showValue(name, lpGet(name)); +} + +showParameter("server services"); +showParameter("netbios name"); +showParameter("security"); +showParameter("workgroup"); +showParameter("log level"); +showParameter("server signing"); +showParameter("interfaces"); +%> + + +