logging / reverse setting not used anymore in core, lets drop it now. for https://github.com/opnsense/core/issues/4068

There might be a couple of plugins still using the old log viewer, but since the default setting is usually left intact, it should be safe to remove it now.
This commit is contained in:
Ad Schellevis 2020-05-10 00:57:18 +02:00
parent 4196622d53
commit 7669c6c56e

View File

@ -58,7 +58,6 @@ function is_valid_syslog_server($target) {
if ($_SERVER['REQUEST_METHOD'] === 'GET') {
$pconfig = array();
$pconfig['reverse'] = isset($config['syslog']['reverse']);
$pconfig['disable_clog'] = isset($config['syslog']['disable_clog']);
$pconfig['logfilesize'] = !empty($config['syslog']['logfilesize']) ? $config['syslog']['logfilesize'] : null;
$pconfig['preservelogs'] = !empty($config['syslog']['preservelogs']) ? $config['syslog']['preservelogs'] : null;
@ -90,7 +89,6 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
}
if (count($input_errors) == 0) {
$config['syslog']['reverse'] = !empty($pconfig['reverse']);
$config['syslog']['disable_clog'] = !empty($pconfig['disable_clog']);
if (isset($_POST['logfilesize']) && (strlen($pconfig['logfilesize']) > 0)) {
$config['syslog']['logfilesize'] = (int)$pconfig['logfilesize'];
@ -208,15 +206,6 @@ $(document).ready(function() {
<i class="fa fa-toggle-off text-danger" style="cursor: pointer;" id="show_all_help_page"></i>
</td>
</tr>
<tr>
<td><a id="help_for_reverse" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext('Reverse Display') ?></td>
<td>
<input name="reverse" type="checkbox" id="reverse" value="yes" <?=!empty($pconfig['reverse']) ? "checked=\"checked\"" : ""; ?> />
<div class="hidden" data-for="help_for_reverse">
<?=gettext("Show log entries in reverse order (newest entries on top)");?>
</div>
</td>
</tr>
<tr>
<td><a id="help_for_circular_logs" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("Disable circular logs");?></td>
<td>