mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 17:55:48 +08:00
Merge branch 'avination-current' into ubitwork
This commit is contained in:
@@ -53,6 +53,24 @@ namespace OpenSim.Framework
|
||||
binaryBucket = new byte[0];
|
||||
}
|
||||
|
||||
public GridInstantMessage(GridInstantMessage im, bool addTimestamp)
|
||||
{
|
||||
fromAgentID = im.fromAgentID;
|
||||
fromAgentName = im.fromAgentName;
|
||||
toAgentID = im.toAgentID;
|
||||
dialog = im.dialog;
|
||||
fromGroup = im.fromGroup;
|
||||
message = im.message;
|
||||
imSessionID = im.imSessionID;
|
||||
offline = im.offline;
|
||||
Position = im.Position;
|
||||
binaryBucket = im.binaryBucket;
|
||||
RegionID = im.RegionID;
|
||||
|
||||
if (addTimestamp)
|
||||
timestamp = (uint)Util.UnixTimeSinceEpoch();
|
||||
}
|
||||
|
||||
public GridInstantMessage(IScene scene, UUID _fromAgentID,
|
||||
string _fromAgentName, UUID _toAgentID,
|
||||
byte _dialog, bool _fromGroup, string _message,
|
||||
|
||||
@@ -33,7 +33,7 @@ namespace OpenSim.Framework
|
||||
public interface IMoneyModule
|
||||
{
|
||||
bool ObjectGiveMoney(UUID objectID, UUID fromID, UUID toID,
|
||||
int amount, UUID txn);
|
||||
int amount, UUID txn, out string reason);
|
||||
|
||||
int GetBalance(UUID agentID);
|
||||
bool UploadCovered(UUID agentID, int amount);
|
||||
|
||||
@@ -41,6 +41,7 @@ namespace OpenSim.Framework
|
||||
|
||||
// "Out of band" managemnt https
|
||||
public bool ssl_listener = false;
|
||||
public bool ssl_external = false;
|
||||
public uint https_port = 0;
|
||||
public string cert_path = String.Empty;
|
||||
public string cert_pass = String.Empty;
|
||||
@@ -64,6 +65,7 @@ namespace OpenSim.Framework
|
||||
|
||||
// "Out of band management https"
|
||||
ssl_listener = config.Configs["Network"].GetBoolean("https_listener",false);
|
||||
ssl_external = config.Configs["Network"].GetBoolean("https_external",false);
|
||||
if( ssl_listener)
|
||||
{
|
||||
cert_path = config.Configs["Network"].GetString("cert_path",String.Empty);
|
||||
|
||||
@@ -224,10 +224,12 @@ namespace OpenSim.Framework
|
||||
//
|
||||
public RegionInfo(string description, XmlNode xmlNode, bool skipConsoleConfig, IConfigSource configSource)
|
||||
{
|
||||
// m_configSource = configSource;
|
||||
configMember =
|
||||
new ConfigurationMember(xmlNode, description, loadConfigurationOptions, handleIncomingConfiguration, !skipConsoleConfig);
|
||||
configMember.performConfigurationRetrieve();
|
||||
XmlElement elem = (XmlElement)xmlNode;
|
||||
string name = elem.GetAttribute("Name");
|
||||
string xmlstr = "<Nini>" + xmlNode.OuterXml + "</Nini>";
|
||||
XmlConfigSource source = new XmlConfigSource(XmlReader.Create(new StringReader(xmlstr)));
|
||||
ReadNiniConfig(source, name);
|
||||
|
||||
m_serverURI = string.Empty;
|
||||
}
|
||||
|
||||
|
||||
@@ -93,8 +93,8 @@ namespace OpenSim.Framework.RegionLoader.Web
|
||||
xmlSource.Length);
|
||||
XmlDocument xmlDoc = new XmlDocument();
|
||||
xmlDoc.LoadXml(xmlSource);
|
||||
if (xmlDoc.FirstChild.Name == "Regions")
|
||||
{
|
||||
if (xmlDoc.FirstChild.Name == "Nini")
|
||||
{
|
||||
regionCount = xmlDoc.FirstChild.ChildNodes.Count;
|
||||
|
||||
if (regionCount > 0)
|
||||
|
||||
Reference in New Issue
Block a user