From 4dec69ae633b28b186d9d4135e208bcc997d7eef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96sterreicher?= Date: Wed, 7 Feb 2018 20:06:34 +0100 Subject: [PATCH] Removed legacy Script --- cis/public/incoming/learningAgreementPdf.php | 79 -------------------- 1 file changed, 79 deletions(-) delete mode 100644 cis/public/incoming/learningAgreementPdf.php diff --git a/cis/public/incoming/learningAgreementPdf.php b/cis/public/incoming/learningAgreementPdf.php deleted file mode 100644 index a0f8b6c77..000000000 --- a/cis/public/incoming/learningAgreementPdf.php +++ /dev/null @@ -1,79 +0,0 @@ -, - * Andreas Oesterreicher and - * Rudolf Hangl . - */ -/* Erstellt einen Lehrauftrag im PDF Format - * - * Erstellt ein XML File Transformiert dieses mit - * Hilfe der XSL-FO Vorlage aus der DB und generiert - * daraus ein PDF (xslfo2pdf) - */ -require_once('../../../config/vilesci.config.inc.php'); -require_once 'auth.php'; -require_once('../../../include/functions.inc.php'); -require_once('../../../include/xslfo2pdf/xslfo2pdf.php'); -require_once('../../../include/akte.class.php'); -require_once('../../../include/vorlage.class.php'); -require_once('../../../include/organisationseinheit.class.php'); -require_once('../../../include/studiengang.class.php'); - -$db = new basis_db(); - -//Parameter setzen -$params='?xmlformat=xml'; -if(isset($_GET['id'])) - $params.='&id='.$_GET['id']; -$xml='learningagreement.rdf.php'; - -$xml_url=XML_ROOT.$xml.$params; - -// Load the XML source -$xml_doc = new DOMDocument; - -if(!$xml_doc->load($xml_url)) - die('unable to load xml: '.$xml_url); - -//XSL aus der DB holen -$vorlage = new vorlage(); -$vorlage->getAktuelleVorlage('0', 'LearningAgree'); - -$xsl_content = $vorlage->text; -//Pdf erstellen - -$filename='LearningAgreement'; - -$fo2pdf = new XslFo2Pdf(); - -// Load the XSL source -$xsl_doc = new DOMDocument; - -if(!$xsl_doc->loadXML($xsl_content)) - die('unable to load xsl'); - -// Configure the transformer -$proc = new XSLTProcessor; -$proc->importStyleSheet($xsl_doc); // attach the xsl rules - -$buffer = $proc->transformToXml($xml_doc); -if (!$fo2pdf->generatePdf($buffer, $filename, "D")) -{ - echo('Failed to generate PDF'); -} -?>