summaryrefslogtreecommitdiff
path: root/swat/esptest/include.esp
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-05-27 00:31:41 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:17:04 -0500
commit26a8394ee92443ce2a9688bc01a02df4c2ad74fa (patch)
treeb31846a79fa577cf2f370ab62d7baae3cdad22ad /swat/esptest/include.esp
parentfc45b63e478f6f891f0d04bf49423be30a63617d (diff)
downloadsamba-26a8394ee92443ce2a9688bc01a02df4c2ad74fa.tar.gz
samba-26a8394ee92443ce2a9688bc01a02df4c2ad74fa.tar.bz2
samba-26a8394ee92443ce2a9688bc01a02df4c2ad74fa.zip
r6999: - renamed our html files to esp
- added a favicon.ico so bookmarks show a samba icon - added a session.esp demonstration of session variables (This used to be commit 092ffc733916f8091c8ff1e7a1306810e516d613)
Diffstat (limited to 'swat/esptest/include.esp')
-rw-r--r--swat/esptest/include.esp22
1 files changed, 22 insertions, 0 deletions
diff --git a/swat/esptest/include.esp b/swat/esptest/include.esp
new file mode 100644
index 0000000000..9b67a768da
--- /dev/null
+++ b/swat/esptest/include.esp
@@ -0,0 +1,22 @@
+<HTML>
+<TITLE>
+Samba4 ESP test
+</TITLE>
+<BODY>
+including /scripting/test.ejs<p>
+<% include("/scripting/test.ejs"); %>
+calling a function from test.ejs ...<p>
+<% showArray("request", request); %>
+
+including /scripting/test.esp<p>
+<% include /scripting/test.esp %>
+calling a function from test.esp ...<p>
+<% res = testfn('foo'); %>
+result is: @@res
+
+<form name="Cancel" method="POST" action="index.esp">
+ <input name="submit" type="submit" value="Cancel"><br>
+</form>
+
+</BODY>
+</HTML>