diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs index c682fda..7792ab5 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | |||
@@ -1949,6 +1949,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
1949 | Nick, | 1949 | Nick, |
1950 | Name, | 1950 | Name, |
1951 | Login, | 1951 | Login, |
1952 | Home, | ||
1952 | Custom | 1953 | Custom |
1953 | }; | 1954 | }; |
1954 | 1955 | ||
@@ -1990,6 +1991,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
1990 | retval = json["login"]; | 1991 | retval = json["login"]; |
1991 | break; | 1992 | break; |
1992 | 1993 | ||
1994 | case InfoType.Home: | ||
1995 | retval = json["home"]; | ||
1996 | break; | ||
1997 | |||
1993 | case InfoType.Custom: | 1998 | case InfoType.Custom: |
1994 | retval = json[key]; | 1999 | retval = json[key]; |
1995 | break; | 2000 | break; |
@@ -2062,6 +2067,23 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
2062 | return loginURI; | 2067 | return loginURI; |
2063 | } | 2068 | } |
2064 | 2069 | ||
2070 | public string osGetGridHomeURI() | ||
2071 | { | ||
2072 | CheckThreatLevel(ThreatLevel.Moderate, "osGetGridHomeURI"); | ||
2073 | m_host.AddScriptLPS(1); | ||
2074 | |||
2075 | string HomeURI = String.Empty; | ||
2076 | IConfigSource config = m_ScriptEngine.ConfigSource; | ||
2077 | |||
2078 | if (config.Configs["LoginService"] != null) | ||
2079 | HomeURI = config.Configs["LoginService"].GetString("SRV_HomeURI", HomeURI); | ||
2080 | |||
2081 | if (String.IsNullOrEmpty(HomeURI)) | ||
2082 | HomeURI = GridUserInfo(InfoType.Home); | ||
2083 | |||
2084 | return HomeURI; | ||
2085 | } | ||
2086 | |||
2065 | public string osGetGridCustom(string key) | 2087 | public string osGetGridCustom(string key) |
2066 | { | 2088 | { |
2067 | CheckThreatLevel(ThreatLevel.Moderate, "osGetGridCustom"); | 2089 | CheckThreatLevel(ThreatLevel.Moderate, "osGetGridCustom"); |