} /** * zendPdf generated report. */ include("$autoLoadDir/autoload2.php"); include(dirname(__FILE__)."/zendPdfSupport.php"); include(dirname(__FILE__)."/ZendPdfExtend.php"); $doc = "$reportId.pdf"; $doc = "Barnbyte.pdf";//temp if (!file_exists($reportPath.$doc)) { $pdf = new Zend_Pdf(); $pdf->pages[] = $pdf->newPage(Zend_Pdf_Page::SIZE_A4); $page = $pdf->pages[0]; } else { $pdf = Library_Pdf_Base::load($reportPath.$doc); $templatePage = count($pdf->pages)-1; $page = new Zend_Pdf_Page($pdf->pages[$templatePage]); unset($pdf->pages[$templatePage]); $pdf->pages[] = $page; } $page->setFont(Zend_Pdf_Font::fontWithName(Zend_Pdf_Font::FONT_HELVETICA), 20); $page->setFont($page->getFont(), 12); include("$easyDBDir/easyDB.php"); include("$easyDBDir/easyDBConn2.php"); $db = easyDB(''); //process parameters. $id = $_REQUEST['id']; $query="Select
if (!isset($injections[$_REQUEST['datasource']])) { die("document not found."); } $doc = $injections[$_REQUEST['datasource']]; */ $doc = 'barnrapportbrev.pdf'; $path = dirname(__FILE__) . "/../files/pdfReports/"; if (file_exists(dirname(__FILE__)."/custom_local.php")) { include(dirname(__FILE__)."/custom_local.php"); } if (!file_exists($path.$doc)) { die("pdf file not found"); } include("ZendPdfExtend.php"); $pdf = Library_Pdf_Base::load($path.$doc); function centerText($text, $size) { return str_pad($text, $size, ' ', STR_PAD_BOTH); } function cleanText($text) { return html_entity_decode($text); } //setup db $offset = ".."; include("$offset/blackboard.php"); include("$offset/do/DBNamespace.php"); include("$offset/do/fb_si.php"); include("$offset/do/easyDB.php"); $DBProvider="sqlite"; $connections["sqlite"]=array(
include("../autoload2.php"); include("Injections.php"); if (!isset($injections[$_REQUEST['datasource']])) { die("document not found."); } $doc = $injections[$_REQUEST['datasource']]; $path = dirname(__FILE__) . "/../files/pdfReports/"; if (file_exists(dirname(__FILE__)."/custom_local.php")) { include(dirname(__FILE__)."/custom_local.php"); } if (!file_exists($path.$doc['file'])) { die("pdf file not found"); } include("ZendPdfExtend.php"); $pdf = Library_Pdf_Base::load($path.$doc['file']); function centerText($text, $size) { return str_pad($text, $size, ' ', STR_PAD_BOTH); } //setup db $offset = ".."; include("$offset/blackboard.php"); include("$offset/do/DBNamespace.php"); include("$offset/do/fb_si.php"); include("$offset/do/easyDB.php"); $DBProvider="sqlite"; $connections["sqlite"]=array( ''=>array('dbFile'=>"$offset/data/data.db",'persist'=>true) ); $db = easyDB('');