mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 16:04:35 +02:00
ability to disable inventory discovery and syslog display improvements
git-svn-id: http://www.observium.org/svn/observer/trunk@337 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -27,11 +27,11 @@
|
||||
<?php
|
||||
|
||||
if($_POST['string']) {
|
||||
$where = " AND S.msg LIKE '%".$_POST['string']."%'";
|
||||
$where = " AND msg LIKE '%".$_POST['string']."%'";
|
||||
}
|
||||
|
||||
if($_POST['program']) {
|
||||
$where .= " AND S.program = '".$_POST['program']."'";
|
||||
$where .= " AND program = '".$_POST['program']."'";
|
||||
}
|
||||
|
||||
$sql = "SELECT *, DATE_FORMAT(datetime, '%D %b %T') AS date from syslog WHERE device_id = '" . $_GET['id'] . "' $where";
|
||||
|
||||
Reference in New Issue
Block a user