I am working on a php statistics system called FireStats and I would like to use it to monitor trac usage.
I require a plugin that will allow me to excute a commnad line program for every displayed page.
that alone would be a great start, but it will be even better if it will include some sort of macro support:
the command line to execute (which should of course come from the configuration file) may contain special constants which will be replaced by run time parameters, for example:
%REMOTE_ADDR = the ip address of the remote user
%REFERER = the referer of the current user
%USER_AGENT = the user agent of the user
%REQUEST_URI = the requested page uri
and so on, as required by users.
those will be used like this:
[prog_exec]
cmd=php -r "echo %REMOTE_ADDR;"
the plugin will replace %REMOTE_ADDR with the ip of the current user.
etc.