On 11/8/2010 7:54 AM, Ozan UÇAR wrote:
> I'm working on adding DansGuardian configuration in config.xml. In
> order to achieve this, I need to be able to write some arrays I put
> into $config to config.xml. I.e.
> extensions => array('banned'=>array(), 'excluded'=>array()) etc.
>
[snip]
> 
> I have been searching pfsense's .inc and .php files, but i haven't
> been able to pinpoint where it is done. Could you point me in the
> right direction?

Check out the "listtags" definition in the XML parser code. Anything in
the listtags will be treated as an array.

Most package opt instead for storing items like that in a single
imploded entry (e.g. IP addresses separated by , or ;) and then
implode() on save and explode() when reading.

Jim

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Commercial support available - https://portal.pfsense.org

Reply via email to