05.01.2017, 19:59
Security questions should probably be stored in the database as well and referential integrity enforced. If the array is changed the security questions won't match up anymore (unless extreme care is taken to only add new questions to the end of the list).
For the IpToLong function; since you are already using sscanf you can use that to very simply explode the IP parts.
For the IpToLong function; since you are already using sscanf you can use that to very simply explode the IP parts.
PHP код:
sscanf(ip, "p<.>a<i>[4]", val)