aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Communications/OGS1
diff options
context:
space:
mode:
authorTeravus Ovares2008-03-03 08:30:36 +0000
committerTeravus Ovares2008-03-03 08:30:36 +0000
commitfe49c96ee0db0974a91b9b175ac1b00aef035797 (patch)
tree27fb1de9eea228d2e89e1c5b1c83cca8577b3bd9 /OpenSim/Region/Communications/OGS1
parent* Doh, forgot one license header (diff)
downloadopensim-SC-fe49c96ee0db0974a91b9b175ac1b00aef035797.zip
opensim-SC-fe49c96ee0db0974a91b9b175ac1b00aef035797.tar.gz
opensim-SC-fe49c96ee0db0974a91b9b175ac1b00aef035797.tar.bz2
opensim-SC-fe49c96ee0db0974a91b9b175ac1b00aef035797.tar.xz
* Applying Ahzz's profile patch. Thanks Ahzz!
* Fixed a few bugs in the patch that are sim crashers. * There's still a bug in mySQL mode/ grid mode where the main userprofile text doesn't save.
Diffstat (limited to 'OpenSim/Region/Communications/OGS1')
-rw-r--r--OpenSim/Region/Communications/OGS1/OGS1UserServices.cs42
1 files changed, 42 insertions, 0 deletions
diff --git a/OpenSim/Region/Communications/OGS1/OGS1UserServices.cs b/OpenSim/Region/Communications/OGS1/OGS1UserServices.cs
index 8ad4468..7dcbb46 100644
--- a/OpenSim/Region/Communications/OGS1/OGS1UserServices.cs
+++ b/OpenSim/Region/Communications/OGS1/OGS1UserServices.cs
@@ -270,6 +270,48 @@ namespace OpenSim.Region.Communications.OGS1
270 throw new Exception("The method or operation is not implemented."); 270 throw new Exception("The method or operation is not implemented.");
271 } 271 }
272 272
273 public bool UpdateUserProfileProperties(UserProfileData UserProfile)
274 {
275 m_log.Debug("[OGS1UserService]: Asking UserServer to update profile.");
276 Hashtable param = new Hashtable();
277 param["avatar_uuid"] = UserProfile.UUID.ToString();
278 //param["AllowPublish"] = UserProfile.ToString();
279 param["FLImageID"] = UserProfile.profileFirstImage.ToString();
280 param["ImageID"] = UserProfile.profileImage.ToString();
281 //param["MaturePublish"] = MaturePublish.ToString();
282 param["AboutText"] = UserProfile.profileAboutText;
283 param["FLAboutText"] = UserProfile.profileFirstText;
284 //param["ProfileURL"] = UserProfile.ProfileURL.ToString();
285 IList parameters = new ArrayList();
286 parameters.Add(param);
287
288 XmlRpcRequest req = new XmlRpcRequest("update_user_profile", parameters);
289 XmlRpcResponse resp = req.Send(m_parent.NetworkServersInfo.UserURL, 3000);
290 Hashtable respData = (Hashtable)resp.Value;
291 if (respData != null)
292 {
293 if (respData.Contains("returnString"))
294 {
295 if (((string)respData["returnString"]).ToUpper() != "TRUE")
296 {
297 m_log.Warn("[GRID]: Unable to update user profile, User Server Reported an issue");
298 return false;
299 }
300 }
301 else
302 {
303 m_log.Warn("[GRID]: Unable to update user profile, UserServer didn't understand me!");
304 return false;
305 }
306 }
307 else
308 {
309 m_log.Warn("[GRID]: Unable to update user profile, UserServer didn't understand me!");
310 return false;
311 }
312 return true;
313 }
314
273 #region IUserServices Friend Methods 315 #region IUserServices Friend Methods
274 /// <summary> 316 /// <summary>
275 /// Adds a new friend to the database for XUser 317 /// Adds a new friend to the database for XUser