server_binlog.php refactor, render HTML at once