MINI SHELL

Server : Apache/2.2.2 (Fedora)
System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686
User : apache ( 48)
PHP Version : 5.2.9
Disable Function : NONE
Directory :  /usr/libexec/webmin/webmin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/libexec/webmin/webmin/syslog_logs.pl
# Contains a function to supply the syslog module with extra logs

do 'webmin-lib.pl';

# syslog_getlogs()
# Returns the Webmin error log
sub syslog_getlogs
{
local %miniserv;
&get_miniserv_config(\%miniserv);
if ($miniserv{'errorlog'} eq '-') {
	# Logging to stdout
	return ( );
	}
elsif ($miniserv{'errorlog'}) {
	# Specific file
	return ( { 'file' => $miniserv{'errorlog'},
		   'desc' => $text{'syslog_errorlog'},
		   'active' => 1, } );
	}
elsif ($miniserv{'logfile'} =~ /^(.*)\/[^\/]+$/) {
	# Relative to main log
	return ( { 'file' => "$1/miniserv.error",
		   'desc' => $text{'syslog_errorlog'},
		   'active' => 1, } );
	}
}


Anon7 - 2021