Commit 07aaac43 authored by Franco Fichtner's avatar Franco Fichtner

xml: clean up the list tags and order them alphabetically

parent 343c0992
<?php <?php
/* $Id$ */
/*
xmlparse.inc
functions to parse/dump configuration files in XML format
part of m0n0wall (http://m0n0.ch/wall)
/*
Copyright (C) 2003-2004 Manuel Kasper <mk@neon1.net>. Copyright (C) 2003-2004 Manuel Kasper <mk@neon1.net>.
All rights reserved. All rights reserved.
...@@ -30,33 +26,34 @@ ...@@ -30,33 +26,34 @@
POSSIBILITY OF SUCH DAMAGE. POSSIBILITY OF SUCH DAMAGE.
*/ */
/* The following items will be treated as arrays in config.xml */ function listtags()
function listtags() { {
/* /* The following items will be treated as arrays in config.xml */
* Please keep this list alpha sorted and no longer than 80 characters
* I know it's a pain, but it's a pain to find stuff too if it's not
*/
$ret = array( $ret = array(
'acls', 'alias', 'aliasurl', 'allowedip', 'allowedhostname', 'authserver', 'acls', 'alias', 'aliases', 'aliasurl', 'allowedip', 'allowedhostname', 'authserver',
'bridged', 'build_port_path', 'bridged', 'build_port_path',
'ca', 'cacert', 'cert', 'crl', 'clone', 'config', 'container', 'columnitem', 'ca', 'cacert', 'cert', 'crl', 'clone', 'config', 'container', 'columnitem',
'depends_on_package', 'disk', 'dnsserver', 'dnsupdate', 'domainoverrides', 'dyndns', 'depends_on_package', 'disk', 'dnsserver', 'dnsupdate', 'domainoverrides', 'dyndns',
'element', 'encryption-algorithm-option', 'element', 'encryption-algorithm-option',
'field', 'fieldname', 'field', 'fieldname',
'gateway_item', 'gateway_group', 'gif', 'gre', 'group', 'gateway_item', 'gateway_group', 'gif', 'gre', 'group',
'hash-algorithm-option', 'hosts', 'member', 'ifgroupentry', 'igmpentry', 'interface_array', 'item', 'key', 'hash-algorithm-option', 'hosts',
'lagg', 'lbaction', 'lbpool', 'l7rules', 'lbprotocol', 'ifgroupentry', 'igmpentry', 'interface_array', 'item',
'member', 'menu', 'tab', 'mobilekey', 'monitor_type', 'mount', 'key',
'lagg', 'lbaction', 'lbpool', 'l7rules', 'lbprotocol',
'member', 'menu', 'mobilekey', 'monitor_type', 'mount',
'npt', 'ntpserver', 'npt', 'ntpserver',
'onetoone', 'openvpn-server', 'openvpn-client', 'openvpn-csc', 'option', 'onetoone', 'openvpn-server', 'openvpn-client', 'openvpn-csc', 'option',
'package', 'passthrumac', 'phase1', 'phase2', 'ppp', 'pppoe', 'priv', 'proxyarpnet', 'pool', 'package', 'passthrumac', 'phase1', 'phase2', 'ppp', 'pppoe', 'priv', 'proxyarpnet', 'pool', 'pages', 'pipe',
'qinqentry', 'queue', 'qinqentry', 'queue',
'pages', 'pipe', 'radnsserver', 'roll', 'route', 'row', 'rrddatafile', 'rule', 'radnsserver', 'roll', 'route', 'row', 'rrddatafile', 'rule',
'schedule', 'service', 'servernat', 'servers', 'schedule', 'service', 'servernat', 'servers', 'serversdisabled', 'staticmap', 'subqueue',
'serversdisabled', 'staticmap', 'subqueue', 'tab', 'timerange', 'tunnel',
'timerange', 'tunnel', 'user', 'vip', 'virtual_server', 'vlan', 'user',
'winsserver', 'wolentry', 'widget','wol','aliases' 'vip', 'virtual_server', 'vlan',
'winsserver', 'wolentry', 'widget', 'wol',
); );
return array_flip($ret); return array_flip($ret);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment