1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
samba-mirror/webapps/scripting/general_calls.esp
Derrell Lipman 626bb8efb0 r20517: re-add cleaned-up webapps
(This used to be commit 5a3d6ad0b7)
2007-10-10 14:36:09 -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();
%>