Formatting cleanup.
parent
4e30f862af
commit
9f7639fd6d
|
@ -115,7 +115,6 @@ namespace OpenSim.Framework.UserManagement
|
||||||
m_log.Info("[LOGIN]: Client Version " + clientversion + " for " + firstname + " " + lastname);
|
m_log.Info("[LOGIN]: Client Version " + clientversion + " for " + firstname + " " + lastname);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
userProfile = GetTheUser(firstname, lastname);
|
userProfile = GetTheUser(firstname, lastname);
|
||||||
if (userProfile == null)
|
if (userProfile == null)
|
||||||
{
|
{
|
||||||
|
@ -398,7 +397,6 @@ namespace OpenSim.Framework.UserManagement
|
||||||
|
|
||||||
public Hashtable ProcessHTMLLogin(Hashtable keysvals)
|
public Hashtable ProcessHTMLLogin(Hashtable keysvals)
|
||||||
{
|
{
|
||||||
|
|
||||||
// Matches all unspecified characters
|
// Matches all unspecified characters
|
||||||
// Currently specified,; lowercase letters, upper case letters, numbers, underline
|
// Currently specified,; lowercase letters, upper case letters, numbers, underline
|
||||||
// period, space, parens, and dash.
|
// period, space, parens, and dash.
|
||||||
|
@ -423,9 +421,9 @@ namespace OpenSim.Framework.UserManagement
|
||||||
// however, the data it sends when it loads the first time is 'firstname'
|
// however, the data it sends when it loads the first time is 'firstname'
|
||||||
// another one of those little nuances.
|
// another one of those little nuances.
|
||||||
|
|
||||||
|
|
||||||
if (keysvals.Contains("firstname"))
|
if (keysvals.Contains("firstname"))
|
||||||
firstname = wfcut.Replace((string)keysvals["firstname"], String.Empty, 99999);
|
firstname = wfcut.Replace((string)keysvals["firstname"], String.Empty, 99999);
|
||||||
|
|
||||||
if (keysvals.Contains("username"))
|
if (keysvals.Contains("username"))
|
||||||
firstname = wfcut.Replace((string)keysvals["username"], String.Empty, 99999);
|
firstname = wfcut.Replace((string)keysvals["username"], String.Empty, 99999);
|
||||||
|
|
||||||
|
@ -453,13 +451,11 @@ namespace OpenSim.Framework.UserManagement
|
||||||
if (keysvals.Contains("password"))
|
if (keysvals.Contains("password"))
|
||||||
password = wfcut.Replace((string)keysvals["password"], String.Empty, 99999);
|
password = wfcut.Replace((string)keysvals["password"], String.Empty, 99999);
|
||||||
|
|
||||||
|
|
||||||
// load our login form.
|
// load our login form.
|
||||||
string loginform = GetLoginForm(firstname, lastname, location, region, grid, channel, version, lang, password, errormessages);
|
string loginform = GetLoginForm(firstname, lastname, location, region, grid, channel, version, lang, password, errormessages);
|
||||||
|
|
||||||
if (keysvals.ContainsKey("show_login_form"))
|
if (keysvals.ContainsKey("show_login_form"))
|
||||||
{
|
{
|
||||||
|
|
||||||
UserProfileData user = GetTheUser(firstname, lastname);
|
UserProfileData user = GetTheUser(firstname, lastname);
|
||||||
bool goodweblogin = false;
|
bool goodweblogin = false;
|
||||||
|
|
||||||
|
@ -472,7 +468,8 @@ namespace OpenSim.Framework.UserManagement
|
||||||
m_userManager.StoreWebLoginKey(user.UUID, webloginkey);
|
m_userManager.StoreWebLoginKey(user.UUID, webloginkey);
|
||||||
statuscode = 301;
|
statuscode = 301;
|
||||||
|
|
||||||
string redirectURL = "about:blank?redirect-http-hack=" + System.Web.HttpUtility.UrlEncode("secondlife:///app/login?first_name=" + firstname + "&last_name=" +
|
string redirectURL = "about:blank?redirect-http-hack=" +
|
||||||
|
System.Web.HttpUtility.UrlEncode("secondlife:///app/login?first_name=" + firstname + "&last_name=" +
|
||||||
lastname +
|
lastname +
|
||||||
"&location=" + location + "&grid=Other&web_login_key=" + webloginkey.ToString());
|
"&location=" + location + "&grid=Other&web_login_key=" + webloginkey.ToString());
|
||||||
//m_log.Info("[WEB]: R:" + redirectURL);
|
//m_log.Info("[WEB]: R:" + redirectURL);
|
||||||
|
@ -487,11 +484,7 @@ namespace OpenSim.Framework.UserManagement
|
||||||
loginform = GetLoginForm(firstname, lastname, location, region, grid, channel, version, lang, password, errormessages);
|
loginform = GetLoginForm(firstname, lastname, location, region, grid, channel, version, lang, password, errormessages);
|
||||||
returnactions["int_response_code"] = statuscode;
|
returnactions["int_response_code"] = statuscode;
|
||||||
returnactions["str_response_string"] = loginform;
|
returnactions["str_response_string"] = loginform;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -499,7 +492,6 @@ namespace OpenSim.Framework.UserManagement
|
||||||
returnactions["str_response_string"] = loginform;
|
returnactions["str_response_string"] = loginform;
|
||||||
}
|
}
|
||||||
return returnactions;
|
return returnactions;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public string GetLoginForm(string firstname, string lastname, string location, string region,
|
public string GetLoginForm(string firstname, string lastname, string location, string region,
|
||||||
|
@ -538,66 +530,65 @@ namespace OpenSim.Framework.UserManagement
|
||||||
{
|
{
|
||||||
string responseString =
|
string responseString =
|
||||||
"<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">";
|
"<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">";
|
||||||
responseString = responseString + "<html xmlns=\"http://www.w3.org/1999/xhtml\">";
|
responseString += "<html xmlns=\"http://www.w3.org/1999/xhtml\">";
|
||||||
responseString = responseString + "<head>";
|
responseString += "<head>";
|
||||||
responseString = responseString +
|
responseString += "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />";
|
||||||
"<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />";
|
responseString += "<meta http-equiv=\"cache-control\" content=\"no-cache\">";
|
||||||
responseString = responseString + "<meta http-equiv=\"cache-control\" content=\"no-cache\">";
|
responseString += "<meta http-equiv=\"Pragma\" content=\"no-cache\">";
|
||||||
responseString = responseString + "<meta http-equiv=\"Pragma\" content=\"no-cache\">";
|
responseString += "<title>OpenSim Login</title>";
|
||||||
responseString = responseString + "<title>OpenSim Login</title>";
|
responseString += "<body><br />";
|
||||||
responseString = responseString + "<body><br />";
|
responseString += "<div id=\"login_box\">";
|
||||||
responseString = responseString + "<div id=\"login_box\">";
|
|
||||||
|
|
||||||
responseString = responseString + "<form action=\"/go.cgi\" method=\"GET\" id=\"login-form\">";
|
responseString += "<form action=\"/go.cgi\" method=\"GET\" id=\"login-form\">";
|
||||||
|
|
||||||
responseString = responseString + "<div id=\"message\">[$errors]</div>";
|
responseString += "<div id=\"message\">[$errors]</div>";
|
||||||
responseString = responseString + "<fieldset id=\"firstname\">";
|
responseString += "<fieldset id=\"firstname\">";
|
||||||
responseString = responseString + "<legend>First Name:</legend>";
|
responseString += "<legend>First Name:</legend>";
|
||||||
responseString = responseString + "<input type=\"text\" id=\"firstname_input\" size=\"15\" maxlength=\"100\" name=\"username\" value=\"[$firstname]\" />";
|
responseString += "<input type=\"text\" id=\"firstname_input\" size=\"15\" maxlength=\"100\" name=\"username\" value=\"[$firstname]\" />";
|
||||||
responseString = responseString + "</fieldset>";
|
responseString += "</fieldset>";
|
||||||
responseString = responseString + "<fieldset id=\"lastname\">";
|
responseString += "<fieldset id=\"lastname\">";
|
||||||
responseString = responseString + "<legend>Last Name:</legend>";
|
responseString += "<legend>Last Name:</legend>";
|
||||||
responseString = responseString + "<input type=\"text\" size=\"15\" maxlength=\"100\" name=\"lastname\" value=\"[$lastname]\" />";
|
responseString += "<input type=\"text\" size=\"15\" maxlength=\"100\" name=\"lastname\" value=\"[$lastname]\" />";
|
||||||
responseString = responseString + "</fieldset>";
|
responseString += "</fieldset>";
|
||||||
responseString = responseString + "<fieldset id=\"password\">";
|
responseString += "<fieldset id=\"password\">";
|
||||||
responseString = responseString + "<legend>Password:</legend>";
|
responseString += "<legend>Password:</legend>";
|
||||||
responseString = responseString + "<table cellspacing=\"0\" cellpadding=\"0\" border=\"0\">";
|
responseString += "<table cellspacing=\"0\" cellpadding=\"0\" border=\"0\">";
|
||||||
responseString = responseString + "<tr>";
|
responseString += "<tr>";
|
||||||
responseString = responseString + "<td colspan=\"2\"><input type=\"password\" size=\"15\" maxlength=\"100\" name=\"password\" value=\"[$password]\" /></td>";
|
responseString += "<td colspan=\"2\"><input type=\"password\" size=\"15\" maxlength=\"100\" name=\"password\" value=\"[$password]\" /></td>";
|
||||||
responseString = responseString + "</tr>";
|
responseString += "</tr>";
|
||||||
responseString = responseString + "<tr>";
|
responseString += "<tr>";
|
||||||
responseString = responseString + "<td valign=\"middle\"><input type=\"checkbox\" name=\"remember_password\" id=\"remember_password\" [$remember_password] style=\"margin-left:0px;\"/></td>";
|
responseString += "<td valign=\"middle\"><input type=\"checkbox\" name=\"remember_password\" id=\"remember_password\" [$remember_password] style=\"margin-left:0px;\"/></td>";
|
||||||
responseString = responseString + "<td><label for=\"remember_password\">Remember password</label></td>";
|
responseString += "<td><label for=\"remember_password\">Remember password</label></td>";
|
||||||
responseString = responseString + "</tr>";
|
responseString += "</tr>";
|
||||||
responseString = responseString + "</table>";
|
responseString += "</table>";
|
||||||
responseString = responseString + "</fieldset>";
|
responseString += "</fieldset>";
|
||||||
responseString = responseString + "<input type=\"hidden\" name=\"show_login_form\" value=\"FALSE\" />";
|
responseString += "<input type=\"hidden\" name=\"show_login_form\" value=\"FALSE\" />";
|
||||||
responseString = responseString + "<input type=\"hidden\" name=\"method\" value=\"login\" />";
|
responseString += "<input type=\"hidden\" name=\"method\" value=\"login\" />";
|
||||||
responseString = responseString + "<input type=\"hidden\" id=\"grid\" name=\"grid\" value=\"[$grid]\" />";
|
responseString += "<input type=\"hidden\" id=\"grid\" name=\"grid\" value=\"[$grid]\" />";
|
||||||
responseString = responseString + "<input type=\"hidden\" id=\"region\" name=\"region\" value=\"[$region]\" />";
|
responseString += "<input type=\"hidden\" id=\"region\" name=\"region\" value=\"[$region]\" />";
|
||||||
responseString = responseString + "<input type=\"hidden\" id=\"location\" name=\"location\" value=\"[$location]\" />";
|
responseString += "<input type=\"hidden\" id=\"location\" name=\"location\" value=\"[$location]\" />";
|
||||||
responseString = responseString + "<input type=\"hidden\" id=\"channel\" name=\"channel\" value=\"[$channel]\" />";
|
responseString += "<input type=\"hidden\" id=\"channel\" name=\"channel\" value=\"[$channel]\" />";
|
||||||
responseString = responseString + "<input type=\"hidden\" id=\"version\" name=\"version\" value=\"[$version]\" />";
|
responseString += "<input type=\"hidden\" id=\"version\" name=\"version\" value=\"[$version]\" />";
|
||||||
responseString = responseString + "<input type=\"hidden\" id=\"lang\" name=\"lang\" value=\"[$lang]\" />";
|
responseString += "<input type=\"hidden\" id=\"lang\" name=\"lang\" value=\"[$lang]\" />";
|
||||||
responseString = responseString + "<div id=\"submitbtn\">";
|
responseString += "<div id=\"submitbtn\">";
|
||||||
responseString = responseString + "<input class=\"input_over\" type=\"submit\" value=\"Connect\" />";
|
responseString += "<input class=\"input_over\" type=\"submit\" value=\"Connect\" />";
|
||||||
responseString = responseString + "</div>";
|
responseString += "</div>";
|
||||||
responseString = responseString + "<div id=\"connecting\" style=\"visibility:hidden\"> Connecting...</div>";
|
responseString += "<div id=\"connecting\" style=\"visibility:hidden\"> Connecting...</div>";
|
||||||
|
|
||||||
responseString = responseString + "<div id=\"helplinks\">";
|
responseString += "<div id=\"helplinks\">";
|
||||||
responseString = responseString + "<a href=\"#join now link\" target=\"_blank\"></a> | ";
|
responseString += "<a href=\"#join now link\" target=\"_blank\"></a> | ";
|
||||||
responseString = responseString + "<a href=\"#forgot password link\" target=\"_blank\"></a>";
|
responseString += "<a href=\"#forgot password link\" target=\"_blank\"></a>";
|
||||||
responseString = responseString + "</div>";
|
responseString += "</div>";
|
||||||
|
|
||||||
responseString = responseString + "<div id=\"channelinfo\"> [$channel] | [$version]=[$lang]</div>";
|
responseString += "<div id=\"channelinfo\"> [$channel] | [$version]=[$lang]</div>";
|
||||||
responseString = responseString + "</form>";
|
responseString += "</form>";
|
||||||
responseString = responseString + "<script language=\"JavaScript\">";
|
responseString += "<script language=\"JavaScript\">";
|
||||||
responseString = responseString + "document.getElementById('firstname_input').focus();";
|
responseString += "document.getElementById('firstname_input').focus();";
|
||||||
responseString = responseString + "</script>";
|
responseString += "</script>";
|
||||||
responseString = responseString + "</div>";
|
responseString += "</div>";
|
||||||
responseString = responseString + "</div>";
|
responseString += "</div>";
|
||||||
responseString = responseString + "</body>";
|
responseString += "</body>";
|
||||||
responseString = responseString + "</html>";
|
responseString += "</html>";
|
||||||
return responseString;
|
return responseString;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -611,7 +602,6 @@ namespace OpenSim.Framework.UserManagement
|
||||||
return m_userManager.CommitAgent(ref profile);
|
return m_userManager.CommitAgent(ref profile);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Checks a user against it's password hash
|
/// Checks a user against it's password hash
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -699,7 +689,6 @@ namespace OpenSim.Framework.UserManagement
|
||||||
buddyitem.BuddyRightsHave = (int)fl.FriendListOwnerPerms;
|
buddyitem.BuddyRightsHave = (int)fl.FriendListOwnerPerms;
|
||||||
buddyitem.BuddyRightsGiven = (int) fl.FriendPerms;
|
buddyitem.BuddyRightsGiven = (int) fl.FriendPerms;
|
||||||
buddylistreturn.AddNewBuddy(buddyitem);
|
buddylistreturn.AddNewBuddy(buddyitem);
|
||||||
|
|
||||||
}
|
}
|
||||||
return buddylistreturn;
|
return buddylistreturn;
|
||||||
}
|
}
|
||||||
|
|
|
@ -194,7 +194,6 @@ namespace OpenSim.Framework.UserManagement
|
||||||
/// <returns>A List of FriendListItems that contains info about the user's friends</returns>
|
/// <returns>A List of FriendListItems that contains info about the user's friends</returns>
|
||||||
public List<FriendListItem> GetUserFriendList(LLUUID ownerID)
|
public List<FriendListItem> GetUserFriendList(LLUUID ownerID)
|
||||||
{
|
{
|
||||||
|
|
||||||
foreach (KeyValuePair<string, IUserData> plugin in _plugins)
|
foreach (KeyValuePair<string, IUserData> plugin in _plugins)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
|
@ -208,12 +207,10 @@ namespace OpenSim.Framework.UserManagement
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void StoreWebLoginKey(LLUUID agentID, LLUUID webLoginKey)
|
public void StoreWebLoginKey(LLUUID agentID, LLUUID webLoginKey)
|
||||||
{
|
{
|
||||||
|
|
||||||
foreach (KeyValuePair<string, IUserData> plugin in _plugins)
|
foreach (KeyValuePair<string, IUserData> plugin in _plugins)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
|
@ -240,10 +237,8 @@ namespace OpenSim.Framework.UserManagement
|
||||||
m_log.Info("[USERSTORAGE]: Unable to AddNewUserFriend via " + plugin.Key + "(" + e.ToString() + ")");
|
m_log.Info("[USERSTORAGE]: Unable to AddNewUserFriend via " + plugin.Key + "(" + e.ToString() + ")");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public void RemoveUserFriend(LLUUID friendlistowner, LLUUID friend)
|
public void RemoveUserFriend(LLUUID friendlistowner, LLUUID friend)
|
||||||
{
|
{
|
||||||
foreach (KeyValuePair<string, IUserData> plugin in _plugins)
|
foreach (KeyValuePair<string, IUserData> plugin in _plugins)
|
||||||
|
@ -273,6 +268,7 @@ namespace OpenSim.Framework.UserManagement
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Loads a user agent by name (not called directly)
|
/// Loads a user agent by name (not called directly)
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -295,7 +291,10 @@ namespace OpenSim.Framework.UserManagement
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: document
|
/// <summary>
|
||||||
|
/// Resets the currentAgent in the user profile
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="agentID">The agent's ID</param>
|
||||||
public void clearUserAgent(LLUUID agentID)
|
public void clearUserAgent(LLUUID agentID)
|
||||||
{
|
{
|
||||||
UserProfileData profile = GetUserProfile(agentID);
|
UserProfileData profile = GetUserProfile(agentID);
|
||||||
|
@ -459,7 +458,6 @@ namespace OpenSim.Framework.UserManagement
|
||||||
// If currentagent is null, we can't reference it here or the UserServer crashes!
|
// If currentagent is null, we can't reference it here or the UserServer crashes!
|
||||||
m_log.Info("[LOGOUT]: didn't save logout position: " + userid.ToString());
|
m_log.Info("[LOGOUT]: didn't save logout position: " + userid.ToString());
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -138,13 +138,11 @@ namespace OpenSim.Framework.Data.MySQL
|
||||||
string dllName = module.Assembly.ManifestModule.Name;
|
string dllName = module.Assembly.ManifestModule.Name;
|
||||||
Version dllVersion = module.Assembly.GetName().Version;
|
Version dllVersion = module.Assembly.GetName().Version;
|
||||||
|
|
||||||
|
|
||||||
return
|
return
|
||||||
string.Format("{0}.{1}.{2}.{3}", dllVersion.Major, dllVersion.Minor, dllVersion.Build,
|
string.Format("{0}.{1}.{2}.{3}", dllVersion.Major, dllVersion.Minor, dllVersion.Build,
|
||||||
dllVersion.Revision);
|
dllVersion.Revision);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Extract a named string resource from the embedded resources
|
/// Extract a named string resource from the embedded resources
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -156,7 +154,9 @@ namespace OpenSim.Framework.Data.MySQL
|
||||||
string[] names = assem.GetManifestResourceNames();
|
string[] names = assem.GetManifestResourceNames();
|
||||||
|
|
||||||
foreach (string s in names)
|
foreach (string s in names)
|
||||||
|
{
|
||||||
if (s.EndsWith(name))
|
if (s.EndsWith(name))
|
||||||
|
{
|
||||||
using (Stream resource = assem.GetManifestResourceStream(s))
|
using (Stream resource = assem.GetManifestResourceStream(s))
|
||||||
{
|
{
|
||||||
using (StreamReader resourceReader = new StreamReader(resource))
|
using (StreamReader resourceReader = new StreamReader(resource))
|
||||||
|
@ -165,6 +165,8 @@ namespace OpenSim.Framework.Data.MySQL
|
||||||
return resourceString;
|
return resourceString;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
throw new Exception(string.Format("Resource '{0}' was not found", name));
|
throw new Exception(string.Format("Resource '{0}' was not found", name));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -214,8 +216,7 @@ namespace OpenSim.Framework.Data.MySQL
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: at some time this code should be cleaned up
|
||||||
// at some time this code should be cleaned up
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Runs a query with protection against SQL Injection by using parameterised input.
|
/// Runs a query with protection against SQL Injection by using parameterised input.
|
||||||
|
@ -249,7 +250,7 @@ namespace OpenSim.Framework.Data.MySQL
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
// Try reopen it
|
// Try to reopen it
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
dbcon = new MySqlConnection(connectionString);
|
dbcon = new MySqlConnection(connectionString);
|
||||||
|
@ -489,7 +490,6 @@ namespace OpenSim.Framework.Data.MySQL
|
||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Inserts a new row into the log database
|
/// Inserts a new row into the log database
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -534,7 +534,6 @@ namespace OpenSim.Framework.Data.MySQL
|
||||||
return returnval;
|
return returnval;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Creates a new user and inserts it into the database
|
/// Creates a new user and inserts it into the database
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -823,6 +822,7 @@ namespace OpenSim.Framework.Data.MySQL
|
||||||
|
|
||||||
return returnval;
|
return returnval;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Delete a region from the database
|
/// Delete a region from the database
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -833,8 +833,7 @@ namespace OpenSim.Framework.Data.MySQL
|
||||||
{
|
{
|
||||||
bool returnval = false;
|
bool returnval = false;
|
||||||
|
|
||||||
string sql =
|
string sql = "DELETE FROM regions WHERE uuid = ?uuid;";
|
||||||
"DELETE FROM regions WHERE uuid = ?uuid;";
|
|
||||||
|
|
||||||
Dictionary<string, string> parameters = new Dictionary<string, string>();
|
Dictionary<string, string> parameters = new Dictionary<string, string>();
|
||||||
|
|
||||||
|
|
|
@ -108,7 +108,6 @@ namespace OpenSim.Framework.Data.MySQL
|
||||||
UpgradeAgentsTable(tableList[m_agentsTableName]);
|
UpgradeAgentsTable(tableList[m_agentsTableName]);
|
||||||
UpgradeUsersTable(tableList[m_usersTableName]);
|
UpgradeUsersTable(tableList[m_usersTableName]);
|
||||||
UpgradeFriendsTable(tableList[m_userFriendsTableName]);
|
UpgradeFriendsTable(tableList[m_userFriendsTableName]);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -227,7 +226,6 @@ namespace OpenSim.Framework.Data.MySQL
|
||||||
"(?friendID,?ownerID,?friendPerms,?datetimestamp)",
|
"(?friendID,?ownerID,?friendPerms,?datetimestamp)",
|
||||||
param);
|
param);
|
||||||
adder.ExecuteNonQuery();
|
adder.ExecuteNonQuery();
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
|
@ -244,7 +242,6 @@ namespace OpenSim.Framework.Data.MySQL
|
||||||
param["?ownerID"] = friendlistowner.UUID.ToString();
|
param["?ownerID"] = friendlistowner.UUID.ToString();
|
||||||
param["?friendID"] = friend.UUID.ToString();
|
param["?friendID"] = friend.UUID.ToString();
|
||||||
|
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
lock (database)
|
lock (database)
|
||||||
|
@ -260,7 +257,6 @@ namespace OpenSim.Framework.Data.MySQL
|
||||||
"delete from " + m_userFriendsTableName + " where ownerID = ?friendID and friendID = ?ownerID",
|
"delete from " + m_userFriendsTableName + " where ownerID = ?friendID and friendID = ?ownerID",
|
||||||
param);
|
param);
|
||||||
updater.ExecuteNonQuery();
|
updater.ExecuteNonQuery();
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
|
@ -270,6 +266,7 @@ namespace OpenSim.Framework.Data.MySQL
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void UpdateUserFriendPerms(LLUUID friendlistowner, LLUUID friend, uint perms)
|
public void UpdateUserFriendPerms(LLUUID friendlistowner, LLUUID friend, uint perms)
|
||||||
{
|
{
|
||||||
Dictionary<string, string> param = new Dictionary<string, string>();
|
Dictionary<string, string> param = new Dictionary<string, string>();
|
||||||
|
@ -277,7 +274,6 @@ namespace OpenSim.Framework.Data.MySQL
|
||||||
param["?friendID"] = friend.UUID.ToString();
|
param["?friendID"] = friend.UUID.ToString();
|
||||||
param["?friendPerms"] = perms.ToString();
|
param["?friendPerms"] = perms.ToString();
|
||||||
|
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
lock (database)
|
lock (database)
|
||||||
|
@ -289,7 +285,6 @@ namespace OpenSim.Framework.Data.MySQL
|
||||||
"where ownerID = ?ownerID and friendID = ?friendID",
|
"where ownerID = ?ownerID and friendID = ?friendID",
|
||||||
param);
|
param);
|
||||||
updater.ExecuteNonQuery();
|
updater.ExecuteNonQuery();
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
|
@ -300,7 +295,6 @@ namespace OpenSim.Framework.Data.MySQL
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public List<FriendListItem> GetUserFriendList(LLUUID friendlistowner)
|
public List<FriendListItem> GetUserFriendList(LLUUID friendlistowner)
|
||||||
{
|
{
|
||||||
List<FriendListItem> Lfli = new List<FriendListItem>();
|
List<FriendListItem> Lfli = new List<FriendListItem>();
|
||||||
|
@ -320,7 +314,6 @@ namespace OpenSim.Framework.Data.MySQL
|
||||||
param);
|
param);
|
||||||
IDataReader reader = result.ExecuteReader();
|
IDataReader reader = result.ExecuteReader();
|
||||||
|
|
||||||
|
|
||||||
while (reader.Read())
|
while (reader.Read())
|
||||||
{
|
{
|
||||||
FriendListItem fli = new FriendListItem();
|
FriendListItem fli = new FriendListItem();
|
||||||
|
@ -354,7 +347,6 @@ namespace OpenSim.Framework.Data.MySQL
|
||||||
m_log.Info("[USER]: Stub UpdateUserCUrrentRegion called");
|
m_log.Info("[USER]: Stub UpdateUserCUrrentRegion called");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public List<Framework.AvatarPickerAvatar> GeneratePickerResults(LLUUID queryID, string query)
|
public List<Framework.AvatarPickerAvatar> GeneratePickerResults(LLUUID queryID, string query)
|
||||||
{
|
{
|
||||||
List<Framework.AvatarPickerAvatar> returnlist = new List<Framework.AvatarPickerAvatar>();
|
List<Framework.AvatarPickerAvatar> returnlist = new List<Framework.AvatarPickerAvatar>();
|
||||||
|
@ -378,7 +370,6 @@ namespace OpenSim.Framework.Data.MySQL
|
||||||
param);
|
param);
|
||||||
IDataReader reader = result.ExecuteReader();
|
IDataReader reader = result.ExecuteReader();
|
||||||
|
|
||||||
|
|
||||||
while (reader.Read())
|
while (reader.Read())
|
||||||
{
|
{
|
||||||
Framework.AvatarPickerAvatar user = new Framework.AvatarPickerAvatar();
|
Framework.AvatarPickerAvatar user = new Framework.AvatarPickerAvatar();
|
||||||
|
@ -413,7 +404,6 @@ namespace OpenSim.Framework.Data.MySQL
|
||||||
param);
|
param);
|
||||||
IDataReader reader = result.ExecuteReader();
|
IDataReader reader = result.ExecuteReader();
|
||||||
|
|
||||||
|
|
||||||
while (reader.Read())
|
while (reader.Read())
|
||||||
{
|
{
|
||||||
Framework.AvatarPickerAvatar user = new Framework.AvatarPickerAvatar();
|
Framework.AvatarPickerAvatar user = new Framework.AvatarPickerAvatar();
|
||||||
|
@ -489,7 +479,6 @@ namespace OpenSim.Framework.Data.MySQL
|
||||||
|
|
||||||
public void StoreWebLoginKey(LLUUID AgentID, LLUUID WebLoginKey)
|
public void StoreWebLoginKey(LLUUID AgentID, LLUUID WebLoginKey)
|
||||||
{
|
{
|
||||||
|
|
||||||
Dictionary<string, string> param = new Dictionary<string, string>();
|
Dictionary<string, string> param = new Dictionary<string, string>();
|
||||||
param["?UUID"] = AgentID.UUID.ToString();
|
param["?UUID"] = AgentID.UUID.ToString();
|
||||||
param["?webLoginKey"] = WebLoginKey.UUID.ToString();
|
param["?webLoginKey"] = WebLoginKey.UUID.ToString();
|
||||||
|
@ -504,7 +493,6 @@ namespace OpenSim.Framework.Data.MySQL
|
||||||
"where UUID = ?UUID",
|
"where UUID = ?UUID",
|
||||||
param);
|
param);
|
||||||
updater.ExecuteNonQuery();
|
updater.ExecuteNonQuery();
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
|
@ -513,10 +501,6 @@ namespace OpenSim.Framework.Data.MySQL
|
||||||
m_log.Error(e.ToString());
|
m_log.Error(e.ToString());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -605,11 +589,11 @@ namespace OpenSim.Framework.Data.MySQL
|
||||||
/// <param name="user">The profile data to use to update the DB</param>
|
/// <param name="user">The profile data to use to update the DB</param>
|
||||||
public bool UpdateUserProfile(UserProfileData user)
|
public bool UpdateUserProfile(UserProfileData user)
|
||||||
{
|
{
|
||||||
database.updateUserRow(user.UUID, user.username, user.surname, user.passwordHash, user.passwordSalt
|
database.updateUserRow(user.UUID, user.username, user.surname, user.passwordHash, user.passwordSalt,
|
||||||
, user.homeRegion, user.homeLocation.X, user.homeLocation.Y, user.homeLocation.Z, user.homeLookAt.X
|
user.homeRegion, user.homeLocation.X, user.homeLocation.Y, user.homeLocation.Z, user.homeLookAt.X,
|
||||||
, user.homeLookAt.Y, user.homeLookAt.Z, user.created, user.lastLogin, user.userInventoryURI
|
user.homeLookAt.Y, user.homeLookAt.Z, user.created, user.lastLogin, user.userInventoryURI,
|
||||||
, user.userAssetURI, user.profileCanDoMask, user.profileWantDoMask, user.profileAboutText
|
user.userAssetURI, user.profileCanDoMask, user.profileWantDoMask, user.profileAboutText,
|
||||||
, user.profileFirstText, user.profileImage, user.profileFirstImage, user.webLoginKey);
|
user.profileFirstText, user.profileImage, user.profileFirstImage, user.webLoginKey);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -44,7 +44,6 @@ using InventoryFolder=OpenSim.Framework.InventoryFolder;
|
||||||
|
|
||||||
namespace OpenSim.Grid.UserServer
|
namespace OpenSim.Grid.UserServer
|
||||||
{
|
{
|
||||||
|
|
||||||
public delegate void UserLoggedInAtLocation(LLUUID agentID, LLUUID sessionID, LLUUID RegionID,
|
public delegate void UserLoggedInAtLocation(LLUUID agentID, LLUUID sessionID, LLUUID RegionID,
|
||||||
ulong regionhandle, float positionX, float positionY, float positionZ, string firstname, string lastname);
|
ulong regionhandle, float positionX, float positionY, float positionZ, string firstname, string lastname);
|
||||||
|
|
||||||
|
|
|
@ -2709,7 +2709,6 @@ namespace OpenSim.Region.ClientStack
|
||||||
Buffer.BlockCopy(sendbuffer, 0, ZeroOutBuffer, 0, sendbuffer.Length);
|
Buffer.BlockCopy(sendbuffer, 0, ZeroOutBuffer, 0, sendbuffer.Length);
|
||||||
m_networkServer.SendPacketTo(ZeroOutBuffer, sendbuffer.Length, SocketFlags.None, m_circuitCode);
|
m_networkServer.SendPacketTo(ZeroOutBuffer, sendbuffer.Length, SocketFlags.None, m_circuitCode);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
|
@ -2749,7 +2748,6 @@ namespace OpenSim.Region.ClientStack
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Handle PacketAck packets
|
// Handle PacketAck packets
|
||||||
if (NewPack.Type == PacketType.PacketAck)
|
if (NewPack.Type == PacketType.PacketAck)
|
||||||
{
|
{
|
||||||
|
@ -2958,7 +2956,6 @@ namespace OpenSim.Region.ClientStack
|
||||||
handlerRequestAvatarProperties(this, avatarProperties.AgentData.AvatarID);
|
handlerRequestAvatarProperties(this, avatarProperties.AgentData.AvatarID);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case PacketType.ChatFromViewer:
|
case PacketType.ChatFromViewer:
|
||||||
ChatFromViewerPacket inchatpack = (ChatFromViewerPacket)Pack;
|
ChatFromViewerPacket inchatpack = (ChatFromViewerPacket)Pack;
|
||||||
|
@ -3042,8 +3039,6 @@ namespace OpenSim.Region.ClientStack
|
||||||
msgpack.MessageBlock.Position, msgpack.MessageBlock.RegionID,
|
msgpack.MessageBlock.Position, msgpack.MessageBlock.RegionID,
|
||||||
msgpack.MessageBlock.BinaryBucket);
|
msgpack.MessageBlock.BinaryBucket);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case PacketType.AcceptFriendship:
|
case PacketType.AcceptFriendship:
|
||||||
|
@ -3065,10 +3060,6 @@ namespace OpenSim.Region.ClientStack
|
||||||
{
|
{
|
||||||
handlerApproveFriendRequest(this, agentID, transactionID, callingCardFolders);
|
handlerApproveFriendRequest(this, agentID, transactionID, callingCardFolders);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case PacketType.TerminateFriendship:
|
case PacketType.TerminateFriendship:
|
||||||
TerminateFriendshipPacket tfriendpack = (TerminateFriendshipPacket)Pack;
|
TerminateFriendshipPacket tfriendpack = (TerminateFriendshipPacket)Pack;
|
||||||
|
@ -3080,8 +3071,6 @@ namespace OpenSim.Region.ClientStack
|
||||||
{
|
{
|
||||||
handlerTerminateFriendship(this, listOwnerAgentID, exFriendID);
|
handlerTerminateFriendship(this, listOwnerAgentID, exFriendID);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case PacketType.RezObject:
|
case PacketType.RezObject:
|
||||||
RezObjectPacket rezPacket = (RezObjectPacket)Pack;
|
RezObjectPacket rezPacket = (RezObjectPacket)Pack;
|
||||||
|
@ -3107,7 +3096,6 @@ namespace OpenSim.Region.ClientStack
|
||||||
rezPacket.RezData.RezSelected, rezPacket.RezData.RemoveItem,
|
rezPacket.RezData.RezSelected, rezPacket.RezData.RemoveItem,
|
||||||
rezPacket.RezData.FromTaskID);
|
rezPacket.RezData.FromTaskID);
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case PacketType.DeRezObject:
|
case PacketType.DeRezObject:
|
||||||
handlerDeRezObject = OnDeRezObject;
|
handlerDeRezObject = OnDeRezObject;
|
||||||
|
@ -3115,7 +3103,6 @@ namespace OpenSim.Region.ClientStack
|
||||||
{
|
{
|
||||||
handlerDeRezObject(Pack, this);
|
handlerDeRezObject(Pack, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case PacketType.ModifyLand:
|
case PacketType.ModifyLand:
|
||||||
ModifyLandPacket modify = (ModifyLandPacket)Pack;
|
ModifyLandPacket modify = (ModifyLandPacket)Pack;
|
||||||
|
@ -3124,7 +3111,6 @@ namespace OpenSim.Region.ClientStack
|
||||||
{
|
{
|
||||||
if (OnModifyTerrain != null)
|
if (OnModifyTerrain != null)
|
||||||
{
|
{
|
||||||
|
|
||||||
for (int i = 0; i < modify.ParcelData.Length; i++)
|
for (int i = 0; i < modify.ParcelData.Length; i++)
|
||||||
{
|
{
|
||||||
handlerModifyTerrain = OnModifyTerrain;
|
handlerModifyTerrain = OnModifyTerrain;
|
||||||
|
@ -3158,7 +3144,6 @@ namespace OpenSim.Region.ClientStack
|
||||||
handlerRequestWearables();
|
handlerRequestWearables();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
handlerRequestAvatarsData = OnRequestAvatarsData;
|
handlerRequestAvatarsData = OnRequestAvatarsData;
|
||||||
|
|
||||||
if (handlerRequestAvatarsData != null)
|
if (handlerRequestAvatarsData != null)
|
||||||
|
@ -3166,7 +3151,6 @@ namespace OpenSim.Region.ClientStack
|
||||||
handlerRequestAvatarsData(this);
|
handlerRequestAvatarsData(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case PacketType.AgentSetAppearance:
|
case PacketType.AgentSetAppearance:
|
||||||
AgentSetAppearancePacket appear = (AgentSetAppearancePacket)Pack;
|
AgentSetAppearancePacket appear = (AgentSetAppearancePacket)Pack;
|
||||||
|
@ -3196,12 +3180,9 @@ namespace OpenSim.Region.ClientStack
|
||||||
{
|
{
|
||||||
handlerAvatarNowWearing(this, wearingArgs);
|
handlerAvatarNowWearing(this, wearingArgs);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case PacketType.RezSingleAttachmentFromInv:
|
case PacketType.RezSingleAttachmentFromInv:
|
||||||
|
|
||||||
handlerRezSingleAttachment = OnRezSingleAttachmentFromInv;
|
handlerRezSingleAttachment = OnRezSingleAttachmentFromInv;
|
||||||
if (handlerRezSingleAttachment != null)
|
if (handlerRezSingleAttachment != null)
|
||||||
{
|
{
|
||||||
|
@ -3212,8 +3193,6 @@ namespace OpenSim.Region.ClientStack
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case PacketType.ObjectAttach:
|
case PacketType.ObjectAttach:
|
||||||
|
|
||||||
|
|
||||||
if (OnObjectAttach != null)
|
if (OnObjectAttach != null)
|
||||||
{
|
{
|
||||||
ObjectAttachPacket att = (ObjectAttachPacket)Pack;
|
ObjectAttachPacket att = (ObjectAttachPacket)Pack;
|
||||||
|
@ -3234,11 +3213,8 @@ namespace OpenSim.Region.ClientStack
|
||||||
if (handlerSetAlwaysRun != null)
|
if (handlerSetAlwaysRun != null)
|
||||||
handlerSetAlwaysRun(this, run.AgentData.AlwaysRun);
|
handlerSetAlwaysRun(this, run.AgentData.AlwaysRun);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case PacketType.CompleteAgentMovement:
|
case PacketType.CompleteAgentMovement:
|
||||||
|
|
||||||
handlerCompleteMovementToRegion = OnCompleteMovementToRegion;
|
handlerCompleteMovementToRegion = OnCompleteMovementToRegion;
|
||||||
if (handlerCompleteMovementToRegion != null)
|
if (handlerCompleteMovementToRegion != null)
|
||||||
{
|
{
|
||||||
|
@ -3590,7 +3566,6 @@ namespace OpenSim.Region.ClientStack
|
||||||
{
|
{
|
||||||
ObjectPermissionsPacket.ObjectDataBlock permChanges = newobjPerms.ObjectData[i];
|
ObjectPermissionsPacket.ObjectDataBlock permChanges = newobjPerms.ObjectData[i];
|
||||||
|
|
||||||
|
|
||||||
byte field = permChanges.Field;
|
byte field = permChanges.Field;
|
||||||
uint localID = permChanges.ObjectLocalID;
|
uint localID = permChanges.ObjectLocalID;
|
||||||
uint mask = permChanges.Mask;
|
uint mask = permChanges.Mask;
|
||||||
|
@ -3615,14 +3590,12 @@ namespace OpenSim.Region.ClientStack
|
||||||
// Unfortunately, we have to pass the event the packet because objData is an array
|
// Unfortunately, we have to pass the event the packet because objData is an array
|
||||||
// That means multiple object perms may be updated in a single packet.
|
// That means multiple object perms may be updated in a single packet.
|
||||||
|
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case PacketType.RequestObjectPropertiesFamily:
|
case PacketType.RequestObjectPropertiesFamily:
|
||||||
//This powers the little tooltip that appears when you move your mouse over an object
|
//This powers the little tooltip that appears when you move your mouse over an object
|
||||||
RequestObjectPropertiesFamilyPacket packToolTip = (RequestObjectPropertiesFamilyPacket)Pack;
|
RequestObjectPropertiesFamilyPacket packToolTip = (RequestObjectPropertiesFamilyPacket)Pack;
|
||||||
|
|
||||||
|
|
||||||
RequestObjectPropertiesFamilyPacket.ObjectDataBlock packObjBlock = packToolTip.ObjectData;
|
RequestObjectPropertiesFamilyPacket.ObjectDataBlock packObjBlock = packToolTip.ObjectData;
|
||||||
|
|
||||||
handlerRequestObjectPropertiesFamily = OnRequestObjectPropertiesFamily;
|
handlerRequestObjectPropertiesFamily = OnRequestObjectPropertiesFamily;
|
||||||
|
@ -3682,7 +3655,6 @@ namespace OpenSim.Region.ClientStack
|
||||||
|
|
||||||
if (handlerAssetUploadRequest != null)
|
if (handlerAssetUploadRequest != null)
|
||||||
{
|
{
|
||||||
|
|
||||||
handlerAssetUploadRequest(this, temp,
|
handlerAssetUploadRequest(this, temp,
|
||||||
request.AssetBlock.TransactionID, request.AssetBlock.Type,
|
request.AssetBlock.TransactionID, request.AssetBlock.Type,
|
||||||
request.AssetBlock.AssetData, request.AssetBlock.StoreLocal,
|
request.AssetBlock.AssetData, request.AssetBlock.StoreLocal,
|
||||||
|
@ -3723,7 +3695,6 @@ namespace OpenSim.Region.ClientStack
|
||||||
handlerCreateInventoryFolder = OnCreateNewInventoryFolder;
|
handlerCreateInventoryFolder = OnCreateNewInventoryFolder;
|
||||||
if (handlerCreateInventoryFolder != null)
|
if (handlerCreateInventoryFolder != null)
|
||||||
{
|
{
|
||||||
|
|
||||||
handlerCreateInventoryFolder(this, invFolder.FolderData.FolderID,
|
handlerCreateInventoryFolder(this, invFolder.FolderData.FolderID,
|
||||||
(ushort)invFolder.FolderData.Type,
|
(ushort)invFolder.FolderData.Type,
|
||||||
Util.FieldToString(invFolder.FolderData.Name),
|
Util.FieldToString(invFolder.FolderData.Name),
|
||||||
|
@ -3810,14 +3781,12 @@ namespace OpenSim.Region.ClientStack
|
||||||
handlerFetchInventoryDescendents = OnFetchInventoryDescendents;
|
handlerFetchInventoryDescendents = OnFetchInventoryDescendents;
|
||||||
if (handlerFetchInventoryDescendents != null)
|
if (handlerFetchInventoryDescendents != null)
|
||||||
{
|
{
|
||||||
|
|
||||||
handlerFetchInventoryDescendents(this, Fetch.InventoryData.FolderID, Fetch.InventoryData.OwnerID,
|
handlerFetchInventoryDescendents(this, Fetch.InventoryData.FolderID, Fetch.InventoryData.OwnerID,
|
||||||
Fetch.InventoryData.FetchFolders, Fetch.InventoryData.FetchItems,
|
Fetch.InventoryData.FetchFolders, Fetch.InventoryData.FetchItems,
|
||||||
Fetch.InventoryData.SortOrder);
|
Fetch.InventoryData.SortOrder);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case PacketType.PurgeInventoryDescendents:
|
case PacketType.PurgeInventoryDescendents:
|
||||||
|
|
||||||
PurgeInventoryDescendentsPacket Purge = (PurgeInventoryDescendentsPacket)Pack;
|
PurgeInventoryDescendentsPacket Purge = (PurgeInventoryDescendentsPacket)Pack;
|
||||||
|
|
||||||
handlerPurgeInventoryDescendents = OnPurgeInventoryDescendents;
|
handlerPurgeInventoryDescendents = OnPurgeInventoryDescendents;
|
||||||
|
@ -4092,7 +4061,6 @@ namespace OpenSim.Region.ClientStack
|
||||||
handlerMoneyBalanceRequest(this, moneybalancerequestpacket.AgentData.AgentID, moneybalancerequestpacket.AgentData.SessionID, moneybalancerequestpacket.MoneyData.TransactionID);
|
handlerMoneyBalanceRequest(this, moneybalancerequestpacket.AgentData.AgentID, moneybalancerequestpacket.AgentData.SessionID, moneybalancerequestpacket.MoneyData.TransactionID);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case PacketType.UUIDNameRequest:
|
case PacketType.UUIDNameRequest:
|
||||||
UUIDNameRequestPacket incoming = (UUIDNameRequestPacket)Pack;
|
UUIDNameRequestPacket incoming = (UUIDNameRequestPacket)Pack;
|
||||||
|
@ -4249,7 +4217,6 @@ namespace OpenSim.Region.ClientStack
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region GodPackets
|
#region GodPackets
|
||||||
|
@ -4274,7 +4241,6 @@ namespace OpenSim.Region.ClientStack
|
||||||
|
|
||||||
GodKickUserPacket gkupack = (GodKickUserPacket)Pack;
|
GodKickUserPacket gkupack = (GodKickUserPacket)Pack;
|
||||||
|
|
||||||
|
|
||||||
if (gkupack.UserInfo.GodSessionID == SessionId && AgentId == gkupack.UserInfo.GodID)
|
if (gkupack.UserInfo.GodSessionID == SessionId && AgentId == gkupack.UserInfo.GodID)
|
||||||
{
|
{
|
||||||
handlerGodKickUser = OnGodKickUser;
|
handlerGodKickUser = OnGodKickUser;
|
||||||
|
@ -4301,12 +4267,10 @@ namespace OpenSim.Region.ClientStack
|
||||||
//OutPacket(kupack, ThrottleOutPacketType.Task);
|
//OutPacket(kupack, ThrottleOutPacketType.Task);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region unimplemented handlers
|
#region unimplemented handlers
|
||||||
|
|
||||||
|
|
||||||
case PacketType.StartPingCheck:
|
case PacketType.StartPingCheck:
|
||||||
// Send the client the ping response back
|
// Send the client the ping response back
|
||||||
// Pass the same PingID in the matching packet
|
// Pass the same PingID in the matching packet
|
||||||
|
@ -4354,11 +4318,6 @@ namespace OpenSim.Region.ClientStack
|
||||||
// TODO: handle this packet
|
// TODO: handle this packet
|
||||||
m_log.Warn("[CLIENT]: unhandled MuteListRequest packet");
|
m_log.Warn("[CLIENT]: unhandled MuteListRequest packet");
|
||||||
break;
|
break;
|
||||||
//case PacketType.AgentDataUpdateRequest:
|
|
||||||
// TODO: handle this packet
|
|
||||||
//m_log.Warn("[CLIENT]: unhandled AgentDataUpdateRequest packet");
|
|
||||||
//break;
|
|
||||||
|
|
||||||
case PacketType.ParcelDwellRequest:
|
case PacketType.ParcelDwellRequest:
|
||||||
// TODO: handle this packet
|
// TODO: handle this packet
|
||||||
m_log.Warn("[CLIENT]: unhandled ParcelDwellRequest packet");
|
m_log.Warn("[CLIENT]: unhandled ParcelDwellRequest packet");
|
||||||
|
|
|
@ -246,7 +246,6 @@ namespace OpenSim.Region.Communications.Local
|
||||||
|
|
||||||
return new InventoryData(AgentInventoryArray, userInventory.InventoryRoot.FolderID);
|
return new InventoryData(AgentInventoryArray, userInventory.InventoryRoot.FolderID);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue