HEX
Server: Apache/2.4.18 (Ubuntu)
System: Linux phubuntu06.apexhosting.com 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64
User: master06 (1000)
PHP: 7.0.33-0ubuntu0.16.04.16
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
Upload Files
File: //usr/share/webmin/mysql/syslog_logs.pl
# Contains a function to supply the syslog module with extra logs

do 'mysql-lib.pl';

# syslog_getlogs()
# Returns a list of structures containing extra log files known to this module
sub syslog_getlogs
{
local $conf = &get_mysql_config();
local ($sect) = grep { $_->{'name'} eq 'mysqld_safe' ||
		       $_->{'name'} eq 'safe_mysqld' } @$conf;
local @rv;
if ($sect) {
	local $log = &find_value("err-log", $sect->{'members'});
	if ($log) {
		push(@rv, { 'file' => $log,
			    'desc' => $text{'syslog_desc'},
			    'active' => 1,
			  } );
		}
	local $log = &find_value("log", $sect->{'members'});
	if ($log) {
		push(@rv, { 'file' => $log,
			    'desc' => $text{'syslog_logdesc'},
			    'active' => 1,
			  } );
		}
	}
return @rv;
}