Update cal_hook.php