summaryrefslogtreecommitdiff
path: root/webapps/scripting/general_calls.esp
diff options
context:
space:
mode:
Diffstat (limited to 'webapps/scripting/general_calls.esp')
-rw-r--r--webapps/scripting/general_calls.esp25
1 files changed, 25 insertions, 0 deletions
diff --git a/webapps/scripting/general_calls.esp b/webapps/scripting/general_calls.esp
new file mode 100644
index 0000000000..f17c43205a
--- /dev/null
+++ b/webapps/scripting/general_calls.esp
@@ -0,0 +1,25 @@
+<%
+/*
+ used for general purpose calls
+*/
+libinclude("server_call.js");
+
+/* register a call for clients to make */
+var call = servCallObj();
+
+/*
+ a remote printf, for displaying stuff on smbd stdout
+*/
+function srv_printf()
+{
+ var s = string_init();
+ print(s.vsprintf(arguments));
+ return undefined;
+}
+
+/* add some basic calls */
+call.add('srv_printf', srv_printf);
+
+/* run the function that was asked for */
+call.run();
+%>