Reference Manuals

User

Synopsis

bool           ip_match                  ( IPAddress $ip1,
                                           IPAddress $ip2 );

Classes

AuthMixInA mixin for the User module that provides user groups and auth options
IPAddressA simple IP address class that works with IPv4 and IPv6
PreferencesMixInA user preferences mixin for the User module
UserA simple user authentication system
UserMixInAn 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