diff options
-rw-r--r-- | OpenSim/Data/MySQL/Resources/GridUserStore.migrations | 3 | ||||
-rw-r--r-- | OpenSim/Services/Interfaces/IGridUserService.cs | 9 | ||||
-rw-r--r-- | OpenSim/Services/UserAccountService/GridUserService.cs | 2 | ||||
-rw-r--r-- | bin/OpenSim.ini.example | 29 | ||||
-rw-r--r-- | bin/OpenSimDefaults.ini | 4 |
5 files changed, 0 insertions, 47 deletions
diff --git a/OpenSim/Data/MySQL/Resources/GridUserStore.migrations b/OpenSim/Data/MySQL/Resources/GridUserStore.migrations index 440d076..d08e096 100644 --- a/OpenSim/Data/MySQL/Resources/GridUserStore.migrations +++ b/OpenSim/Data/MySQL/Resources/GridUserStore.migrations | |||
@@ -19,9 +19,6 @@ CREATE TABLE `GridUser` ( | |||
19 | COMMIT; | 19 | COMMIT; |
20 | 20 | ||
21 | :VERSION 2 # -------------------------- | 21 | :VERSION 2 # -------------------------- |
22 | |||
23 | BEGIN; | 22 | BEGIN; |
24 | 23 | ||
25 | ALTER TABLE `GridUser` ADD COLUMN TOS CHAR(36); | ||
26 | |||
27 | COMMIT; | 24 | COMMIT; |
diff --git a/OpenSim/Services/Interfaces/IGridUserService.cs b/OpenSim/Services/Interfaces/IGridUserService.cs index 620ed3a..8b738ab 100644 --- a/OpenSim/Services/Interfaces/IGridUserService.cs +++ b/OpenSim/Services/Interfaces/IGridUserService.cs | |||
@@ -50,8 +50,6 @@ namespace OpenSim.Services.Interfaces | |||
50 | public DateTime Login; | 50 | public DateTime Login; |
51 | public DateTime Logout; | 51 | public DateTime Logout; |
52 | 52 | ||
53 | public string TOS = string.Empty; | ||
54 | |||
55 | public GridUserInfo() {} | 53 | public GridUserInfo() {} |
56 | 54 | ||
57 | public GridUserInfo(Dictionary<string, object> kvp) | 55 | public GridUserInfo(Dictionary<string, object> kvp) |
@@ -80,11 +78,6 @@ namespace OpenSim.Services.Interfaces | |||
80 | if (kvp.ContainsKey("Online")) | 78 | if (kvp.ContainsKey("Online")) |
81 | Boolean.TryParse(kvp["Online"].ToString(), out Online); | 79 | Boolean.TryParse(kvp["Online"].ToString(), out Online); |
82 | 80 | ||
83 | if (kvp.ContainsKey("TOS")) | ||
84 | TOS = kvp["TOS"].ToString(); | ||
85 | else | ||
86 | TOS = string.Empty; | ||
87 | |||
88 | } | 81 | } |
89 | 82 | ||
90 | public Dictionary<string, object> ToKeyValuePairs() | 83 | public Dictionary<string, object> ToKeyValuePairs() |
@@ -103,8 +96,6 @@ namespace OpenSim.Services.Interfaces | |||
103 | result["Online"] = Online.ToString(); | 96 | result["Online"] = Online.ToString(); |
104 | result["Login"] = Login.ToString(); | 97 | result["Login"] = Login.ToString(); |
105 | result["Logout"] = Logout.ToString(); | 98 | result["Logout"] = Logout.ToString(); |
106 | |||
107 | result["TOS"] = TOS; | ||
108 | 99 | ||
109 | return result; | 100 | return result; |
110 | } | 101 | } |
diff --git a/OpenSim/Services/UserAccountService/GridUserService.cs b/OpenSim/Services/UserAccountService/GridUserService.cs index 8eae859..ac3d8fd 100644 --- a/OpenSim/Services/UserAccountService/GridUserService.cs +++ b/OpenSim/Services/UserAccountService/GridUserService.cs | |||
@@ -70,8 +70,6 @@ namespace OpenSim.Services.UserAccountService | |||
70 | info.Login = Util.ToDateTime(Convert.ToInt32(d.Data["Login"])); | 70 | info.Login = Util.ToDateTime(Convert.ToInt32(d.Data["Login"])); |
71 | info.Logout = Util.ToDateTime(Convert.ToInt32(d.Data["Logout"])); | 71 | info.Logout = Util.ToDateTime(Convert.ToInt32(d.Data["Logout"])); |
72 | 72 | ||
73 | info.TOS = d.Data["TOS"]; | ||
74 | |||
75 | return info; | 73 | return info; |
76 | } | 74 | } |
77 | 75 | ||
diff --git a/bin/OpenSim.ini.example b/bin/OpenSim.ini.example index 6dbb611..b21a214 100644 --- a/bin/OpenSim.ini.example +++ b/bin/OpenSim.ini.example | |||
@@ -947,35 +947,6 @@ | |||
947 | ;# {InitialTerrain} {} {Initial terrain type} {pinhead-island flat} pinhead-island | 947 | ;# {InitialTerrain} {} {Initial terrain type} {pinhead-island flat} pinhead-island |
948 | ; InitialTerrain = "pinhead-island" | 948 | ; InitialTerrain = "pinhead-island" |
949 | 949 | ||
950 | [TOSModule] | ||
951 | ;; Terms of Service module. It requires an external web script. Unless you | ||
952 | ;; have that in place, don't enable this module. | ||
953 | |||
954 | ;# {Enabled} {} {Enable TOS facilities} {true false} false | ||
955 | ; Enabled = false | ||
956 | |||
957 | ;; Should local users be shown the TOS on first login? | ||
958 | ;# {ShowToLocalUsers} {} {Show TOS to local users} {true false} false | ||
959 | ; ShowToLocalUsers = false | ||
960 | ;; Should foreign users be shown the TOS on first HG login? | ||
961 | ;# {ShowToForeignUsers} {} {Show TOS to foreign users} {true false} true | ||
962 | ; ShowToForeignUsers = true | ||
963 | |||
964 | ;; Tell the users what this is about | ||
965 | ; Message = "Please read and agree to the Terms of Service" | ||
966 | |||
967 | ;; How much time do the users have to accept the TOS before they get kicked out? | ||
968 | ;; (in minutes) | ||
969 | ; Timeout = 5 | ||
970 | |||
971 | ;; This page should have Accept/Decline links somewhere | ||
972 | ;; that affect the GridUsers table. If you don't have such | ||
973 | ;; script in place, don't use the TOSModule. The TOSModule appends this URL | ||
974 | ;; with a query ?user={userid}&sid={sessionid} | ||
975 | ;# {TOS_URL} {} {The URL for the TOS page} {} | ||
976 | TOS_URL = "http://mygrid.com/tos" | ||
977 | |||
978 | |||
979 | [Architecture] | 950 | [Architecture] |
980 | ;# {Include-Architecture} {} {Choose one of the following architectures} {config-include/Standalone.ini config-include/StandaloneHypergrid.ini config-include/Grid.ini config-include/GridHypergrid.ini config-include/SimianGrid.ini config-include/HyperSimianGrid.ini} config-include/Standalone.ini | 951 | ;# {Include-Architecture} {} {Choose one of the following architectures} {config-include/Standalone.ini config-include/StandaloneHypergrid.ini config-include/Grid.ini config-include/GridHypergrid.ini config-include/SimianGrid.ini config-include/HyperSimianGrid.ini} config-include/Standalone.ini |
981 | ;; Uncomment one of the following includes as required. For instance, to create a standalone OpenSim, | 952 | ;; Uncomment one of the following includes as required. For instance, to create a standalone OpenSim, |
diff --git a/bin/OpenSimDefaults.ini b/bin/OpenSimDefaults.ini index 744187b..315ffbe 100644 --- a/bin/OpenSimDefaults.ini +++ b/bin/OpenSimDefaults.ini | |||
@@ -1624,10 +1624,6 @@ | |||
1624 | [Terrain] | 1624 | [Terrain] |
1625 | InitialTerrain = "pinhead-island" | 1625 | InitialTerrain = "pinhead-island" |
1626 | 1626 | ||
1627 | [TOSModule] | ||
1628 | ;; Enable TOS facilities | ||
1629 | Enabled = false | ||
1630 | |||
1631 | ;; | 1627 | ;; |
1632 | ;; If you are using a simian grid frontend you can enable | 1628 | ;; If you are using a simian grid frontend you can enable |
1633 | ;; this module to upload tile images for the mapping fn | 1629 | ;; this module to upload tile images for the mapping fn |