aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs17
1 files changed, 17 insertions, 0 deletions
diff --git a/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs b/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs
index 355f7b3..ad683b8 100644
--- a/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs
+++ b/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs
@@ -157,6 +157,7 @@ namespace OpenSim.ApplicationPlugins.RemoteController
157 availableMethods["admin_acl_add"] = (req, ep) => InvokeXmlRpcMethod(req, ep, XmlRpcAccessListAdd); 157 availableMethods["admin_acl_add"] = (req, ep) => InvokeXmlRpcMethod(req, ep, XmlRpcAccessListAdd);
158 availableMethods["admin_acl_remove"] = (req, ep) => InvokeXmlRpcMethod(req, ep, XmlRpcAccessListRemove); 158 availableMethods["admin_acl_remove"] = (req, ep) => InvokeXmlRpcMethod(req, ep, XmlRpcAccessListRemove);
159 availableMethods["admin_acl_list"] = (req, ep) => InvokeXmlRpcMethod(req, ep, XmlRpcAccessListList); 159 availableMethods["admin_acl_list"] = (req, ep) => InvokeXmlRpcMethod(req, ep, XmlRpcAccessListList);
160 availableMethods["admin_estate_reload"] = (req, ep) => InvokeXmlRpcMethod(req, ep, XmlRpcEstateReload);
160 161
161 // Either enable full remote functionality or just selected features 162 // Either enable full remote functionality or just selected features
162 string enabledMethods = m_config.GetString("enabled_methods", "all"); 163 string enabledMethods = m_config.GetString("enabled_methods", "all");
@@ -1762,6 +1763,22 @@ namespace OpenSim.ApplicationPlugins.RemoteController
1762 m_log.Info("[RADMIN]: Access List List Request complete"); 1763 m_log.Info("[RADMIN]: Access List List Request complete");
1763 } 1764 }
1764 1765
1766 private void XmlRpcEstateReload(XmlRpcRequest request, XmlRpcResponse response, IPEndPoint remoteClient)
1767 {
1768 m_log.Info("[RADMIN]: Received Estate Reload Request");
1769
1770 Hashtable responseData = (Hashtable)response.Value;
1771 Hashtable requestData = (Hashtable)request.Params[0];
1772
1773 m_application.SceneManager.ForEachScene(s =>
1774 s.RegionInfo.EstateSettings = m_application.EstateDataService.LoadEstateSettings(s.RegionInfo.RegionID, false)
1775 );
1776
1777 responseData["success"] = true;
1778
1779 m_log.Info("[RADMIN]: Estate Reload Request complete");
1780 }
1781
1765 private void XmlRpcGetAgentsMethod(XmlRpcRequest request, XmlRpcResponse response, IPEndPoint remoteClient) 1782 private void XmlRpcGetAgentsMethod(XmlRpcRequest request, XmlRpcResponse response, IPEndPoint remoteClient)
1766 { 1783 {
1767 Hashtable responseData = (Hashtable)response.Value; 1784 Hashtable responseData = (Hashtable)response.Value;