diff options
author | Adam Frisby | 2007-12-03 07:14:58 +0000 |
---|---|---|
committer | Adam Frisby | 2007-12-03 07:14:58 +0000 |
commit | c8faccb396c17183fd66a5fddc814461aad0cddb (patch) | |
tree | 09f5c9a01be1b111e266128a614d8ad5451b52ad /OpenSim | |
parent | set svn:eol-style (diff) | |
download | opensim-SC_OLD-c8faccb396c17183fd66a5fddc814461aad0cddb.zip opensim-SC_OLD-c8faccb396c17183fd66a5fddc814461aad0cddb.tar.gz opensim-SC_OLD-c8faccb396c17183fd66a5fddc814461aad0cddb.tar.bz2 opensim-SC_OLD-c8faccb396c17183fd66a5fddc814461aad0cddb.tar.xz |
* Added XMLRPC Broadcast Alert method.
* Renamed a few console messages to match the new "RADMIN" tag for remote-admin stuff.
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs b/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs index d4a11d9..8cd6fc6 100644 --- a/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs +++ b/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs | |||
@@ -36,12 +36,30 @@ namespace OpenSim.ApplicationPlugins.LoadRegions | |||
36 | 36 | ||
37 | m_httpd.AddXmlRPCHandler("admin_create_region", XmlRpcCreateRegionMethod); | 37 | m_httpd.AddXmlRPCHandler("admin_create_region", XmlRpcCreateRegionMethod); |
38 | m_httpd.AddXmlRPCHandler("admin_shutdown", XmlRpcShutdownMethod); | 38 | m_httpd.AddXmlRPCHandler("admin_shutdown", XmlRpcShutdownMethod); |
39 | m_httpd.AddXmlRPCHandler("admin_broadcast", XmlRpcAlertMethod); | ||
39 | } | 40 | } |
40 | } | 41 | } |
41 | 42 | ||
43 | public XmlRpcResponse XmlRpcAlertMethod(XmlRpcRequest request) | ||
44 | { | ||
45 | XmlRpcResponse response = new XmlRpcResponse(); | ||
46 | Hashtable requestData = (Hashtable)request.Params[0]; | ||
47 | |||
48 | string message = (string)requestData["message"]; | ||
49 | MainLog.Instance.Verbose("RADMIN", "Broadcasting: " + message); | ||
50 | |||
51 | Hashtable responseData = new Hashtable(); | ||
52 | responseData["accepted"] = "true"; | ||
53 | response.Value = responseData; | ||
54 | |||
55 | m_app.SceneManager.SendGeneralMessage(message); | ||
56 | |||
57 | return response; | ||
58 | } | ||
59 | |||
42 | public XmlRpcResponse XmlRpcShutdownMethod(XmlRpcRequest request) | 60 | public XmlRpcResponse XmlRpcShutdownMethod(XmlRpcRequest request) |
43 | { | 61 | { |
44 | MainLog.Instance.Verbose("CONTROLLER", "Recieved Shutdown Administrator Request"); | 62 | MainLog.Instance.Verbose("RADMIN", "Recieved Shutdown Administrator Request"); |
45 | XmlRpcResponse response = new XmlRpcResponse(); | 63 | XmlRpcResponse response = new XmlRpcResponse(); |
46 | Hashtable requestData = (Hashtable)request.Params[0]; | 64 | Hashtable requestData = (Hashtable)request.Params[0]; |
47 | 65 | ||
@@ -89,7 +107,7 @@ namespace OpenSim.ApplicationPlugins.LoadRegions | |||
89 | 107 | ||
90 | public XmlRpcResponse XmlRpcCreateRegionMethod(XmlRpcRequest request) | 108 | public XmlRpcResponse XmlRpcCreateRegionMethod(XmlRpcRequest request) |
91 | { | 109 | { |
92 | MainLog.Instance.Verbose("CONTROLLER", "Recieved Create Region Administrator Request"); | 110 | MainLog.Instance.Verbose("RADMIN", "Recieved Create Region Administrator Request"); |
93 | XmlRpcResponse response = new XmlRpcResponse(); | 111 | XmlRpcResponse response = new XmlRpcResponse(); |
94 | Hashtable requestData = (Hashtable)request.Params[0]; | 112 | Hashtable requestData = (Hashtable)request.Params[0]; |
95 | 113 | ||