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:
Adam Amstrong
2009-01-09 15:00:17 +00:00
parent 15cf3a1778
commit 1ce89de53b
4 changed files with 12 additions and 7 deletions
+2 -2
View File
@@ -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";