From 32bb6035abcb4e6ae5a391a4bc811b66b628beb7 Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Sat, 4 Apr 2015 09:06:35 +0200 Subject: [PATCH] logs: pretty up captive portal logs --- src/www/diag_logs.php | 25 ++++++++++++++++--------- src/www/diag_logs_auth.php | 22 +++++++++++++++------- 2 files changed, 31 insertions(+), 16 deletions(-) diff --git a/src/www/diag_logs.php b/src/www/diag_logs.php index 14182e988..e09c4ea4e 100755 --- a/src/www/diag_logs.php +++ b/src/www/diag_logs.php @@ -1,4 +1,5 @@
diff --git a/src/www/diag_logs_auth.php b/src/www/diag_logs_auth.php index 6d4b51ec1..db5d250a3 100644 --- a/src/www/diag_logs_auth.php +++ b/src/www/diag_logs_auth.php @@ -1,4 +1,5 @@ . @@ -28,14 +29,16 @@ require_once("guiconfig.inc"); -$portal_logfile = "{$g['varlog_path']}/portalauth.log"; +$portal_logfile = '/var/log/portalauth.log'; $nentries = $config['syslog']['nentries']; -if (!$nentries) +if (!$nentries) { $nentries = 50; +} -if ($_POST['clear']) +if ($_POST['clear']) { clear_log_file($portal_logfile); +} $pgtitle = array(gettext("Status"),gettext("System logs"),gettext("Portal Auth")); $shortcut_section = "captiveportal"; @@ -60,11 +63,16 @@ include("head.inc");
+
+ +
+
+ + +
+
+
- -

-
  
-
" />