log_execfile=Executed SQL commands from file $1
log_importupload=Imported data from uploaded file
log_importfile=Imported data from file $1
+log_set=Changed $1 MySQL variables
backup_title=Backup Database
backup_title2=Backup All Databases
return &text($p->{'mode'} ? 'log_importupload' : 'log_importfile',
"<tt>".&html_escape($p->{'file'})."</tt>");
}
+elsif ($action eq 'set') {
+ return &text('log_set', $object);
+ }
else {
return undef;
}
---- Changes since 1.380 ----
Re-designed the UI to use Webmin standard layout and functions.
Added a field for searching based on the contents of commands run or file changes made.
+When viewing the details of a logged action, an annotation can be entered to explain why it was done.
# Just saving an annotation
$in{'anno'} =~ s/\r//g;
&save_annotation($act, $in{'anno'});
- &redirect($ENV{'HTTP_REFERER'} || "view.cgi?id=$in{'id'}");
+ &redirect("view.cgi?id=$in{'id'}&search=".&urlize($in{'search'}));
}
$access{'rollback'} || &error($text{'rollback_ecannot'});
else {
# Show the user what will be done
print &ui_form_start("rollback.cgi");
- print &ui_hidden("id", $in{'id'}),"\n";
+ print &ui_hidden("id", $in{'id'});
+ print &ui_hidden("search", $in{'search'});
foreach $r (keys %r) {
print &ui_hidden("r", $r);
}
print &ui_form_end();
}
}
-&ui_print_footer("view.cgi?id=$in{'id'}", $text{'view_return'},
+&ui_print_footer("view.cgi?id=$in{'id'}&search=".&urlize($in{'search'}),
+ $text{'view_return'},
"", $text{'index_return'});
@files = &list_files($act);
print &ui_form_start("rollback.cgi");
print &ui_hidden("id", $in{'id'});
+print &ui_hidden("search", $in{'search'});
print &ui_hidden_table_start(&text('view_header', $act->{'id'}),
"width=100%", 4, "main", 1);
print &ui_form_end();
}
-&ui_print_footer("search.cgi?$in", $text{'search_return'},
+&ui_print_footer("search.cgi?$in{'search'}", $text{'search_return'},
"", $text{'index_return'});