1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00
samba-mirror/swat/scripting/general_calls.esp
Andrew Bartlett f8573766bc r24985: Start to revert us back to the old-style SWAT, while trying not to
loose some of the fixes in the meantime.

Andrew Bartlett
(This used to be commit 13acff5ed2)
2007-10-10 15:05:21 -05:00

26 lines
424 B
Plaintext

<%
/*
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();
%>