mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 17:14:46 +00:00
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:
parent
4196622d53
commit
7669c6c56e
@ -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>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user