aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorBill Marquette <bill.marquette@gmail.com>2009-02-08 23:00:41 -0600
committerBill Marquette <bill.marquette@gmail.com>2009-02-08 23:03:10 -0600
commitb79fa46fc7b32176ce7f925b31b6bd62e51b07d2 (patch)
treedb7ae2ed697fdf33fea09a7f838369a6a295941d /config
parent6423fb187920c10adf8c22a51d98c27ace2024f1 (diff)
downloadpfsense-packages-b79fa46fc7b32176ce7f925b31b6bd62e51b07d2.tar.gz
pfsense-packages-b79fa46fc7b32176ce7f925b31b6bd62e51b07d2.tar.bz2
pfsense-packages-b79fa46fc7b32176ce7f925b31b6bd62e51b07d2.zip
6th field is category, let's log and render it correctly
Diffstat (limited to 'config')
-rw-r--r--config/imspector/services_imspector_logs.php6
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");