Update func.inc.php