refactor certificado-data.php