Newbie Spellweaver
- Joined
- Apr 3, 2014
- Messages
- 86
- Reaction score
- 22
When I press Web Item Mall button nothing happen, what I'm doing wrong ?
you have to set up website.
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature currently requires accessing the site using the built-in Safari browser.
When I press Web Item Mall button nothing happen, what I'm doing wrong ?
This is working only with zend server, after 30 days will expire, there is another solution to host files?
Tried all php version in iis, mssql connection is working but I get only white page.
using System;
using System.Runtime.InteropServices;
using System.Text;
using System.Net;
using System.Collections.Generic;
using System.Threading;
using FirewallControl;
namespace sroprot.Core
{
public sealed class FirewallManager
{
static FirewallManager m_Instance = null;
private FirewallManager() { }
public static FirewallManager getInstance()
{
if (m_Instance == null)
{
m_Instance = new FirewallManager();
}
return m_Instance;
}
public static string FWRuleName = "SR_Blocklist";
private List<FwBlockList> blocklist = new List<FwBlockList>();
private Thread m_FirewallWorker = null;
private bool m_IsRunning = false;
private bool m_IsCreated = false;
private Firewall FWCtrl = new Firewall();
private struct FwBlockList
{
public String ipaddr;
public DateTime time;
}
public void AddToFwBlockList(string ip)
{
try
{
Global.BlockedIpAddresses.Add(ip);
DateTime time = new DateTime();
time = DateTime.Now;
FwBlockList item = new FwBlockList()
{
ipaddr = ip,
time = time
};
blocklist.Add(item);
if (Global.EnableFirewallBlocking)
{
FWCtrl.AddBlockAddresses(ip);
}
}
catch
{
Console.WriteLine("Status: Failed to add entry");
return;
}
}
public void RemToFwBlockList(string ip)
{
try
{
Global.BlockedIpAddresses.Remove(ip);
if (Global.EnableFirewallBlocking)
{
FWCtrl.RemoveBlockAddresses(ip);
}
}
catch
{
Console.WriteLine("Status: Failed to add entry");
return;
}
}
void FirewallThread()
{
while (this.m_IsRunning)
{
try
{
if (blocklist != null)
{
for (int i = 0; i < blocklist.Count; i++)
{
var addr = blocklist[i].ipaddr;
var time = blocklist[i].time;
TimeSpan span = new TimeSpan();
span = DateTime.Now - time;
int timespan = span.Seconds;
if (timespan > Global.IPBlockDuration)
{
blocklist.RemoveAll
(
structure => structure.ipaddr == addr
);
RemToFwBlockList(addr);
}
}
}
}
catch
{
Console.WriteLine("Status: Error failed to start FirewallThread thread");
}
Thread.Sleep(1);
}
}
public void StartFirewall(string p1, string p2)
{
if (this.m_IsRunning)
return;
try
{
if (Global.EnableFirewallBlocking)
{
this.FWCtrl.CreateRule(FWRuleName, p1 + "," + p2);
if (this.FWCtrl.RuleIsCreated)
{
Console.WriteLine("Status: {0} firewall rule was created!", FWRuleName);
}
}
this.m_FirewallWorker = new Thread(this.FirewallThread);
this.m_IsRunning = true;
this.m_FirewallWorker.Start();
}
catch
{
Console.WriteLine("Status: Error at starting m_FirewallWorker thread");
return;
}
}
void StopFwThread()
{
if (!this.m_IsRunning)
return;
try
{
this.m_FirewallWorker.Abort();
this.m_FirewallWorker = null;
}
catch
{
Console.WriteLine("Status: Error at aborting m_FirewallWorker thread");
return;
}
this.m_IsRunning = false;
}
}
}
To fix disconnections or no responds from server issue in sroprot..
In UserContexts.cs go to DoRecvFromClientCallback and DoRecvFromModuleCallback functions and make it to process only a complete buffer, cuz SilkroadSecurityApi was made in blocking method...
correct me if I'm wrong with this.. I'm not a pro programmer...
;SroProt common configuration file
;--------------------------------------------------
[server]
;Will appear at console window title
name=PlayXenon-Revolution
;Traffic limiter
MaxBytesPerSecondRecv=10000
MaxBytesPerSecondSend=10000
ReportTrafficAbuser=true
;Use __IPLockDown procedure to assign account to ip address
acc_ip_limitation=true
;Maximum connections per one IP Address
PerAddressConnectionLimit=5
;Ingame feature fixes
item_mall_buy_fix=true
silk_display_fix=true
web_item_mall_token_fix=true
;SQL Connection string (required)
sql_str=Server=myy\SQLEXPRESS;Database=SILK_ACCOUNTDB;User Id=h1;Password=hnserver;
;Server count, Section names - server_0, server_1 and so on]
count=2
;Log levels to display
display_notify=true
display_warning=true
display_error=true
;--------------------------------------------------
[server_0]
;All interfaces=127.0.0.1
bind_ip=myip
bind_port=15779
;Destination module address
module_ip=myip
module_port=5000
type=GatewayServer
;Security flags for each server user context
blowfish=false
sec_bytes=false
handshake=false
;--------------------------------------------------
[server_1]
;All interfaces=127.0.0.1
bind_ip=myip
bind_port=15884
;Destination module address
module_ip=myip
module_port=5005
type=AgentServer
blowfish=false
sec_bytes=false
handshake=false
;--------------------------------------------------
[agent_redir]
count=1
[agent_redir_0]
src_ip=myip
src_port=5005
dest_ip=myip
dest_port=15884
Error Buying Item
you have dc but _STRG_ADD_ITEMS_FROM_WEB_ITEM_DATA not support items with TypeID1 = 3 TypeID2 = 5 TypeID3 = 5
need fix _STRG_ADD_ITEMS_FROM_WEB_ITEM_DATA and add in _BUY_INGAME_MALL_ITEM the ability to buy PACKAGE items