On 20.03.2004 11:18 +1000, Brett Maxfield wrote:
> Outstanding idea, by the way :P
> What about config.xml, maybe there should be a niche carved ?
> <plugin name="myplugin">
> I'd suggest the whole <plugins> element be optional..
Well look, if you write your modules in PHP, you can easily include
m0n0wall's config.inc that will parse the whole configuration into
the global variable $config (see the other .inc files for examples on
how to use it), which you can manipulate and then later dump to XML
again with write_config(). You can put your options anywhere you want
- for example, each module could just do something like
$config['modules']['mymodule'] = array();
and then store everything in there. As long as no two people pick the
same module name (highly unlikely), there will be no problems. And no
need for me to change any code.