diff options
author | MW | 2007-05-31 11:32:17 +0000 |
---|---|---|
committer | MW | 2007-05-31 11:32:17 +0000 |
commit | cc679b98d5cf93303c649eb859464a362c5cd927 (patch) | |
tree | 9b1af3c918cd552f799d9990d893f0639ef7b6a2 | |
parent | class name change and directory properties modified (diff) | |
download | opensim-SC-cc679b98d5cf93303c649eb859464a362c5cd927.zip opensim-SC-cc679b98d5cf93303c649eb859464a362c5cd927.tar.gz opensim-SC-cc679b98d5cf93303c649eb859464a362c5cd927.tar.bz2 opensim-SC-cc679b98d5cf93303c649eb859464a362c5cd927.tar.xz |
Moved AuthenticateSessionsBase to OpenSim.Framework (is likely to move again or be deleted and replaced with something else)
-rw-r--r-- | OpenSim/OpenSim.RegionServer/AuthenticateSessionsBase.cs | 105 | ||||
-rw-r--r-- | OpenSim/OpenSim.RegionServer/OpenSim.RegionServer.csproj | 3 |
2 files changed, 0 insertions, 108 deletions
diff --git a/OpenSim/OpenSim.RegionServer/AuthenticateSessionsBase.cs b/OpenSim/OpenSim.RegionServer/AuthenticateSessionsBase.cs deleted file mode 100644 index a97ecdf..0000000 --- a/OpenSim/OpenSim.RegionServer/AuthenticateSessionsBase.cs +++ /dev/null | |||
@@ -1,105 +0,0 @@ | |||
1 | using System; | ||
2 | using System.Collections.Generic; | ||
3 | using System.Text; | ||
4 | using libsecondlife; | ||
5 | using OpenSim.Framework.Interfaces; | ||
6 | using OpenSim.Framework.Types; | ||
7 | |||
8 | namespace OpenSim | ||
9 | { | ||
10 | /* public class AuthenticateSessionsBase | ||
11 | { | ||
12 | public Dictionary<uint, AgentCircuitData> AgentCircuits = new Dictionary<uint, AgentCircuitData>(); | ||
13 | |||
14 | public AuthenticateSessionsBase() | ||
15 | { | ||
16 | |||
17 | } | ||
18 | |||
19 | public virtual AuthenticateResponse AuthenticateSession(LLUUID sessionID, LLUUID agentID, uint circuitcode) | ||
20 | { | ||
21 | AgentCircuitData validcircuit = null; | ||
22 | if (this.AgentCircuits.ContainsKey(circuitcode)) | ||
23 | { | ||
24 | validcircuit = this.AgentCircuits[circuitcode]; | ||
25 | } | ||
26 | AuthenticateResponse user = new AuthenticateResponse(); | ||
27 | if (validcircuit == null) | ||
28 | { | ||
29 | //don't have this circuit code in our list | ||
30 | user.Authorised = false; | ||
31 | return (user); | ||
32 | } | ||
33 | |||
34 | if ((sessionID == validcircuit.SessionID) && (agentID == validcircuit.AgentID)) | ||
35 | { | ||
36 | user.Authorised = true; | ||
37 | user.LoginInfo = new Login(); | ||
38 | user.LoginInfo.Agent = agentID; | ||
39 | user.LoginInfo.Session = sessionID; | ||
40 | user.LoginInfo.SecureSession = validcircuit.SecureSessionID; | ||
41 | user.LoginInfo.First = validcircuit.firstname; | ||
42 | user.LoginInfo.Last = validcircuit.lastname; | ||
43 | user.LoginInfo.InventoryFolder = validcircuit.InventoryFolder; | ||
44 | user.LoginInfo.BaseFolder = validcircuit.BaseFolder; | ||
45 | } | ||
46 | else | ||
47 | { | ||
48 | // Invalid | ||
49 | user.Authorised = false; | ||
50 | } | ||
51 | |||
52 | return (user); | ||
53 | } | ||
54 | |||
55 | public virtual void AddNewCircuit(uint circuitCode, AgentCircuitData agentData) | ||
56 | { | ||
57 | if (this.AgentCircuits.ContainsKey(circuitCode)) | ||
58 | { | ||
59 | this.AgentCircuits[circuitCode] = agentData; | ||
60 | } | ||
61 | else | ||
62 | { | ||
63 | this.AgentCircuits.Add(circuitCode, agentData); | ||
64 | } | ||
65 | } | ||
66 | |||
67 | public LLVector3 GetPosition(uint circuitCode) | ||
68 | { | ||
69 | LLVector3 vec = new LLVector3(); | ||
70 | if (this.AgentCircuits.ContainsKey(circuitCode)) | ||
71 | { | ||
72 | vec = this.AgentCircuits[circuitCode].startpos; | ||
73 | } | ||
74 | return vec; | ||
75 | } | ||
76 | |||
77 | public void UpdateAgentData(AgentCircuitData agentData) | ||
78 | { | ||
79 | if (this.AgentCircuits.ContainsKey((uint)agentData.circuitcode)) | ||
80 | { | ||
81 | this.AgentCircuits[(uint)agentData.circuitcode].firstname = agentData.firstname; | ||
82 | this.AgentCircuits[(uint)agentData.circuitcode].lastname = agentData.lastname; | ||
83 | this.AgentCircuits[(uint)agentData.circuitcode].startpos = agentData.startpos; | ||
84 | // Console.WriteLine("update user start pos is " + agentData.startpos.X + " , " + agentData.startpos.Y + " , " + agentData.startpos.Z); | ||
85 | } | ||
86 | } | ||
87 | |||
88 | public void UpdateAgentChildStatus(uint circuitcode, bool childstatus) | ||
89 | { | ||
90 | if (this.AgentCircuits.ContainsKey(circuitcode)) | ||
91 | { | ||
92 | this.AgentCircuits[circuitcode].child = childstatus; | ||
93 | } | ||
94 | } | ||
95 | |||
96 | public bool GetAgentChildStatus(uint circuitcode) | ||
97 | { | ||
98 | if (this.AgentCircuits.ContainsKey(circuitcode)) | ||
99 | { | ||
100 | return this.AgentCircuits[circuitcode].child; | ||
101 | } | ||
102 | return false; | ||
103 | } | ||
104 | }*/ | ||
105 | } | ||
diff --git a/OpenSim/OpenSim.RegionServer/OpenSim.RegionServer.csproj b/OpenSim/OpenSim.RegionServer/OpenSim.RegionServer.csproj index 73116ee..2c61026 100644 --- a/OpenSim/OpenSim.RegionServer/OpenSim.RegionServer.csproj +++ b/OpenSim/OpenSim.RegionServer/OpenSim.RegionServer.csproj | |||
@@ -135,9 +135,6 @@ | |||
135 | <Compile Include="AgentAssetUpload.cs"> | 135 | <Compile Include="AgentAssetUpload.cs"> |
136 | <SubType>Code</SubType> | 136 | <SubType>Code</SubType> |
137 | </Compile> | 137 | </Compile> |
138 | <Compile Include="AuthenticateSessionsBase.cs"> | ||
139 | <SubType>Code</SubType> | ||
140 | </Compile> | ||
141 | <Compile Include="AuthenticateSessionsLocal.cs"> | 138 | <Compile Include="AuthenticateSessionsLocal.cs"> |
142 | <SubType>Code</SubType> | 139 | <SubType>Code</SubType> |
143 | </Compile> | 140 | </Compile> |