From 89867f9076248e665dd52a9cf43eddf486802910 Mon Sep 17 00:00:00 2001 From: Adam Amstrong Date: Sun, 14 Feb 2010 01:36:48 +0000 Subject: [PATCH] [ not ( ! git-svn-id: http://www.observium.org/svn/observer/trunk@837 61d68cd4-352d-0410-923a-c4978735b2b8 --- html/pages/eventlog.php | 2 +- html/pages/syslog.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/html/pages/eventlog.php b/html/pages/eventlog.php index 4138bfa4d..7ec3a9cc7 100644 --- a/html/pages/eventlog.php +++ b/html/pages/eventlog.php @@ -1,6 +1,6 @@ = '10') { mysql_query("TRUNCATE TABLE `eventlog`"); } +if($_GET['opta'] == "expunge" && $_SESSION['userlevel'] >= '10') { mysql_query("TRUNCATE TABLE `eventlog`"); } if($_SESSION['userlevel'] >= '5') { $query = "SELECT *,DATE_FORMAT(datetime, '%D %b %Y %T') as humandate FROM `eventlog` ORDER BY `datetime` DESC LIMIT 0,250"; diff --git a/html/pages/syslog.php b/html/pages/syslog.php index 35b011660..c68aece9c 100644 --- a/html/pages/syslog.php +++ b/html/pages/syslog.php @@ -1,6 +1,6 @@ -= '10') { mysql_query("TRUNCATE TABLE `syslog`"); } ?> += '10') { mysql_query("TRUNCATE TABLE `syslog`"); } ?>