Revision 4705fa62
Added by sbeaver about 10 years ago
usr/local/www/diag_logs_settings.php | ||
---|---|---|
322 | 322 |
'Log firewall default blocks', |
323 | 323 |
'Log packets matched from the default block rules in the ruleset', |
324 | 324 |
$pconfig['logdefaultblock'] |
325 |
))->setHelp(gettext('Packets that are blocked by the implicit default block rule will not be logged if you uncheck this option. Per-rule logging options are still respected.'));
|
|
325 |
))->setHelp('Packets that are blocked by the implicit default block rule will not be logged if you uncheck this option. Per-rule logging options are still respected.');
|
|
326 | 326 |
|
327 | 327 |
$section->addInput(new Form_Checkbox( |
328 | 328 |
'logdefaultpass', |
329 | 329 |
null, |
330 | 330 |
'Log packets matched from the default pass rules put in the ruleset', |
331 | 331 |
$pconfig['logdefaultpass'] |
332 |
))->setHelp(gettext('Packets that are allowed by the implicit default pass rule will be logged if you check this option. Per-rule logging options are still respected. '));
|
|
332 |
))->setHelp('Packets that are allowed by the implicit default pass rule will be logged if you check this option. Per-rule logging options are still respected. ');
|
|
333 | 333 |
|
334 | 334 |
$section->addInput(new Form_Checkbox( |
335 | 335 |
'logbogons', |
... | ... | |
350 | 350 |
'Web Server Log', |
351 | 351 |
'Log errors from the web server process', |
352 | 352 |
$pconfig['loglighttpd'] |
353 |
))->setHelp(gettext('If this is checked, errors from the lighttpd web server process for the GUI or Captive Portal will appear in the main system log'));
|
|
353 |
))->setHelp('If this is checked, errors from the lighttpd web server process for the GUI or Captive Portal will appear in the main system log');
|
|
354 | 354 |
|
355 | 355 |
$section->addInput(new Form_Checkbox( |
356 | 356 |
'rawfilter', |
... | ... | |
374 | 374 |
$section->addInput(new Form_Checkbox( |
375 | 375 |
'disablelocallogging', |
376 | 376 |
'Local Logging', |
377 |
$g['platform'] == 'pfSense' ? gettext("Disable writing log files to the local disk") : gettext("Disable writing log files to the local RAM disk"),
|
|
377 |
$g['platform'] == 'pfSense' ? "Disable writing log files to the local disk" : "Disable writing log files to the local RAM disk",
|
|
378 | 378 |
$pconfig['disablelocallogging'] |
379 | 379 |
)); |
380 | 380 |
|
381 | 381 |
$resetlogsbtn = new Form_Button( |
382 |
'resetlogs',
|
|
383 |
'Reset Log Files'
|
|
382 |
'resetlogs',
|
|
383 |
'Reset Log Files'
|
|
384 | 384 |
); |
385 | 385 |
|
386 | 386 |
$resetlogsbtn->removeClass("btn-primary")->addClass("btn-danger btn-xs"); |
... | ... | |
390 | 390 |
$resetlogsbtn |
391 | 391 |
))->setHelp('Clears all local log files and reinitializes them as empty logs. This also restarts the DHCP daemon. Use the Save button first if you have made any setting changes.'); |
392 | 392 |
|
393 |
|
|
394 | 393 |
// Remote logging section ------------------------------------------------ |
395 | 394 |
$section2 = new Form_Section('Remote Logging Options'); |
396 | 395 |
|
... | ... | |
417 | 416 |
'IP Protocol', |
418 | 417 |
$ipproto, |
419 | 418 |
array('ipv4' => 'IPv4', 'ipv6' => 'IPv6') |
420 |
))->setHelp(gettext("This option is only used when a non-default address is chosen as the source above. This option only expresses a preference; If an IP address of the selected type is not found on the chosen interface, the other type will be tried."));
|
|
419 |
))->setHelp('This option is only used when a non-default address is chosen as the source above. This option only expresses a preference; If an IP address of the selected type is not found on the chosen interface, the other type will be tried.');
|
|
421 | 420 |
|
422 | 421 |
$section2->addInput(new Form_Checkbox( |
423 | 422 |
'enable', |
424 | 423 |
'Enable Remote Logging', |
425 | 424 |
'Send log messages to remote syslog server', |
426 | 425 |
$pconfig['enable'] |
427 |
)); |
|
426 |
))->toggles('.toggle-remote-servers'); |
|
427 |
|
|
428 |
// Group colapses/appears based on 'enable' checkbox above |
|
429 |
$group = new Form_Group('Remote log servers'); |
|
430 |
$group->addClass('toggle-remote-servers', 'collapse'); |
|
428 | 431 |
|
429 |
$section2->addInput(new Form_Input( |
|
432 |
if ($pconfig['enable']) |
|
433 |
$group->addClass('in'); |
|
434 |
|
|
435 |
$group->add(new Form_Input( |
|
430 | 436 |
'remoteserver', |
431 | 437 |
'Server 1', |
432 | 438 |
'text', |
... | ... | |
434 | 440 |
['placeholder' => 'IP[:port]'] |
435 | 441 |
)); |
436 | 442 |
|
437 |
$section2->addInput(new Form_Input(
|
|
443 |
$group->add(new Form_Input(
|
|
438 | 444 |
'remoteserver2', |
439 | 445 |
'Server 2', |
440 | 446 |
'text', |
... | ... | |
442 | 448 |
['placeholder' => 'IP[:port]'] |
443 | 449 |
)); |
444 | 450 |
|
445 |
$section2->addInput(new Form_Input(
|
|
451 |
$group->add(new Form_Input(
|
|
446 | 452 |
'remoteserver3', |
447 | 453 |
'Server 3', |
448 | 454 |
'text', |
449 | 455 |
$pconfig['remoteserver3'], |
450 | 456 |
['placeholder' => 'IP[:port]'] |
451 |
))->setHelp('IP addresses or IP:Port of remote syslog servers'); |
|
452 |
|
|
453 |
$section2->addInput(new Form_Checkbox( |
|
454 |
'logall', |
|
455 |
'Remote Syslog Contents', |
|
456 |
'Everything!', |
|
457 |
$pconfig['logall'] |
|
458 | 457 |
)); |
459 | 458 |
|
459 |
$section2->add($group); |
|
460 |
|
|
460 | 461 |
$section2->addInput(new Form_Checkbox( |
461 | 462 |
'system', |
462 | 463 |
'', |
... | ... | |
530 | 531 |
</script> |
531 | 532 |
|
532 | 533 |
<?php include("foot.inc"); ?> |
533 |
<script> |
|
534 |
//<![CDATA[ |
|
535 |
setRemoteServers(); |
|
536 |
|
|
537 |
$("#enable").click( function(){ |
|
538 |
setRemoteServers(); |
|
539 |
}); |
|
540 |
|
|
541 |
function setRemoteServers() { |
|
542 |
if(enable.checked == 1) { |
|
543 |
$("#remoteserver" ).prop('disabled', false); |
|
544 |
$("#remoteserver2").prop('disabled', false); |
|
545 |
$("#remoteserver3").prop('disabled', false); |
|
546 |
} else { |
|
547 |
$("#remoteserver" ).prop('disabled', true); |
|
548 |
$("#remoteserver2").prop('disabled', true); |
|
549 |
$("#remoteserver3").prop('disabled', true); |
|
550 |
} |
|
551 |
} |
|
552 |
//]]> |
|
553 |
</script> |
Also available in: Unified diff
Replaced js with toggles
Also eliminated unneeded gettext from help