> I think it might be a good idea to load plugin configurations from the plugin 
> folder instead of the requirement to edit the main configuration. The main 
> configuration file will get crowdy soon if there will be hopefully lots of 
> plugins.
> 
> There was also a request in RoundCubeForum to do so by "corbosman" 
> (http://www.roundcubeforum.net/plug-ins/4699-change-password-hmailserver-5-1-a.html).

I think another way to do this is by creating an api function that loads
the config for the calling plugin. So in a plugin init function you'd
say:

$this->load_plugin_config(....); 

Or something similar. That way you dont need to loop over all plugin
configs, as some may not have any config. Saves a bunch of unnecessary
file stats.

My primary concern is that a year from now the main config file is
a mess with config lines of lots of plugins making it even harder to
maintain it into the future..see point below.

As a second issue, im wondering if it's an idea to allow for a 
local.inc.php or something similar that overrides main.inc and perhaps even
db.inc as well. That way you can just copy the distribution config files
to your main/db config files, without having to worry about changes you
made to them and additions being introduced in the distribution files.

Regards,

Cor
_______________________________________________
List info: http://lists.roundcube.net/dev/

Reply via email to