PHP Code:
import os
import app
import locale
import debugInfo
CHINA_PORT = 50000
CH1P = 13001
CH2P = 13002
CH3P = 13003
CH4P = 13004
AUTHP = 11002
IP = open("serverip.cfg", "r").readline()
SERVERNAME = open("servername.cfg", "r").readline()
if locale.IsEUROPE():
STATE_NONE = "..."
STATE_DICT = {
0 : "ist offline",
1 : "NORM",
2 : "BUSY",
3 : "FULL"
}
Server1 = {
1:{"key":11,"name":"CH1","ip":IP,"tcp_port":CH1P,"udp_port":CH1P,"state":STATE_NONE,},
2:{"key":12,"name":"CH2","ip":IP,"tcp_port":CH2P,"udp_port":CH2P,"state":STATE_NONE,},
3:{"key":12,"name":"CH3","ip":IP,"tcp_port":CH3P,"udp_port":CH3P,"state":STATE_NONE,},
4:{"key":12,"name":"CH4","ip":IP,"tcp_port":CH4P,"udp_port":CH4P,"state":STATE_NONE,},
}
REGION_NAME_DICT = {
0 : "GERMANY",
}
REGION_AUTH_SERVER_DICT = {
0 : {
1 : { "ip":IP, "port":AUTHP, },
}
}
REGION_DICT = {
0 : {
1 : { "name" :SERVERNAME, "channel" : Server1, },
},
}
MARKADDR_DICT = {
10 : { "ip" : IP, "tcp_port" : 13001, "mark" : "10.tga", "symbol_path" : "10", },
}
TESTADDR = { "ip" : IP, "tcp_port" : 15000, "udp_port" : 15000, }