From cb980a2f1a0147d5971da1a77303a00783e2ebed Mon Sep 17 00:00:00 2001 From: Colin Smith Date: Thu, 23 Jun 2005 03:11:28 +0000 Subject: * Move the old parse_xml_config() function to parse_xml_config_raw(). This function no longer sets its own listtags. * Add parse_xml_config() and parse_xml_config_pkg(), which both set the listtags to their proper values before parsing. --- etc/inc/xmlparse.inc | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'etc/inc') diff --git a/etc/inc/xmlparse.inc b/etc/inc/xmlparse.inc index b5612aa..19ae064 100644 --- a/etc/inc/xmlparse.inc +++ b/etc/inc/xmlparse.inc @@ -116,6 +116,21 @@ function cData($parser, $data) { } function parse_xml_config($cffile, $rootobj) { + global $listtags; + $listtags = explode(" ", "row config package columnitem option item fieldname field rule user key subqueue " . + "dnsserver winsserver encryption-algorithm-option hash-algorithm-option hosts tunnel " . + "onetoone staticmap route alias pipe queue shellcmd earlyshellcmd mobilekey " . + "service servernat proxyarpnet passthrumac allowedip wolentry vlan menu domainoverrides"); + return parse_xml_config_raw($cffile, $rootobj); +} + +function parse_xml_config_pkg($cffile, $rootobj) { + global $listtags; + $listtags = array("onetoone", "queue", "rule", "servernat", "alias", "additional_files_needed", "tab", "template", "menu", "rowhelperfield", "service", "step", "package", "columnitem", "option", "item", "field", "package"); + return parse_xml_config_raw($cffile, $rootobj); +} + +function parse_xml_config_raw($cffile, $rootobj) { global $depth, $curpath, $parsedcfg, $havedata, $listtags; -- cgit v1.1