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 | |
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')
-rw-r--r-- | config/imspector/imspector.xml | 8 | ||||
-rw-r--r-- | config/imspector/services_imspector_logs.php | 6 |
2 files changed, 6 insertions, 8 deletions
diff --git a/config/imspector/imspector.xml b/config/imspector/imspector.xml index 076dca13..1c272679 100644 --- a/config/imspector/imspector.xml +++ b/config/imspector/imspector.xml @@ -9,11 +9,7 @@ /* authng.xml part of pfSense (http://www.pfSense.com) - Copyright (C) 2007 to whom it may belong - All rights reserved. - - Based on m0n0wall (http://m0n0.ch/wall) - Copyright (C) 2003-2006 Manuel Kasper <mk@neon1.net>. + Copyright (C) 2007 Ryan Wagoner <rswagoner@gmail.com>. All rights reserved. */ /* ========================================================================== */ @@ -46,7 +42,7 @@ <requirements>Describe your package requirements here</requirements> <faq>Currently there are no FAQ items provided.</faq> <name>imspector</name> - <version>0.4</version> + <version>0.5</version> <title>Services: IMSpector</title> <savetext>Change</savetext> <aftersaveredirect>/services_imspector_logs.php</aftersaveredirect> 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"); |