summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorColin Smith <colin@pfsense.org>2005-06-23 03:11:28 +0000
committerColin Smith <colin@pfsense.org>2005-06-23 03:11:28 +0000
commitcb980a2f1a0147d5971da1a77303a00783e2ebed (patch)
tree250bf8fd6d799502b68f7f00a892ba8b465c92f7
parent539cf2d675b9510cfff01378aefbec40afe81bd3 (diff)
downloadpfsense-cb980a2f1a0147d5971da1a77303a00783e2ebed.zip
pfsense-cb980a2f1a0147d5971da1a77303a00783e2ebed.tar.gz
* 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.
-rw-r--r--etc/inc/xmlparse.inc15
1 files changed, 15 insertions, 0 deletions
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;
OpenPOWER on IntegriCloud