0.899
This commit is contained in:
@@ -265,6 +265,8 @@ function RunListenServer()
|
||||
bWasRun = 1;
|
||||
});
|
||||
};
|
||||
var LangPathMap = {};
|
||||
LangPathMap["ru"] = 1;
|
||||
var WalletFileMap = {};
|
||||
WalletFileMap["coinlib.js"] = 1;
|
||||
WalletFileMap["client.js"] = 1;
|
||||
@@ -284,6 +286,7 @@ WalletFileMap["sign-lib-min.js"] = 1;
|
||||
WalletFileMap["buttons.css"] = 1;
|
||||
WalletFileMap["style.css"] = 1;
|
||||
WalletFileMap["wallet.css"] = 1;
|
||||
WalletFileMap["history.html"] = 1;
|
||||
WalletFileMap["blockviewer.html"] = 1;
|
||||
WalletFileMap["web-wallet.html"] = 1;
|
||||
global.WebApi2 = {};
|
||||
@@ -378,10 +381,15 @@ function DoCommandNew(response,Type,Path,Params)
|
||||
return ;
|
||||
}
|
||||
else
|
||||
if(WalletFileMap[Name])
|
||||
PrefixPath = "./HTML";
|
||||
if(LangPathMap[Method])
|
||||
{
|
||||
PrefixPath = "./SITE/" + Method;
|
||||
}
|
||||
else
|
||||
PrefixPath = "./SITE";
|
||||
if(WalletFileMap[Name])
|
||||
PrefixPath = "./HTML";
|
||||
else
|
||||
PrefixPath = "./SITE";
|
||||
var type = Path.substr(Path.length - 3, 3);
|
||||
switch(type)
|
||||
{
|
||||
@@ -729,6 +737,12 @@ HostingCaller.DappStaticCall = function (Params)
|
||||
return {result:0};
|
||||
return HTTPCaller.DappStaticCall(Params);
|
||||
};
|
||||
HostingCaller.GetHistoryTransactions = function (Params)
|
||||
{
|
||||
if(typeof Params !== "object")
|
||||
return {result:0};
|
||||
return HTTPCaller.GetHistoryTransactions(Params);
|
||||
};
|
||||
global.GlobalRunID = 0;
|
||||
global.GlobalRunMap = {};
|
||||
process.RunRPC = function (Name,Params,F)
|
||||
@@ -784,3 +798,10 @@ setInterval(function ()
|
||||
}
|
||||
}, 1000);
|
||||
require("./api-exchange.js");
|
||||
try
|
||||
{
|
||||
require("../SITE/JS/web-addon.js");
|
||||
}
|
||||
catch(e)
|
||||
{
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user