summaryrefslogtreecommitdiffstats
path: root/usr/local/www/diag_logs_auth.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-03-11 02:26:53 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-03-11 02:26:53 +0000
commit74772f9f789c662db87c2edb4fda4a57e38ec625 (patch)
tree270bbe1691aaae91b1aa0734a11707474d782b29 /usr/local/www/diag_logs_auth.php
parent8e21cbb8b243f865f0710dae230141a73139a92b (diff)
downloadpfsense-74772f9f789c662db87c2edb4fda4a57e38ec625.zip
pfsense-74772f9f789c662db87c2edb4fda4a57e38ec625.tar.gz
Allow clogging feature to be disabled.
Diffstat (limited to 'usr/local/www/diag_logs_auth.php')
-rwxr-xr-xusr/local/www/diag_logs_auth.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/usr/local/www/diag_logs_auth.php b/usr/local/www/diag_logs_auth.php
index 9025759..c7e5e69 100755
--- a/usr/local/www/diag_logs_auth.php
+++ b/usr/local/www/diag_logs_auth.php
@@ -38,7 +38,12 @@ if (!$nentries)
$nentries = 50;
if ($_POST['clear']) {
- exec("/usr/sbin/clog -i -s 262144 {$portal_logfile}");
+ if(isset($config['system']['disablesyslogclog'])) {
+ unlink($portal_logfile);
+ touch($portal_logfile);
+ } else {
+ exec("/usr/sbin/clog -i -s 262144 {$portal_logfile}");
+ }
}
$pgtitle = array("Status","System logs","Portal Auth");
OpenPOWER on IntegriCloud