From: eldy <>
Date: Tue, 17 Feb 2004 20:55:32 +0000 (+0000)
Subject: webmin module:
X-Git-Tag: AWSTATS_6_1_BETA~111
X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d7fdbb045cd515d17fc0c30d453ba4c8cd692bc9;p=thirdparty%2FAWStats.git
webmin module:
Translation was in french for some texts, whatever was choosed language.
Added a warning to explain to add '/private/etc' to webmin ACL for MacOS users.
A first screen for the schedule update feature.
Better description for ACL page.
---
diff --git a/tools/webmin/awstats/acl_security.pl b/tools/webmin/awstats/acl_security.pl
index 7520c737..07e3562a 100644
--- a/tools/webmin/awstats/acl_security.pl
+++ b/tools/webmin/awstats/acl_security.pl
@@ -5,32 +5,32 @@ do 'awstats-lib.pl';
# Output HTML for editing security options for the awstats module
sub acl_security_form
{
-print "
\n";
}
# acl_security_save(&options)
@@ -53,7 +53,6 @@ $_[0]->{'global'} = $in{'global'};
$_[0]->{'add'} = $in{'add'};
$_[0]->{'update'} = $in{'update'};
$_[0]->{'dir'} = $in{'dir'};
-$_[0]->{'user'} = $in{'user_def'} == 2 ? "*" :
- $in{'user_def'} == 1 ? "" : $in{'user'};
+$_[0]->{'user'} = $in{'user_def'} == 2 ? "*" : $in{'user_def'} == 1 ? "" : $in{'user'};
}
diff --git a/tools/webmin/awstats/awstats-webmin_changelog.txt b/tools/webmin/awstats/awstats-webmin_changelog.txt
index 90ead4e7..985817d5 100644
--- a/tools/webmin/awstats/awstats-webmin_changelog.txt
+++ b/tools/webmin/awstats/awstats-webmin_changelog.txt
@@ -2,6 +2,18 @@ AWStats-Webmin module Changelog
-------------------------------
$Revision$ - $Author$ - $Date$
+1.300
+
+Fixes:
+- Translation was in french for some texts, whatever was choosed language.
+
+New features/improvements:
+- Added a warning to explain to add '/private/etc' to webmin ACL for
+ MacOS users.
+- A first screen for the schedule update feature.
+- Better description for ACL page.
+
+
1.210
diff --git a/tools/webmin/awstats/edit_config.cgi b/tools/webmin/awstats/edit_config.cgi
index 8a2d4d98..c1600d3a 100644
--- a/tools/webmin/awstats/edit_config.cgi
+++ b/tools/webmin/awstats/edit_config.cgi
@@ -74,6 +74,11 @@ function neww(id) {
EOF
+if (-d "/private/etc" && ! &can_edit_config("/private/etc")) { # For MacOS users
+ print "Warning: It seems that you are a MacOS user. With MacOS, the '/etc/awstats' directory is not a hard directory but a link to '/private/etc/awstats' which is not by default an allowed directory to store config files, so if you want to store config files in '/etc/awstats', you must first change the Webmin ACL for AWStats module to add '/private/etc' in the allowed directories list: \n";
+ print &text('index_changeallowed',"Webmin - Webmin Users", $text{'index_title'})." \n";
+}
+
print "