updated log.php