From 67bbf15ed31e3d4dded763e738598dc6c59be913 Mon Sep 17 00:00:00 2001 From: Vitali Kari Date: Tue, 18 Aug 2015 18:52:57 +0200 Subject: [PATCH 1/6] Update syslog.inc.php --- html/includes/common/syslog.inc.php | 51 ++++++++++++++--------------- 1 file changed, 25 insertions(+), 26 deletions(-) diff --git a/html/includes/common/syslog.inc.php b/html/includes/common/syslog.inc.php index d77936133..e610ebfc7 100644 --- a/html/includes/common/syslog.inc.php +++ b/html/includes/common/syslog.inc.php @@ -1,28 +1,27 @@ -
-
-
-
- Syslog entries -
- '; - -foreach (dbFetchRows($sql) as $entry) { - $entry = array_merge($entry, device_by_id_cache($entry['device_id'])); - include 'includes/print-syslog.inc.php'; -} - -$syslog_output .= ' -
-
-
-
- +$common_output[] = ' + + + + + + + + + +
DatetimeHostnameProgramMessage
+ '; - -$common_output[] = $syslog_output; From 2a08827ebb43176c1bc1cc261c1563800e9634bb Mon Sep 17 00:00:00 2001 From: Vitali Kari Date: Tue, 18 Aug 2015 19:03:59 +0200 Subject: [PATCH 2/6] Update syslog.inc.php --- html/includes/common/syslog.inc.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/html/includes/common/syslog.inc.php b/html/includes/common/syslog.inc.php index e610ebfc7..7d3121e06 100644 --- a/html/includes/common/syslog.inc.php +++ b/html/includes/common/syslog.inc.php @@ -3,10 +3,10 @@ $common_output[] = ' - - + + - +
DatetimeHostnameDatetimeHostname ProgramMessageMessage
From 24d88ea7a46c78b76c6ed3c4374f29aa45925f78 Mon Sep 17 00:00:00 2001 From: Vitali Kari Date: Wed, 19 Aug 2015 17:04:11 +0200 Subject: [PATCH 3/6] Update syslog.inc.php --- html/includes/common/syslog.inc.php | 87 +++++++++++++++++++++++++++-- 1 file changed, 81 insertions(+), 6 deletions(-) diff --git a/html/includes/common/syslog.inc.php b/html/includes/common/syslog.inc.php index 7d3121e06..4e75fd38c 100644 --- a/html/includes/common/syslog.inc.php +++ b/html/includes/common/syslog.inc.php @@ -1,6 +1,15 @@ +$no_refresh = true; +$param = array(); +if ($vars['action'] == 'expunge' && $_SESSION['userlevel'] >= '10') { + dbQuery('TRUNCATE TABLE `syslog`'); + print_message('syslog truncated'); +} +$pagetitle[] = 'Syslog'; +?> + +
+ @@ -10,18 +19,84 @@ $common_output[] = '
Datetime
+
+ -'; From 178024e61fdeffb11ba9f35593720260132e2598 Mon Sep 17 00:00:00 2001 From: vitalisator Date: Wed, 19 Aug 2015 18:03:43 +0200 Subject: [PATCH 4/6] - --- html/includes/common/syslog.inc.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/html/includes/common/syslog.inc.php b/html/includes/common/syslog.inc.php index 4e75fd38c..bd708c175 100644 --- a/html/includes/common/syslog.inc.php +++ b/html/includes/common/syslog.inc.php @@ -1,10 +1,14 @@ = '10') { dbQuery('TRUNCATE TABLE `syslog`'); print_message('syslog truncated'); } + $pagetitle[] = 'Syslog'; ?> @@ -22,6 +26,7 @@ $pagetitle[] = 'Syslog'; +'; +$common_output[] = $syslog_output; From ff565608d23b1b0eb7ec2109141b0dd190308da4 Mon Sep 17 00:00:00 2001 From: vitalisator Date: Fri, 21 Aug 2015 18:04:12 +0200 Subject: [PATCH 6/6] working one --- html/includes/common/syslog.inc.php | 85 +---------------------------- 1 file changed, 2 insertions(+), 83 deletions(-) diff --git a/html/includes/common/syslog.inc.php b/html/includes/common/syslog.inc.php index e5e492edc..eb61936a5 100644 --- a/html/includes/common/syslog.inc.php +++ b/html/includes/common/syslog.inc.php @@ -1,16 +1,6 @@ = '10') { - dbQuery('TRUNCATE TABLE `syslog`'); - print_message('syslog truncated'); -} - -$pagetitle[] = 'Syslog'; -$syslog_output = ' -
+$common_output[] = ' @@ -21,91 +11,20 @@ $syslog_output = '
-
'; -$common_output[] = $syslog_output;