diff --git a/html/pages/eventlog.inc.php b/html/pages/eventlog.inc.php index f4b6a92de..6c27830e8 100644 --- a/html/pages/eventlog.inc.php +++ b/html/pages/eventlog.inc.php @@ -1,13 +1,76 @@ = '10') { mysql_query("TRUNCATE TABLE `eventlog`"); } +$param = array(); + +if ($vars['action'] == "expunge" && $_SESSION['userlevel'] >= '10') +{ + mysql_query("TRUNCATE TABLE `eventlog`"); + print_message("Event log truncated"); +} + +$numresults = 250; + +print_optionbar_start(); + +if (is_numeric($vars['page'])) +{ + $start = $vars['page'] * $numresults; +} else +{ + $start = 0; +} + +$where = "1"; + +if (is_numeric($_POST['device'])) +{ + $where .= ' AND E.host = ?'; + $param[] = $_POST['device']; +} + +if ($_POST['string']) +{ + $where .= " AND E.message LIKE ?"; + $param[] = "%".$_POST['string']."%"; +} + +?> + +
+ Event log » + +