API IpUtil

Parameter Default Description
IpUtil ()
Constructor of the class, returns a pointer.
UserIp ()
Returns the current IP address of the user.
IpInRange ($mMyIP, $mRangeIPs)
Checks if the given IP address is included in the list of IP addresses. If successful, returns true.
$mMyIP Check IP address.
$mRangeIPs List of IP addresses to be searched. It can be either a single address of string type or an array of values. In addition, it is allowed to use special characters: "*" or "-". For example: 129.134.*.*, 123-154.122.123.*