Reference Manuals
User
Synopsis
bool ip_match ( IPAddress $ip1,
IPAddress $ip2 );
Classes
-
AuthMixIn —
A mixin for the User module that provides user groups and auth options
-
IPAddress —
A simple IP address class that works with IPv4 and IPv6
-
PreferencesMixIn —
A user preferences mixin for the User module
-
User —
A simple user authentication system
-
UserMixIn —
An abstract MixIn for a User object
Functions
ip_match()
bool ip_match ( IPAddress $ip1,
IPAddress $ip2 );
Test if two IP addresses match
This function takes CIDR prefixes in account. If one of the addresses is an IP range, it will test if the other address falls into the range. If both addresses have a range, it will test if the ranges overlap.
- $ip1
- The first IP address
- $ip2
- The second IP address