From b79fa46fc7b32176ce7f925b31b6bd62e51b07d2 Mon Sep 17 00:00:00 2001 From: Bill Marquette Date: Sun, 8 Feb 2009 23:00:41 -0600 Subject: 6th field is category, let's log and render it correctly --- config/imspector/services_imspector_logs.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'config/imspector') diff --git a/config/imspector/services_imspector_logs.php b/config/imspector/services_imspector_logs.php index 616d3dfc..09ba870e 100644 --- a/config/imspector/services_imspector_logs.php +++ b/config/imspector/services_imspector_logs.php @@ -102,13 +102,14 @@ if ($_POST['mode'] == "render") { $line = fgets($fd); if(feof($fd)) continue; - preg_match('/([^,]*),([^,]*),([^,]*),([^,]*),([^,]*),(.*)/', $line, $matches); + preg_match('/([^,]*),([^,]*),([^,]*),([^,]*),([^,]*),(|.*),(.*)/', $line, $matches); $address = $matches[1]; $timestamp = $matches[2]; $direction = $matches[3]; $type = $matches[4]; $filtered = $matches[5]; - $data = $matches[6]; + $category = $matches[6]; + $data = $matches[7]; if($direction == '0') { $bgcolor = $convo_remote_bgcolor; @@ -123,6 +124,7 @@ if ($_POST['mode'] == "render") { print("[$time]\n $user\n + $category\n $data\n"); } print("\n"); -- cgit v1.2.3