mirror of
https://github.com/webmin/webmin.git
synced 2026-02-07 07:52:13 +00:00
15 lines
274 B
Perl
Executable File
15 lines
274 B
Perl
Executable File
#!/usr/bin/perl
|
|
# download.cgi
|
|
# Just dump log file as text
|
|
|
|
require './itsecur-lib.pl';
|
|
&can_use_error("logs");
|
|
$log = $config{'log'} || &get_log_file();
|
|
print "Content-type: text/plain\n\n";
|
|
open(LOG, $log);
|
|
while(<LOG>) {
|
|
print $_ if (&is_log_line($_));
|
|
}
|
|
close(LOG);
|
|
|