fix double declare function getIpfromARecord() on lib.php