$ged->dir('document/' . date("Y") . '/' . date("m")); $proj->le($dd[0]); /* Step 1 */ $ok = $cep->cadastra_protocolo($protocolo, '[]' . $proj->doc_1_titulo, $autor); if ($ok == 1) { /* Step 2 */ $protocolo_cep = $cep->recupera_protocolo_submissao($protocolo, '1'); $cep->protocolo = $protocolo_cep; $cep->protocolo_submission = $protocolo; $cep->versao = 1; /* Step 3 */ $cep->limpa_projetos_anteriores(); /* Step 4 */ $cep->create_pdf_submit_file(); /* Step 5 */ $cep->transfere_autores(); /* Step 6 */ $cep->envia_arquivos_submissao_apreciacao(); /* Step 7 */ $cep->change_status_files_submited(); /* Step 8 */ $cep->cep_historic_append('SUB', msg('submitted_by_the_author')); /* Step 9 */ $proj->protocolo_altera_status($protocolo, '@', 'A'); /* Step 10 */ $cep->confirm_notify_by_email(); $cep->confirm_submission_by_email(); echo '<div style="text-align: justify; width: 80%">'; echo msg('submission_end_text'); echo '</div>'; }