From ff8ef6c280a7107ce521eee57df9218b4cac0465 Mon Sep 17 00:00:00 2001 From: Derrell Lipman Date: Sat, 16 Dec 2006 19:07:37 +0000 Subject: r20220: Apply patch from Brad Henry with some additional qooxdoo/json-rpc SWAT functionality: basic admin console. (This used to be commit 23f8dd44cbf85e05e4b3d38de9ed7798dd21defb) --- services/samba/adm.esp | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 services/samba/adm.esp (limited to 'services') diff --git a/services/samba/adm.esp b/services/samba/adm.esp new file mode 100644 index 0000000000..2fd0ec2f97 --- /dev/null +++ b/services/samba/adm.esp @@ -0,0 +1,22 @@ +<% + +jsonrpc_include("resources.esp"); + +libinclude("base.js"); +libinclude("management.js"); + +function _echo(params, error) { + var echo_string = params[0]; + return echo_string; +} +jsonrpc.method.echo = _echo; + +function _nbt_packet_stats(params, error) { + var stats = nbtd_statistics(); + stats.server_status = new Object(); + stats.server_status = server_status("nbt"); + return stats; +} +jsonrpc.method.NBTPacketStats = _nbt_packet_stats; + +%> -- cgit