aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorDr Scofield2008-08-21 11:04:57 +0000
committerDr Scofield2008-08-21 11:04:57 +0000
commitff2eb24022f906ea20e673756d2b72162e707491 (patch)
tree8d28bafebf7530fd9f1ee291f3267b30fc2134bf /OpenSim
parentfixing Rest/Inventory stuff again. changes somehow got lost locally. (diff)
downloadopensim-SC-ff2eb24022f906ea20e673756d2b72162e707491.zip
opensim-SC-ff2eb24022f906ea20e673756d2b72162e707491.tar.gz
opensim-SC-ff2eb24022f906ea20e673756d2b72162e707491.tar.bz2
opensim-SC-ff2eb24022f906ea20e673756d2b72162e707491.tar.xz
- corrects statement about {asset,user,inventory} source configuration
as those all work with MySQL (and are in fact required it seems); adds examples as well - adds region_file_template functionality for the create_region XmlRpc call of RemoteAdminPlugin - cleans up and fixes typo in UserProfileData
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs11
-rw-r--r--OpenSim/Framework/UserProfileData.cs8
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;
33using System.Timers; 33using System.Timers;
34using libsecondlife; 34using libsecondlife;
35using log4net; 35using log4net;
36using Nini.Config;
36using Nwc.XmlRpc; 37using Nwc.XmlRpc;
37using OpenSim.Framework; 38using OpenSim.Framework;
38using OpenSim.Framework.Servers; 39using 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 {