can someone share how to do this ?
thanks ragezone
can someone share how to do this ?
thanks ragezone
In your folder Server-> DBSRV, comes an Admin.txt file, lists the IP's that can be access in following format:
0 10.10.10.1
1 10.10.10.2
...
100 10.10.10.101
Assuming 10.10.10.1 is the IP address of your server and the IP 10.10.10.2 to IP 10.10.10.101 are the IP's of people who can enter without using the command /openserver, consider that if you have a dynamic IP, you should be updating the values or create scripts to do it for you.
Do not forget that should be numbered from zero to N
Using some php can fix it, define in your website a GM's array, once they log on, with php opens the file admin.txt in DBSRV folder, Read each line and store it in another arrangement, get the IP of the user who logged on and updates the admin.txt file, thus access will be automatically updated. Use next commands:
fopen, fread, fwrite and $_SERVER[‘REMOTE_ADDR’]
considers that there may be firewalls and proxies behind the IP
Last edited by Kreeate; 05-10-16 at 08:28 AM. Reason: removed spam
This only works if they start the server after the Admin.txt file is edited else the preset ips in this Admin.txt mean nothing.
Apology does not agree, that currently I use the code I'm mentioning in my website, we are 6 GM and so do to connect no matter where we connect.
I invite you to do the test, our server is connected 24 hours a day and do not need a restart to take changes of Admin.txt.
GMDragos
gmdragos@tantra-legion.com
Last edited by GMDragos; 05-10-16 at 03:30 PM.
good morning GMDragos
hi..can you help me how to connect the website to log in ? or you have a tutorial video can i see sow that i get it and where i get the DBSRV that is my problem plss help GMDragos... thank you sow much and god bless....