[php-apt-parser-maint] Config stuff for the cgi

Daniel Leidert daniel.leidert.spam at gmx.net
Mon Jul 31 12:22:51 UTC 2006


Am Sonntag, den 02.07.2006, 18:04 -0300 schrieb Damián Viano:
> The commits probably speak for themself, but anyway.
> 
> I've added a config.ini that the packages.cgi parses so we don't have to
> touch packages.cgi anymore for configuration. Also this cleaned the .cgi
> code a lot.
> 
> The only thing left to posibly customize in the .cgi are the texts,
> since style is already separated in the css. This is not minor, and the
> only solution I see is to use some kind of templating, which I think is
> a little too much. I would like to hear opinions on this.

If someone wants a really custom output, the PHP function(s) is the
right thing, to get such a custom output. But the CGI-script could
output some custom text (e.g. how to use the repository or ...), like
e.g. cvsweb does. So if it makes sense, to add a some text, we should
make this text customizable. I will have a look at the current result in
a few days. ATM I'm too busy.

> Another way I see to acomplish all this is to modify the .inc to recive
> the config file and do the parsing there. This could be intresting since
> the config would be the same independent of being using cgi or mod_php.

Will this affect the flexibility of the PHP functions?

Regards, Daniel




More information about the php-apt-parser-maint mailing list