Update global_func.php