mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
gridinfo and ossl
This commit is contained in:
@@ -784,7 +784,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
public LSL_Float llSin(double f)
|
||||
{
|
||||
m_host.AddScriptLPS(1);
|
||||
return (double)Math.Sin(f);
|
||||
return Math.Sin(f);
|
||||
}
|
||||
|
||||
public LSL_Float llCos(double f)
|
||||
|
||||
@@ -2667,39 +2667,14 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
{
|
||||
CheckThreatLevel(ThreatLevel.Moderate, "osGetGridHomeURI");
|
||||
|
||||
IConfigSource config = m_ScriptEngine.ConfigSource;
|
||||
string HomeURI = Util.GetConfigVarFromSections<string>(config, "HomeURI",
|
||||
new string[] { "Startup", "Hypergrid" }, String.Empty);
|
||||
|
||||
if (!string.IsNullOrEmpty(HomeURI))
|
||||
return HomeURI;
|
||||
|
||||
// Legacy. Remove soon!
|
||||
if (config.Configs["LoginService"] != null)
|
||||
HomeURI = config.Configs["LoginService"].GetString("SRV_HomeURI", HomeURI);
|
||||
|
||||
if (String.IsNullOrEmpty(HomeURI))
|
||||
HomeURI = GridUserInfo(InfoType.Home);
|
||||
|
||||
return HomeURI;
|
||||
return World.SceneGridInfo.HGHomeURLNoEndSlash;
|
||||
}
|
||||
|
||||
public string osGetGridGatekeeperURI()
|
||||
{
|
||||
CheckThreatLevel(ThreatLevel.Moderate, "osGetGridGatekeeperURI");
|
||||
|
||||
IConfigSource config = m_ScriptEngine.ConfigSource;
|
||||
string gatekeeperURI = Util.GetConfigVarFromSections<string>(config, "GatekeeperURI",
|
||||
new string[] { "Startup", "Hypergrid" }, String.Empty);
|
||||
|
||||
if (!string.IsNullOrEmpty(gatekeeperURI))
|
||||
return gatekeeperURI;
|
||||
|
||||
// Legacy. Remove soon!
|
||||
if (config.Configs["GridService"] != null)
|
||||
gatekeeperURI = config.Configs["GridService"].GetString("Gatekeeper", gatekeeperURI);
|
||||
|
||||
return gatekeeperURI;
|
||||
return World.SceneGridInfo.HGGateKeeperURLNoEndSlash;
|
||||
}
|
||||
|
||||
public string osGetGridCustom(string key)
|
||||
|
||||
Reference in New Issue
Block a user