}
/**
- * Given an unsigned integer, returns an IPv6 address in octet notation
+ * Given a hexadecimal number, returns to an IPv6 address in octet notation
* @param $ip string hex IP
* @return string
*/
* @param $ip string Hex IP
* @return string
*/
- public static function hexToIP( $ip ) {
+ public static function hexToQuad( $ip ) {
// Converts a hexadecimal IP to nnn.nnn.nnn.nnn format
$dec = wfBaseConvert( $ip, 16, 10 );
$parts[3] = $dec % 256;
$block['reason'] = $row->ipb_reason;
if($fld_range)
{
- $block['rangestart'] = IP::hexToIP($row->ipb_range_start);
- $block['rangeend'] = IP::hexToIP($row->ipb_range_end);
+ $block['rangestart'] = IP::hexToQuad($row->ipb_range_start);
+ $block['rangeend'] = IP::hexToQuad($row->ipb_range_end);
}
if($fld_flags)
{