login (); if (empty ($_REQUEST['invoice'])) throw new Exception (s('Invoice id not sent')); $pdfPath = $db->getValueFromFile (__DIR__ .'/invoice', ['invoice' => (int) $_GET['invoice']]); if (!$pdfPath) throw new Exception (s('Invoice id not found')); Vn\Web\printFile ($pdfPath); } } ?>