diff --git a/lam/lib/pdf.inc b/lam/lib/pdf.inc index 36b1edd7..1ef4a0d8 100644 --- a/lam/lib/pdf.inc +++ b/lam/lib/pdf.inc @@ -41,9 +41,6 @@ define('LAMPDF_FONT_SIZE', 7); /** font size for bigger text */ define('LAMPDF_FONT_SIZE_BIG', 10); -/** XML functions */ -include_once('xml_parser.inc'); - /** access to PDF configuration files */ include_once('pdfstruct.inc'); diff --git a/lam/lib/xml_parser.inc b/lam/lib/xml_parser.inc deleted file mode 100644 index fb425911..00000000 --- a/lam/lib/xml_parser.inc +++ /dev/null @@ -1,70 +0,0 @@ -xmlParser = xml_parser_create(); - xml_set_object($this->xmlParser, $this); - xml_parser_set_option($this->xmlParser, XML_OPTION_CASE_FOLDING, 1); - xml_parser_set_option($this->xmlParser, XML_OPTION_SKIP_WHITE, 1); - } - - /** - * Starts the parsing. - * - * @param String $filename file name - * @return array XML structure - */ - function parse($filename) { - if(file_exists($filename)) { - $xmlStructure = array(); - $xmlIndex = array(); - $xmlContent = - xml_parse_into_struct($this->xmlParser, implode("", file($filename)), $xmlStructure, $xmlIndex); - return array($xmlStructure, $xmlIndex); - } - return array(); - } -} -?> \ No newline at end of file diff --git a/lam/templates/pdfedit/pdfpage.php b/lam/templates/pdfedit/pdfpage.php index 44227edb..49ca4c63 100644 --- a/lam/templates/pdfedit/pdfpage.php +++ b/lam/templates/pdfedit/pdfpage.php @@ -60,8 +60,6 @@ include_once('../../lib/ldap.inc'); include_once('../../lib/config.inc'); /** module functions */ include_once('../../lib/modules.inc'); -/** XML functions */ -include_once('../../lib/xml_parser.inc'); // start session startSecureSession();