get_name(); $g_user->Check(); $g_user->check_dossier($gDossier); // Security if ($_GET['jrn_id'] != 0 && $g_user->check_jrn($_GET['jrn_id']) == 'X') { /* Cannot Access */ NoAccess(); } $ret = ""; $jrn_type = $Jrn->get_type(); $pdf = Print_Ledger::factory($cn, $_REQUEST['p_simple'], "PDF", $Jrn); $pdf->setDossierInfo($Jrn->name); $pdf->AliasNbPages(); $pdf->AddPage(); $pdf->SetAuthor('NOALYSS'); $pdf->setTitle(_("Journal"), true); $pdf->export(); $fDate = date('dmy-Hi'); $pdf->Output('journal-' . $fDate . '.pdf', 'D'); exit(0); ?>