From faeb5e49849fe2f202ecf224a5eb171934703010 Mon Sep 17 00:00:00 2001 From: Neil Lathwood Date: Wed, 28 Sep 2016 20:15:57 +0100 Subject: [PATCH] webui: Individual devices now use bootgrid syslog (#4584) --- html/pages/device/logs.inc.php | 3 ++ html/pages/device/logs/syslog.inc.php | 61 --------------------------- html/pages/syslog.inc.php | 29 ++++++++----- 3 files changed, 21 insertions(+), 72 deletions(-) delete mode 100644 html/pages/device/logs/syslog.inc.php diff --git a/html/pages/device/logs.inc.php b/html/pages/device/logs.inc.php index 81fea25a14..c9bf6bc51a 100644 --- a/html/pages/device/logs.inc.php +++ b/html/pages/device/logs.inc.php @@ -43,6 +43,9 @@ if (isset($config['graylog']['server']) && isset($config['graylog']['port'])) { switch ($vars['section']) { case 'syslog': + print_optionbar_end(); + include 'pages/syslog.inc.php'; + break; case 'eventlog': case 'graylog': include 'pages/device/logs/'.$vars['section'].'.inc.php'; diff --git a/html/pages/device/logs/syslog.inc.php b/html/pages/device/logs/syslog.inc.php deleted file mode 100644 index 0d1d748df4..0000000000 --- a/html/pages/device/logs/syslog.inc.php +++ /dev/null @@ -1,61 +0,0 @@ - -
- -
-
-
- -
-
- -
-
- -
-
-
- - -
- Syslog entries -
- '; -foreach (dbFetchRows($sql, $param) as $entry) { - unset($syslog_output); - include 'includes/print-syslog.inc.php'; - echo $syslog_output; -} - -echo '
- '; -$pagetitle[] = 'Syslog'; diff --git a/html/pages/syslog.inc.php b/html/pages/syslog.inc.php index a2118a28c9..7870a369c2 100644 --- a/html/pages/syslog.inc.php +++ b/html/pages/syslog.inc.php @@ -22,22 +22,29 @@ print_optionbar_start();
+ + '; + } + ?>