%access = &get_module_acl();
$config{'perpage'} ||= 20;
$config{'column_count'} ||= 4;
-$gconfig{'logfiles'} = 0; # file change logging never needs to be done
-$gconfig{'logfullfiles'} = 0;
+$no_log_file_changes = 1; # Turn off file change logging for this module
# Always detect the mail system if not set
if ($config{'mail_system'} == 3) {
sub copydata
{
my ($in, $out) = @_;
+$in = &callers_package($in);
+$out = &callers_package($out);
my $buf;
while(read($in, $buf, 1024) > 0) {
(print $out $buf) || return 0;
$main::locked_file_list{$realfile} = int($_[1]);
push(@main::temporary_files, "$realfile.lock");
if (($gconfig{'logfiles'} || $gconfig{'logfullfiles'}) &&
+ !&get_module_variable('$no_log_file_changes') &&
!$_[1]) {
# Grab a copy of this file for later diffing
my $lnk;
chmod(0600, $webmin_logfile);
}
-if ($gconfig{'logfiles'}) {
+if ($gconfig{'logfiles'} && !&get_module_variable('$no_log_file_changes')) {
# Find and record the changes made to any locked files, or commands run
my $i = 0;
mkdir("$ENV{'WEBMIN_VAR'}/diffs", 0700);
=cut
sub additional_log
{
-if ($gconfig{'logfiles'}) {
+if ($gconfig{'logfiles'} && !&get_module_variable('$no_log_file_changes')) {
push(@main::locked_file_diff,
{ 'type' => $_[0], 'object' => $_[1], 'data' => $_[2],
'input' => $_[3] } );