Small mod to support IPv6.
Change
Code:
function isValidIPv4($addr) {
$octs = explode('.',$addr);
if (count($octs) != 4) return false;
foreach ($octs as $oct) {
if (!ctype_digit($oct)) return false;
$oct = intval($oct);
if ($oct < 0 || $oct > 255) return false;
}
return true;
}
?>
To this in the includes/functions_boofo.php
Code:
function isValidIPv4($addr) {
return inet_pton($addr) !== false;
}
?>