diff options
author | Phil Davis <phil.davis@inf.org> | 2016-01-06 12:45:37 +0545 |
---|---|---|
committer | Phil Davis <phil.davis@inf.org> | 2016-01-06 12:45:37 +0545 |
commit | ccb7c7f2c5db00e6e46092c5d7ae0d702e6c36cf (patch) | |
tree | 8b1dd8cff0d00b1447c6d16c841e193fc2ad6281 /src/usr/local/www/status_logs_common.inc | |
parent | f225cb92509f15928d35d2815a558463cd0b34cf (diff) | |
download | pfsense-ccb7c7f2c5db00e6e46092c5d7ae0d702e6c36cf.zip pfsense-ccb7c7f2c5db00e6e46092c5d7ae0d702e6c36cf.tar.gz |
Status logs common changes for nginx
Diffstat (limited to 'src/usr/local/www/status_logs_common.inc')
-rw-r--r-- | src/usr/local/www/status_logs_common.inc | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/usr/local/www/status_logs_common.inc b/src/usr/local/www/status_logs_common.inc index 58a1db5..51c0646 100644 --- a/src/usr/local/www/status_logs_common.inc +++ b/src/usr/local/www/status_logs_common.inc @@ -528,7 +528,7 @@ function manage_log_code() { // Specific to System General (main) Log if ($logfile == 'system') { - $pconfig['loglighttpd'] = !isset($config['syslog']['nologlighttpd']); + $pconfig['lognginx'] = !isset($config['syslog']['nolognginx']); } // Specific to Firewall Log @@ -552,7 +552,7 @@ function manage_log_code() { // Specific to System General (main) Log if ($logfile == 'system') { - $loglighttpd = getGETPOSTsettingvalue('loglighttpd', null); + $lognginx = getGETPOSTsettingvalue('lognginx', null); } // Specific to Firewall Log @@ -608,11 +608,11 @@ function manage_log_code() { // Specific to System General (main) Log if ($logfile == 'system') { - $oldnologlighttpd = isset($config['syslog']['nologlighttpd']); - $config['syslog']['nologlighttpd'] = $loglighttpd ? false : true; + $oldnolognginx = isset($config['syslog']['nolognginx']); + $config['syslog']['nolognginx'] = $lognginx ? false : true; - if ($oldnologlighttpd !== $config['syslog']['nologlighttpd']) { - $logging_changed = $lighttpd_logging_changed = true; + if ($oldnolognginx !== $config['syslog']['nolognginx']) { + $logging_changed = $nginx_logging_changed = true; } } @@ -657,7 +657,7 @@ function manage_log_code() { // Specific to System General (main) Log if ($logfile == 'system') { - if ($lighttpd_logging_changed) { + if ($nginx_logging_changed) { ob_flush(); flush(); log_error(gettext("webConfigurator configuration has changed. Restarting webConfigurator.")); @@ -807,11 +807,11 @@ function manage_log_section() { // Specific to System General (main) Log if ($logfile == 'system') { $section->addInput(new Form_Checkbox( - 'loglighttpd', + 'lognginx', 'Web Server Log', 'Log errors from the web server process', - $pconfig['loglighttpd'] - ))->setHelp('If this is checked, errors from the lighttpd web server process for the GUI or Captive Portal will appear in the system log.'); + $pconfig['lognginx'] + ))->setHelp('If this is checked, errors from the nginx web server process for the GUI or Captive Portal will appear in the system log.'); } |