Dear Sirs!
I've been using awstats for a time, with one of it's tools, called awstats_buildstaticpages.pl. Because the virtualmin plugin didn't contained it (or just I couldn't find it), I already copied from another server.
My only problem is, that I can't resolve, how can I add this feature for a domain, created with Virtualmin.
I've been looking through the code of virtualmin-awstats-lib.pl, and I've found some lines:
| Code: |
# generate_report(domain, handle, html-escape?)
# Updates the AWstats report for a particular domain, from all of its
# log files (or at least those that have changed since the last run)
sub generate_report
{
local ($dom, $fh, $esc) = @_;
local $user = &get_run_user($dom);
local $cmd = "$config{'awstats'} -config=$dom -update";
$ENV{'GATEWAY_INTERFACE'} = undef;
|
Can I add a piece of code somehow to manage to build static pages?
I don't want to make this script collapse, so I was afraid to modify it, please help me.
Best regards,
Peter