Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
OpnSense
Commits
aea19e3f
Commit
aea19e3f
authored
Mar 05, 2015
by
Jos Schellevis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix firewall log icons in ajax calls
parent
170f72e0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
filter_log.inc
src/etc/inc/filter_log.inc
+9
-2
No files found.
src/etc/inc/filter_log.inc
View file @
aea19e3f
...
...
@@ -350,7 +350,7 @@ function find_rule_by_number_buffer($rulenum, $type){
}
else
{
$ruleString
=
$buffer_rules_normal
[
$lookup_key
];
list
(,
$rulename
,)
=
explode
(
"
\"
"
,
$ruleString
);
$rulename
=
str_replace
(
"USER_RULE: "
,
'<
img src="/themes/'
.
$g
[
'theme'
]
.
'/images/icons/icon_frmfld_user.png" width="11" height="12" title="USER_RULE" alt="USER_RULE"/>
'
,
$rulename
);
$rulename
=
str_replace
(
"USER_RULE: "
,
'<
span class="glyphicon glyphicon-user" title="USER_RULE" alt="USER_RULE"></span>
'
,
$rulename
);
}
return
"
{
$rulename
}
(
{
$lookup_key
}
)"
;
}
...
...
@@ -385,7 +385,14 @@ function handle_ajax($nentries, $tail = 50) {
$filterlog
=
isset
(
$config
[
'syslog'
][
'reverse'
])
?
array_reverse
(
$filterlog
)
:
$filterlog
;
foreach
(
$filterlog
as
$log_row
)
{
$row_time
=
strtotime
(
$log_row
[
'time'
]);
$img
=
"<img border='0' src='"
.
find_action_image
(
$log_row
[
'act'
])
.
"' alt=
{
$log_row
[
'act'
]
}
title=
{
$log_row
[
'act'
]
}
/>"
;
//$img = "<img border='0' src='" . find_action_image($log_row['act']) . "' alt={$log_row['act']} title={$log_row['act']} />";
if
(
$log_row
[
'act'
]
==
"pass"
)
{
$img
=
"<span class='glyphicon glyphicon-play text-success' alt=
{
$log_row
[
'act'
]
}
></span>"
;
}
elseif
(
$log_row
[
'act'
]
==
"block"
)
{
$img
=
"<span class='glyphicon glyphicon-remove text-danger' alt=
{
$log_row
[
'act'
]
}
></span>"
;
}
elseif
(
$log_row
[
'act'
]
==
"reject"
)
{
$img
=
"<span class='glyphicon glyphicon-remove text-warning' alt=
{
$log_row
[
'act'
]
}
></span>"
;
}
if
(
$row_time
>
$lastsawtime
)
{
if
(
$log_row
[
'proto'
]
==
"TCP"
)
$log_row
[
'proto'
]
.=
":
{
$log_row
[
'tcpflags'
]
}
"
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment