04.07.2016, 11:47
localhost is always allowed in ScriptSecure.inc unless you use options
DONT_ALLOW_LOCALHOST
if the server ip 127.0.0.1 give the script will be available only for localhost
Example localhost:
Example public server (91.196.50.114:7777):
DONT_ALLOW_LOCALHOST
if the server ip 127.0.0.1 give the script will be available only for localhost
Example localhost:
PHP код:
#define FILE_SERVERIP "127.0.0.1"
#define FILE_SERVERPORT (7777)
#define FILE_LICENSEID (20160201) //<--- YYYYMMDD 01.02.2016 (DD.MM.YYYY)
#define FILE_MAX_PLAYERS (500) //max players in server.cfg
#define FILE_RCONPASS "123" //rcon password
#define FILE_LANGUAGE "English" //server language
PHP код:
#define FILE_SERVERIP "91.196.50.114"
#define FILE_SERVERPORT (7777)
#define FILE_LICENSEID (20160201) //<--- YYYYMMDD 01.02.2016 (DD.MM.YYYY)
#define FILE_MAX_PLAYERS (500) //max players in server.cfg
#define FILE_RCONPASS "123" //rcon password
#define FILE_LANGUAGE "English" //server language