Empty commit

This commit is contained in:
Git 2014-08-13 08:00:26 +00:00
parent 4a08c9ccfb
commit 76490754e2

View File

@ -285,13 +285,13 @@ public static function update_user_notes($UserID, $AdminComment) {
}
/**
* Check if an IP is part of a given CIDR range.
* @param string $CheckIP the IP to be looked up
* Check if an IP address is part of a given CIDR range.
* @param string $CheckIP the IP address to be looked up
* @param string $Subnet the CIDR subnet to be checked against
*/
public static function check_cidr_range($CheckIP, $Subnet) {
$IP = ip2long($CheckIP);
$CIDR = split('/',$Subnet);
$CIDR = split('/', $Subnet);
$SubnetIP = ip2long($CIDR[0]);
$SubnetMaskBits = 32 - $CIDR[1];