diff options
Diffstat (limited to 'packages/imspector/services_imspector_logs.php')
-rw-r--r-- | packages/imspector/services_imspector_logs.php | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/packages/imspector/services_imspector_logs.php b/packages/imspector/services_imspector_logs.php index 85df991e..616d3dfc 100644 --- a/packages/imspector/services_imspector_logs.php +++ b/packages/imspector/services_imspector_logs.php @@ -102,17 +102,19 @@ 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]; - $type = $matches[3]; - $data = $matches[4]; + $direction = $matches[3]; + $type = $matches[4]; + $filtered = $matches[5]; + $data = $matches[6]; - if($type == '1') { + if($direction == '0') { $bgcolor = $convo_remote_bgcolor; $user = "<<span style='color: $convo_remote_color;'>$remoteuser</span>>"; } - if($type == '2') { + if($direction == '1') { $bgcolor = $convo_local_bgcolor; $user = "<<span style='color: $convo_local_color;'>$localuser</span>>"; } |