summaryrefslogtreecommitdiffstats
path: root/usr/local/www/diag_logs_settings.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-07-06 21:31:35 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-07-06 21:31:35 +0000
commite1c0c35af45f0c147627b29d5070177a9ae60474 (patch)
tree778d9f67149d98d308b00da94c277648b5092053 /usr/local/www/diag_logs_settings.php
parentd19cc554a530ea8301ee45cc9b8584fe4e1601c4 (diff)
downloadpfsense-e1c0c35af45f0c147627b29d5070177a9ae60474.zip
pfsense-e1c0c35af45f0c147627b29d5070177a9ae60474.tar.gz
Allow disabling of the local writing of log files.
Patch-submitted-by: Mosibi Minor-changes-by: me
Diffstat (limited to 'usr/local/www/diag_logs_settings.php')
-rwxr-xr-xusr/local/www/diag_logs_settings.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/usr/local/www/diag_logs_settings.php b/usr/local/www/diag_logs_settings.php
index e1ab1d4..bce8202 100755
--- a/usr/local/www/diag_logs_settings.php
+++ b/usr/local/www/diag_logs_settings.php
@@ -71,6 +71,7 @@ if ($_POST) {
$config['syslog']['portalauth'] = $_POST['portalauth'] ? true : false;
$config['syslog']['vpn'] = $_POST['vpn'] ? true : false;
$config['syslog']['system'] = $_POST['system'] ? true : false;
+ $config['syslog']['disablelocallogging'] = $_POST['disablelocallogging'] ? true : false;
$config['syslog']['enable'] = $_POST['enable'] ? true : false;
$oldnologdefaultblock = isset($config['syslog']['nologdefaultblock']);
$config['syslog']['nologdefaultblock'] = $_POST['logdefaultblock'] ? false : true;
@@ -174,6 +175,11 @@ function enable_change(enable_over) {
<strong>Enable syslog'ing to remote syslog server</strong></td>
</tr>
<tr>
+ <td width="22%" valign="top" class="vtable">&nbsp;</td>
+ <td width="78%" class="vtable"> <input name="disable" type="checkbox" id="disablelocallogging" value="yes" <?php if ($pconfig['disablelocallogging']) echo "checked"; ?> onClick="enable_change(false)">
+ <strong>Disable writing log files to the local disk</strong></td>
+ </tr>
+ <tr>
<td width="22%" valign="top" class="vncell">Remote syslog
server</td>
<td width="78%" class="vtable"> <input name="remoteserver" id="remoteserver" type="text" class="formfld" size="20" value="<?=htmlspecialchars($pconfig['remoteserver']);?>">
OpenPOWER on IntegriCloud