r6999: - renamed our html files to esp
[samba.git] / swat / esptest / showvars.esp
similarity index 68%
rename from swat/esptest/showvars.html
rename to swat/esptest/showvars.esp
index 4c4a5b93f44b59c58954de17836d06c19f2d46f6..04bfb7b1f629c7735145c142ec0e09aab82d9ee9 100644 (file)
@@ -8,12 +8,15 @@ Samba4 ESP test
 <%
    function showArray(name, array) {
       write("<h3>Array: " + name + "</h3>\n");
-      for (v in array) {
-            write(name + "[" + v + "]=" + array[v] + "<br>\n");
+      if (array == undefined) {
+        write("undefined<br>\n");
+      } else {
+            for (v in array) {
+                 write(name + "[" + v + "]=" + array[v] + "<br>\n");
+           }
       }
    }
 
-   showArray("form",    form);
    showArray("headers", headers);
    showArray("application", application);
    showArray("cookies", cookies);
@@ -23,7 +26,7 @@ Samba4 ESP test
    showArray("session", session);
 %>
 
-<form name="Cancel" method="POST" action="index.html"> 
+<form name="Cancel" method="POST" action="index.esp"> 
     <input name="submit" type="submit" value="Cancel"><br>
 </form>