aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/ClientStack/Linden/Caps/RegionConsoleModule.cs10
-rwxr-xr-xOpenSim/Region/Framework/Scenes/Scene.cs24
-rw-r--r--OpenSim/Server/Handlers/Map/MapGetServerConnector.cs15
-rw-r--r--OpenSim/Services/MapImageService/MapImageService.cs4
4 files changed, 46 insertions, 7 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/Caps/RegionConsoleModule.cs b/OpenSim/Region/ClientStack/Linden/Caps/RegionConsoleModule.cs
index e8387e3..1f229c0 100644
--- a/OpenSim/Region/ClientStack/Linden/Caps/RegionConsoleModule.cs
+++ b/OpenSim/Region/ClientStack/Linden/Caps/RegionConsoleModule.cs
@@ -104,8 +104,8 @@ namespace OpenSim.Region.ClientStack.Linden
104 104
105 public void RegisterCaps(UUID agentID, Caps caps) 105 public void RegisterCaps(UUID agentID, Caps caps)
106 { 106 {
107 if (!m_scene.RegionInfo.EstateSettings.IsEstateManagerOrOwner(agentID) && !m_scene.Permissions.IsGod(agentID)) 107// if (!m_scene.RegionInfo.EstateSettings.IsEstateManagerOrOwner(agentID) && !m_scene.Permissions.IsGod(agentID))
108 return; 108// return;
109 109
110 UUID capID = UUID.Random(); 110 UUID capID = UUID.Random();
111 111
@@ -191,6 +191,12 @@ namespace OpenSim.Region.ClientStack.Linden
191 191
192 OSD osd = OSDParser.DeserializeLLSDXml(message); 192 OSD osd = OSDParser.DeserializeLLSDXml(message);
193 193
194 if (!m_scene.RegionInfo.EstateSettings.IsEstateManagerOrOwner(m_agentID) && !m_isGod)
195 {
196 m_consoleModule.SendConsoleOutput(m_agentID, "No access");
197 return new byte[0];
198 }
199
194 string cmd = osd.AsString(); 200 string cmd = osd.AsString();
195 if (cmd == "set console on") 201 if (cmd == "set console on")
196 { 202 {
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs
index 0312262..7668a87 100755
--- a/OpenSim/Region/Framework/Scenes/Scene.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.cs
@@ -1775,6 +1775,30 @@ namespace OpenSim.Region.Framework.Scenes
1775 1775
1776 // Region ready should always be set 1776 // Region ready should always be set
1777 Ready = true; 1777 Ready = true;
1778
1779
1780 IConfig restartConfig = m_config.Configs["RestartModule"];
1781 if (restartConfig != null)
1782 {
1783 string markerPath = restartConfig.GetString("MarkerPath", String.Empty);
1784
1785 if (markerPath != String.Empty)
1786 {
1787 string path = Path.Combine(markerPath, RegionInfo.RegionID.ToString() + ".ready");
1788 try
1789 {
1790 string pidstring = System.Diagnostics.Process.GetCurrentProcess().Id.ToString();
1791 FileStream fs = File.Create(path);
1792 System.Text.ASCIIEncoding enc = new System.Text.ASCIIEncoding();
1793 Byte[] buf = enc.GetBytes(pidstring);
1794 fs.Write(buf, 0, buf.Length);
1795 fs.Close();
1796 }
1797 catch (Exception)
1798 {
1799 }
1800 }
1801 }
1778 } 1802 }
1779 else 1803 else
1780 { 1804 {
diff --git a/OpenSim/Server/Handlers/Map/MapGetServerConnector.cs b/OpenSim/Server/Handlers/Map/MapGetServerConnector.cs
index 1ae669c..017927a 100644
--- a/OpenSim/Server/Handlers/Map/MapGetServerConnector.cs
+++ b/OpenSim/Server/Handlers/Map/MapGetServerConnector.cs
@@ -98,11 +98,20 @@ namespace OpenSim.Server.Handlers.MapImage
98// UUID scopeID = new UUID("07f8d88e-cd5e-4239-a0ed-843f75d09992"); 98// UUID scopeID = new UUID("07f8d88e-cd5e-4239-a0ed-843f75d09992");
99 UUID scopeID = UUID.Zero; 99 UUID scopeID = UUID.Zero;
100 100
101 // This will be map/tilefile.ext, but on multitenancy it will be
102 // map/scope/teilefile.ext
101 string[] bits = path.Trim('/').Split(new char[] {'/'}); 103 string[] bits = path.Trim('/').Split(new char[] {'/'});
102 if (bits.Length > 1) 104 if (bits.Length > 2)
103 { 105 {
104 scopeID = new UUID(bits[0]); 106 try
105 path = bits[1]; 107 {
108 scopeID = new UUID(bits[1]);
109 }
110 catch
111 {
112 return new byte[9];
113 }
114 path = bits[2];
106 } 115 }
107 result = m_MapService.GetMapTile(path.Trim('/'), scopeID, out format); 116 result = m_MapService.GetMapTile(path.Trim('/'), scopeID, out format);
108 if (result.Length > 0) 117 if (result.Length > 0)
diff --git a/OpenSim/Services/MapImageService/MapImageService.cs b/OpenSim/Services/MapImageService/MapImageService.cs
index c90f5bd..30d3e41 100644
--- a/OpenSim/Services/MapImageService/MapImageService.cs
+++ b/OpenSim/Services/MapImageService/MapImageService.cs
@@ -239,7 +239,7 @@ namespace OpenSim.Services.MapImageService
239 239
240 public byte[] GetMapTile(string fileName, UUID scopeID, out string format) 240 public byte[] GetMapTile(string fileName, UUID scopeID, out string format)
241 { 241 {
242// m_log.DebugFormat("[MAP IMAGE SERVICE]: Getting map tile {0}", fileName); 242 //m_log.DebugFormat("[MAP IMAGE SERVICE]: Getting map tile {0}", fileName);
243 243
244 format = ".jpg"; 244 format = ".jpg";
245 string fullName = Path.Combine(m_TilesStoragePath, scopeID.ToString()); 245 string fullName = Path.Combine(m_TilesStoragePath, scopeID.ToString());
@@ -256,7 +256,7 @@ namespace OpenSim.Services.MapImageService
256 } 256 }
257 else 257 else
258 { 258 {
259 m_log.DebugFormat("[MAP IMAGE SERVICE]: unable to get file {0}", fileName); 259 //m_log.DebugFormat("[MAP IMAGE SERVICE]: unable to get file {0}", fileName);
260 return new byte[0]; 260 return new byte[0];
261 } 261 }
262 } 262 }