mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-27 00:25:06 +02:00
added emergency "kill all entries" syslog/eventlog for level 10+ users
git-svn-id: http://www.observium.org/svn/observer/trunk@836 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
<?php
|
||||
|
||||
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";
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user