Thread: [Include] Script Secure ADM
View Single Post
Old 07/02/2016, 09:24 PM   #5
Join Date: Jun 2015
Location: Romania
Posts: 490
Reputation: 131
Default Re: Script Secure ADM

1. Your protection will fail if "bind" is unset since comparing a null string to a non-null string will return 0 (strings are the same)

2. There is no point in checking if rcon_password is unset because it can't be.

3. I don't get why you stop server if Language or RCON Password is set to any other value than what it is defined in script. Why don't you just change them to the value that should be and eventually print a warning message.

4. Instead of throwing the same error in case of misconfiguration (Invalid Server Config) it should print different messages for every case. It can be quite hard for a newbie to find out what is misconfigured.
Spmn is offline   Reply With Quote