From 24d88ea7a46c78b76c6ed3c4374f29aa45925f78 Mon Sep 17 00:00:00 2001 From: Vitali Kari Date: Wed, 19 Aug 2015 17:04:11 +0200 Subject: [PATCH] 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
+
+ -';