diff options
author | Perry Mason <crazypark2@yahoo.dk> | 2009-02-09 12:41:13 +0100 |
---|---|---|
committer | Perry Mason <crazypark2@yahoo.dk> | 2009-02-09 12:41:13 +0100 |
commit | 6dcf7659b156d598d960d440fa80a5de1756b187 (patch) | |
tree | 9c1a32d23b586c63ef87bd737a879ccb796eadc2 /config/imspector/services_imspector_logs.php | |
parent | ff20b06136e58275d08269c532106a755341cc5e (diff) | |
parent | b79fa46fc7b32176ce7f925b31b6bd62e51b07d2 (diff) | |
download | pfsense-packages-6dcf7659b156d598d960d440fa80a5de1756b187.tar.gz pfsense-packages-6dcf7659b156d598d960d440fa80a5de1756b187.tar.bz2 pfsense-packages-6dcf7659b156d598d960d440fa80a5de1756b187.zip |
Merge branch 'master' of http://gitweb.pfsense.org/pfsense-packages/mainline
Diffstat (limited to 'config/imspector/services_imspector_logs.php')
-rw-r--r-- | config/imspector/services_imspector_logs.php | 6 |
1 files changed, 4 insertions, 2 deletions
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("<tr bgcolor='$bgcolor'><td style='width: 30px; vertical-align: top;'>[$time]</td>\n <td style=' width: 60px; vertical-align: top;'>$user</td>\n + <td style=' width: 60px; vertical-align: top;'>$category</td>\n <td style='vertical-align: top;'>$data</td></tr>\n"); } print("</table>\n"); |