Commit dad9cf96 authored by Ad Schellevis's avatar Ad Schellevis

style

parent adfeac41
...@@ -67,7 +67,6 @@ function is_valid_syslog_server($target) { ...@@ -67,7 +67,6 @@ function is_valid_syslog_server($target) {
|| is_hostnamewithport($target)); || is_hostnamewithport($target));
} }
if ($_SERVER['REQUEST_METHOD'] === 'GET') { if ($_SERVER['REQUEST_METHOD'] === 'GET') {
$pconfig = array(); $pconfig = array();
$pconfig['rrdenable'] = isset($config['rrd']['enable']); $pconfig['rrdenable'] = isset($config['rrd']['enable']);
...@@ -96,7 +95,6 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { ...@@ -96,7 +95,6 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
$pconfig['filterdescriptions'] = $config['syslog']['filterdescriptions']; $pconfig['filterdescriptions'] = $config['syslog']['filterdescriptions'];
$pconfig['disablelocallogging'] = isset($config['syslog']['disablelocallogging']); $pconfig['disablelocallogging'] = isset($config['syslog']['disablelocallogging']);
$pconfig['logfilesize'] = !empty($config['syslog']['logfilesize']) ? $config['syslog']['logfilesize'] : null; $pconfig['logfilesize'] = !empty($config['syslog']['logfilesize']) ? $config['syslog']['logfilesize'] : null;
} elseif ($_SERVER['REQUEST_METHOD'] === 'POST') { } elseif ($_SERVER['REQUEST_METHOD'] === 'POST') {
if (!empty($_POST['action']) && $_POST['action'] == "resetlogs") { if (!empty($_POST['action']) && $_POST['action'] == "resetlogs") {
clear_all_log_files(); clear_all_log_files();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment