diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs | 11 | ||||
-rw-r--r-- | OpenSim/Framework/UserProfileData.cs | 8 |
2 files changed, 14 insertions, 5 deletions
diff --git a/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs b/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs index c79122c..ec28350 100644 --- a/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs +++ b/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs | |||
@@ -33,6 +33,7 @@ using System.Reflection; | |||
33 | using System.Timers; | 33 | using System.Timers; |
34 | using libsecondlife; | 34 | using libsecondlife; |
35 | using log4net; | 35 | using log4net; |
36 | using Nini.Config; | ||
36 | using Nwc.XmlRpc; | 37 | using Nwc.XmlRpc; |
37 | using OpenSim.Framework; | 38 | using OpenSim.Framework; |
38 | using OpenSim.Framework.Servers; | 39 | using OpenSim.Framework.Servers; |
@@ -47,6 +48,7 @@ namespace OpenSim.ApplicationPlugins.RemoteController | |||
47 | 48 | ||
48 | private OpenSimBase m_app; | 49 | private OpenSimBase m_app; |
49 | private BaseHttpServer m_httpd; | 50 | private BaseHttpServer m_httpd; |
51 | private IConfig m_config; | ||
50 | private string requiredPassword = String.Empty; | 52 | private string requiredPassword = String.Empty; |
51 | 53 | ||
52 | // TODO: required by IPlugin, but likely not at all right | 54 | // TODO: required by IPlugin, but likely not at all right |
@@ -69,8 +71,9 @@ namespace OpenSim.ApplicationPlugins.RemoteController | |||
69 | if (openSim.ConfigSource.Source.Configs["RemoteAdmin"] != null && | 71 | if (openSim.ConfigSource.Source.Configs["RemoteAdmin"] != null && |
70 | openSim.ConfigSource.Source.Configs["RemoteAdmin"].GetBoolean("enabled", false)) | 72 | openSim.ConfigSource.Source.Configs["RemoteAdmin"].GetBoolean("enabled", false)) |
71 | { | 73 | { |
74 | m_config = openSim.ConfigSource.Source.Configs["RemoteAdmin"]; | ||
72 | m_log.Info("[RADMIN]: Remote Admin Plugin Enabled"); | 75 | m_log.Info("[RADMIN]: Remote Admin Plugin Enabled"); |
73 | requiredPassword = openSim.ConfigSource.Source.Configs["RemoteAdmin"].GetString("access_password", String.Empty); | 76 | requiredPassword = m_config.GetString("access_password", String.Empty); |
74 | 77 | ||
75 | m_app = openSim; | 78 | m_app = openSim; |
76 | m_httpd = openSim.HttpServer; | 79 | m_httpd = openSim.HttpServer; |
@@ -436,10 +439,12 @@ namespace OpenSim.ApplicationPlugins.RemoteController | |||
436 | if (persist) | 439 | if (persist) |
437 | { | 440 | { |
438 | string regionConfigPath = Path.Combine(Path.Combine(Util.configDir(), "Regions"), | 441 | string regionConfigPath = Path.Combine(Path.Combine(Util.configDir(), "Regions"), |
439 | String.Format("{0}x{1}-{2}.xml", | 442 | String.Format(m_config.GetString("region_file_template", "{0}x{1}-{2}.xml"), |
440 | region.RegionLocX.ToString(), | 443 | region.RegionLocX.ToString(), |
441 | region.RegionLocY.ToString(), | 444 | region.RegionLocY.ToString(), |
442 | regionID.ToString())); | 445 | regionID.ToString(), |
446 | region.InternalEndPoint.Port.ToString(), | ||
447 | region.RegionName.Replace(" ", "_").Replace(":", "_").Replace("/", "_"))); | ||
443 | m_log.DebugFormat("[RADMIN] CreateRegion: persisting region {0} to {1}", | 448 | m_log.DebugFormat("[RADMIN] CreateRegion: persisting region {0} to {1}", |
444 | region.RegionID, regionConfigPath); | 449 | region.RegionID, regionConfigPath); |
445 | region.SaveRegionToFile("dynamic region", regionConfigPath); | 450 | region.SaveRegionToFile("dynamic region", regionConfigPath); |
diff --git a/OpenSim/Framework/UserProfileData.cs b/OpenSim/Framework/UserProfileData.cs index d0b4c25..2d06148 100644 --- a/OpenSim/Framework/UserProfileData.cs +++ b/OpenSim/Framework/UserProfileData.cs | |||
@@ -145,7 +145,9 @@ namespace OpenSim.Framework | |||
145 | private LLUUID _partner; | 145 | private LLUUID _partner; |
146 | 146 | ||
147 | /// <summary> | 147 | /// <summary> |
148 | /// The regionhandle of the users preffered home region. If multiple sims occupy the same spot, the grid may decide which region the user logs into | 148 | /// The regionhandle of the users preferred home region. If |
149 | /// multiple sims occupy the same spot, the grid may decide | ||
150 | /// which region the user logs into | ||
149 | /// </summary> | 151 | /// </summary> |
150 | public virtual ulong HomeRegion | 152 | public virtual ulong HomeRegion |
151 | { | 153 | { |
@@ -159,7 +161,9 @@ namespace OpenSim.Framework | |||
159 | 161 | ||
160 | private LLUUID _homeRegionID; | 162 | private LLUUID _homeRegionID; |
161 | /// <summary> | 163 | /// <summary> |
162 | /// The regionID of the users home region. This is unique; even if the position of the region changes within the grid, this will refer to the same region. | 164 | /// The regionID of the users home region. This is unique; |
165 | /// even if the position of the region changes within the | ||
166 | /// grid, this will refer to the same region. | ||
163 | /// </summary> | 167 | /// </summary> |
164 | public LLUUID HomeRegionID | 168 | public LLUUID HomeRegionID |
165 | { | 169 | { |