aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/ApplicationPlugins/RemoteController
diff options
context:
space:
mode:
authorAdam Frisby2008-01-15 02:09:55 +0000
committerAdam Frisby2008-01-15 02:09:55 +0000
commitb25f9f322cdbcde7fd8c043137bf07992e5ef318 (patch)
tree7c1a5115b2849dfe388b825dd271271d347f9574 /OpenSim/ApplicationPlugins/RemoteController
parentSet svn:eol-style. (diff)
downloadopensim-SC-b25f9f322cdbcde7fd8c043137bf07992e5ef318.zip
opensim-SC-b25f9f322cdbcde7fd8c043137bf07992e5ef318.tar.gz
opensim-SC-b25f9f322cdbcde7fd8c043137bf07992e5ef318.tar.bz2
opensim-SC-b25f9f322cdbcde7fd8c043137bf07992e5ef318.tar.xz
* Mother of all commits:
* Cleaned up copyright notices in AssemblyInfo.cs's * Added Copyright headers to a bunch of files missing them * Replaced several common string instances with a static constant to prevent reallocation of the same strings thousands of times. "" -> String.Empty is the first such candidate.
Diffstat (limited to '')
-rw-r--r--OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs14
1 files changed, 7 insertions, 7 deletions
diff --git a/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs b/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs
index cce58c2..fa76078 100644
--- a/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs
+++ b/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs
@@ -48,7 +48,7 @@ namespace OpenSim.ApplicationPlugins.LoadRegions
48 { 48 {
49 private OpenSimMain m_app; 49 private OpenSimMain m_app;
50 private BaseHttpServer m_httpd; 50 private BaseHttpServer m_httpd;
51 private string requiredPassword = ""; 51 private string requiredPassword = String.Empty;
52 52
53 public void Initialise(OpenSimMain openSim) 53 public void Initialise(OpenSimMain openSim)
54 { 54 {
@@ -57,7 +57,7 @@ namespace OpenSim.ApplicationPlugins.LoadRegions
57 if (openSim.ConfigSource.Configs["RemoteAdmin"].GetBoolean("enabled", false)) 57 if (openSim.ConfigSource.Configs["RemoteAdmin"].GetBoolean("enabled", false))
58 { 58 {
59 MainLog.Instance.Verbose("RADMIN", "Remote Admin Plugin Enabled"); 59 MainLog.Instance.Verbose("RADMIN", "Remote Admin Plugin Enabled");
60 requiredPassword = openSim.ConfigSource.Configs["RemoteAdmin"].GetString("access_password", ""); 60 requiredPassword = openSim.ConfigSource.Configs["RemoteAdmin"].GetString("access_password", String.Empty);
61 61
62 m_app = openSim; 62 m_app = openSim;
63 m_httpd = openSim.HttpServer; 63 m_httpd = openSim.HttpServer;
@@ -83,7 +83,7 @@ namespace OpenSim.ApplicationPlugins.LoadRegions
83 LLUUID regionID = new LLUUID((string) requestData["regionID"]); 83 LLUUID regionID = new LLUUID((string) requestData["regionID"]);
84 84
85 Hashtable responseData = new Hashtable(); 85 Hashtable responseData = new Hashtable();
86 if (requiredPassword != "" && 86 if (requiredPassword != String.Empty &&
87 (!requestData.Contains("password") || (string) requestData["password"] != requiredPassword)) 87 (!requestData.Contains("password") || (string) requestData["password"] != requiredPassword))
88 { 88 {
89 responseData["accepted"] = "false"; 89 responseData["accepted"] = "false";
@@ -116,7 +116,7 @@ namespace OpenSim.ApplicationPlugins.LoadRegions
116 Hashtable requestData = (Hashtable) request.Params[0]; 116 Hashtable requestData = (Hashtable) request.Params[0];
117 117
118 Hashtable responseData = new Hashtable(); 118 Hashtable responseData = new Hashtable();
119 if (requiredPassword != "" && 119 if (requiredPassword != String.Empty &&
120 (!requestData.Contains("password") || (string) requestData["password"] != requiredPassword)) 120 (!requestData.Contains("password") || (string) requestData["password"] != requiredPassword))
121 { 121 {
122 responseData["accepted"] = "false"; 122 responseData["accepted"] = "false";
@@ -142,7 +142,7 @@ namespace OpenSim.ApplicationPlugins.LoadRegions
142 Hashtable requestData = (Hashtable)request.Params[0]; 142 Hashtable requestData = (Hashtable)request.Params[0];
143 143
144 Hashtable responseData = new Hashtable(); 144 Hashtable responseData = new Hashtable();
145 if (requiredPassword != "" && 145 if (requiredPassword != String.Empty &&
146 (!requestData.Contains("password") || (string)requestData["password"] != requiredPassword)) 146 (!requestData.Contains("password") || (string)requestData["password"] != requiredPassword))
147 { 147 {
148 responseData["accepted"] = "false"; 148 responseData["accepted"] = "false";
@@ -180,7 +180,7 @@ namespace OpenSim.ApplicationPlugins.LoadRegions
180 XmlRpcResponse response = new XmlRpcResponse(); 180 XmlRpcResponse response = new XmlRpcResponse();
181 Hashtable requestData = (Hashtable) request.Params[0]; 181 Hashtable requestData = (Hashtable) request.Params[0];
182 Hashtable responseData = new Hashtable(); 182 Hashtable responseData = new Hashtable();
183 if (requiredPassword != "" && 183 if (requiredPassword != String.Empty &&
184 (!requestData.Contains("password") || (string) requestData["password"] != requiredPassword)) 184 (!requestData.Contains("password") || (string) requestData["password"] != requiredPassword))
185 { 185 {
186 responseData["accepted"] = "false"; 186 responseData["accepted"] = "false";
@@ -236,7 +236,7 @@ namespace OpenSim.ApplicationPlugins.LoadRegions
236 XmlRpcResponse response = new XmlRpcResponse(); 236 XmlRpcResponse response = new XmlRpcResponse();
237 Hashtable requestData = (Hashtable) request.Params[0]; 237 Hashtable requestData = (Hashtable) request.Params[0];
238 Hashtable responseData = new Hashtable(); 238 Hashtable responseData = new Hashtable();
239 if (requiredPassword != "" && 239 if (requiredPassword != System.String.Empty &&
240 (!requestData.Contains("password") || (string) requestData["password"] != requiredPassword)) 240 (!requestData.Contains("password") || (string) requestData["password"] != requiredPassword))
241 { 241 {
242 responseData["created"] = "false"; 242 responseData["created"] = "false";