* Ditto, UserServer/Main.cs
parent
d0397af998
commit
618ccd4ebc
|
@ -136,7 +136,8 @@ namespace OpenSim.Grid.UserServer
|
||||||
m_httpServer.AddXmlRPCHandler("get_avatar_picker_avatar", m_userManager.XmlRPCGetAvatarPickerAvatar);
|
m_httpServer.AddXmlRPCHandler("get_avatar_picker_avatar", m_userManager.XmlRPCGetAvatarPickerAvatar);
|
||||||
m_httpServer.AddXmlRPCHandler("add_new_user_friend", m_userManager.XmlRpcResponseXmlRPCAddUserFriend);
|
m_httpServer.AddXmlRPCHandler("add_new_user_friend", m_userManager.XmlRpcResponseXmlRPCAddUserFriend);
|
||||||
m_httpServer.AddXmlRPCHandler("remove_user_friend", m_userManager.XmlRpcResponseXmlRPCRemoveUserFriend);
|
m_httpServer.AddXmlRPCHandler("remove_user_friend", m_userManager.XmlRpcResponseXmlRPCRemoveUserFriend);
|
||||||
m_httpServer.AddXmlRPCHandler("update_user_friend_perms", m_userManager.XmlRpcResponseXmlRPCUpdateUserFriendPerms);
|
m_httpServer.AddXmlRPCHandler("update_user_friend_perms",
|
||||||
|
m_userManager.XmlRpcResponseXmlRPCUpdateUserFriendPerms);
|
||||||
m_httpServer.AddXmlRPCHandler("get_user_friend_list", m_userManager.XmlRpcResponseXmlRPCGetUserFriendList);
|
m_httpServer.AddXmlRPCHandler("get_user_friend_list", m_userManager.XmlRpcResponseXmlRPCGetUserFriendList);
|
||||||
m_httpServer.AddXmlRPCHandler("get_avatar_appearance", m_userManager.XmlRPCGetAvatarAppearance);
|
m_httpServer.AddXmlRPCHandler("get_avatar_appearance", m_userManager.XmlRPCGetAvatarAppearance);
|
||||||
m_httpServer.AddXmlRPCHandler("update_avatar_appearance", m_userManager.XmlRPCUpdateAvatarAppearance);
|
m_httpServer.AddXmlRPCHandler("update_avatar_appearance", m_userManager.XmlRPCUpdateAvatarAppearance);
|
||||||
|
@ -149,7 +150,8 @@ namespace OpenSim.Grid.UserServer
|
||||||
m_httpServer.AddXmlRPCHandler("agent_change_region", m_messagesService.XmlRPCUserMovedtoRegion);
|
m_httpServer.AddXmlRPCHandler("agent_change_region", m_messagesService.XmlRPCUserMovedtoRegion);
|
||||||
m_httpServer.AddXmlRPCHandler("deregister_messageserver", m_messagesService.XmlRPCDeRegisterMessageServer);
|
m_httpServer.AddXmlRPCHandler("deregister_messageserver", m_messagesService.XmlRPCDeRegisterMessageServer);
|
||||||
|
|
||||||
m_httpServer.AddStreamHandler(new RestStreamHandler("GET", "/get_grid_info", m_gridInfoService.RestGetGridInfoMethod));
|
m_httpServer.AddStreamHandler(new RestStreamHandler("GET", "/get_grid_info",
|
||||||
|
m_gridInfoService.RestGetGridInfoMethod));
|
||||||
m_httpServer.AddXmlRPCHandler("get_grid_info", m_gridInfoService.XmlRpcGridInfoMethod);
|
m_httpServer.AddXmlRPCHandler("get_grid_info", m_gridInfoService.XmlRpcGridInfoMethod);
|
||||||
|
|
||||||
m_httpServer.AddStreamHandler(
|
m_httpServer.AddStreamHandler(
|
||||||
|
@ -163,18 +165,12 @@ namespace OpenSim.Grid.UserServer
|
||||||
switch (what)
|
switch (what)
|
||||||
{
|
{
|
||||||
case "user":
|
case "user":
|
||||||
string tempfirstname;
|
string tempfirstname = m_console.CmdPrompt("First name");
|
||||||
string templastname;
|
string templastname = m_console.CmdPrompt("Last name");
|
||||||
string tempMD5Passwd;
|
|
||||||
uint regX = 1000;
|
|
||||||
uint regY = 1000;
|
|
||||||
|
|
||||||
tempfirstname = m_console.CmdPrompt("First name");
|
|
||||||
templastname = m_console.CmdPrompt("Last name");
|
|
||||||
//tempMD5Passwd = m_console.PasswdPrompt("Password");
|
//tempMD5Passwd = m_console.PasswdPrompt("Password");
|
||||||
tempMD5Passwd = m_console.CmdPrompt("Password");
|
string tempMD5Passwd = m_console.CmdPrompt("Password");
|
||||||
regX = Convert.ToUInt32(m_console.CmdPrompt("Start Region X"));
|
uint regX = Convert.ToUInt32(m_console.CmdPrompt("Start Region X"));
|
||||||
regY = Convert.ToUInt32(m_console.CmdPrompt("Start Region Y"));
|
uint regY = Convert.ToUInt32(m_console.CmdPrompt("Start Region Y"));
|
||||||
|
|
||||||
if (null != m_userManager.GetUserProfile(tempfirstname, templastname))
|
if (null != m_userManager.GetUserProfile(tempfirstname, templastname))
|
||||||
{
|
{
|
||||||
|
@ -232,7 +228,8 @@ namespace OpenSim.Grid.UserServer
|
||||||
{
|
{
|
||||||
case "help":
|
case "help":
|
||||||
m_console.Notice("create user - create a new user");
|
m_console.Notice("create user - create a new user");
|
||||||
m_console.Notice("logoff-user <firstname> <lastname> <message> - logs off the specified user from the grid");
|
m_console.Notice(
|
||||||
|
"logoff-user <firstname> <lastname> <message> - logs off the specified user from the grid");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "create":
|
case "create":
|
||||||
|
@ -282,7 +279,8 @@ namespace OpenSim.Grid.UserServer
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
m_log.Info("[LOGOFF]: User Doesn't appear to be online, sending the logoff message anyway.");
|
m_log.Info(
|
||||||
|
"[LOGOFF]: User Doesn't appear to be online, sending the logoff message anyway.");
|
||||||
m_loginService.LogOffUser(theUser, message);
|
m_loginService.LogOffUser(theUser, message);
|
||||||
|
|
||||||
theUser.CurrentAgent.AgentOnline = false;
|
theUser.CurrentAgent.AgentOnline = false;
|
||||||
|
@ -292,9 +290,9 @@ namespace OpenSim.Grid.UserServer
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
m_log.Error("[LOGOFF]: Unable to logoff-user. User doesn't have an agent record so I can't find the simulator to notify");
|
m_log.Error(
|
||||||
|
"[LOGOFF]: Unable to logoff-user. User doesn't have an agent record so I can't find the simulator to notify");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -303,7 +301,8 @@ namespace OpenSim.Grid.UserServer
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
m_log.Error("[LOGOFF]: Invalid amount of parameters. logoff-user takes at least three. Firstname, Lastname, and message");
|
m_log.Error(
|
||||||
|
"[LOGOFF]: Invalid amount of parameters. logoff-user takes at least three. Firstname, Lastname, and message");
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
@ -331,7 +330,6 @@ namespace OpenSim.Grid.UserServer
|
||||||
ulong regionhandle, float positionX, float positionY,
|
ulong regionhandle, float positionX, float positionY,
|
||||||
float positionZ, string firstname, string lastname)
|
float positionZ, string firstname, string lastname)
|
||||||
{
|
{
|
||||||
|
|
||||||
m_messagesService.TellMessageServersAboutUser(agentID, sessionID, RegionID, regionhandle, positionX,
|
m_messagesService.TellMessageServersAboutUser(agentID, sessionID, RegionID, regionhandle, positionX,
|
||||||
positionY, positionZ, firstname, lastname);
|
positionY, positionZ, firstname, lastname);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue