From: eldy <> Date: Mon, 24 May 2010 17:37:44 +0000 (+0000) Subject: Fix: Works with new version of webmin X-Git-Tag: AWSTATS_7_0_BETA2~39 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=17cbc37f1b25e5d42dcd28fe7ff7632148ffd110;p=thirdparty%2FAWStats.git Fix: Works with new version of webmin --- diff --git a/docs/awstats_changelog.txt b/docs/awstats_changelog.txt index bc2c7163..3fe4862f 100644 --- a/docs/awstats_changelog.txt +++ b/docs/awstats_changelog.txt @@ -21,6 +21,10 @@ New features/improvements: Thanks to Chris Larsen (author of most thoses changes). +Fixes: +- Webmin module works with new version of webmin. +- Security fix. + ***** 6.95 ***** diff --git a/tools/webmin/awstats/awstats-lib.pl b/tools/webmin/awstats/awstats-lib.pl index d7469442..182c9b64 100644 --- a/tools/webmin/awstats/awstats-lib.pl +++ b/tools/webmin/awstats/awstats-lib.pl @@ -1,8 +1,8 @@ # awstats-lib.pl # Common functions for editing the awstats config file -do '../web-lib.pl'; -require '../javascript-lib.pl'; +BEGIN { push(@INC, ".."); }; +use WebminCore; &init_config(); #$config{'awstats'}||='/usr/local/awstats/wwwroot/cgi-bin/awstats.pl'; diff --git a/tools/webmin/awstats/module.info b/tools/webmin/awstats/module.info index 370f338b..6b5b89b2 100644 --- a/tools/webmin/awstats/module.info +++ b/tools/webmin/awstats/module.info @@ -2,8 +2,8 @@ category=system desc=AWStats Logfile Analyzer longdesc=Generate and analyze graphicaly statistics from web, proxy, wap, ftp or mail server log files name=AWStats -version=1.800 -depends=webmin 1.030 +version=1.900 +depends=webmin 1.510 depends=cron 1.000 depends=logrotate 1.131 desc_fr=Analyseur de Logs AWStats