Update functions.inc.php

IP address variable wasn't passing through correctly