summaryrefslogtreecommitdiff
path: root/swat.obsolete/scripting/server/status.esp
blob: 8ca2067d49bbbbfb260b6ced5d9409bd65afc4e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<%

libinclude("management.js");
libinclude("server_call.js");

function serverInfo()
{
	var info = new Object();
	info["NBT Server"]      = server_status("nbt");
	info["WINS Server"]     = server_status("wins");
	info["CLDAP Server"]    = server_status("cldap");
	info["Kerberos Server"] = server_status("kdc");
	info["SMB Server"]      = stream_server_status("smb");
	info["LDAP Server"]     = stream_server_status("ldap");
	info["RPC Server"]      = stream_server_status("rpc");

	return info;
}

/* register a call for clients to make */
var call = servCallObj();
call.add('serverInfo', serverInfo);

/* run the function that was asked for */
call.run();

%>