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
8e93b4c4
Commit
8e93b4c4
authored
May 25, 2015
by
Ad Schellevis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(firewall) remove some more unused code
parent
1c96e1a5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
14 deletions
+3
-14
firewall_rules.php
src/www/firewall_rules.php
+3
-14
No files found.
src/www/firewall_rules.php
View file @
8e93b4c4
...
...
@@ -557,21 +557,10 @@ include("head.inc");
<?php
//build Alias popup box
$alias_src_span_begin
=
""
;
//$alias_src_port_span_begin = "";
//$alias_dst_span_begin = "";
//$alias_dst_port_span_begin = "";
$alias_popup
=
rule_popup
(
$filterent
[
'source'
][
'address'
],
pprint_port
(
$filterent
[
'source'
][
'port'
]),
$filterent
[
'destination'
][
'address'
],
pprint_port
(
$filterent
[
'destination'
][
'port'
]));
//var_dump($alias_popup);
//$alias_src_span_begin = $alias_popup["src"];
//$alias_src_port_span_begin = $alias_popup["srcport"];
//$alias_dst_span_begin = $alias_popup["dst"];
//$alias_dst_port_span_begin = $alias_popup["dstport"];
$alias_src_span_end
=
""
;
//$alias_popup["src_end"];
//$alias_src_port_span_end = $alias_popup["srcport_end"];
//$alias_dst_span_end = $alias_popup["dst_end"];
//$alias_dst_port_span_end = $alias_popup["dstport_end"];
if
(
count
(
$alias_popup
)
>
0
)
{
$aliases_popup
[
'src'
][
'addrlist'
]
=
explode
(
" "
,
$alias_popup
[
'src'
][
'address'
]);
$aliases_popup
[
'src'
][
'detlist'
]
=
explode
(
"||"
,
$alias_popup
[
'src'
][
'detail'
]);
...
...
@@ -751,13 +740,13 @@ include("head.inc");
<span
class=
"
<?=
$textse
;
?>
"
>
<?php
echo
$alias_src_span_begin
;
?><?php
echo
htmlspecialchars
(
pprint_address
(
$filterent
[
'source'
]));
?><?php
echo
$alias_src_span_end
;
?>
</span>
</td>
<td
class=
"listr"
id=
"frd
<?=
$nrules
;
?>
"
ondblclick=
"document.location='firewall_rules_edit.php?id=
<?=
$i
;
?>
';"
>
<span
class=
"
<?=
$textse
;
?>
"
>
<
!--?php echo $alias_src_port_span_begin;?-->
<?php
echo
htmlspecialchars
(
pprint_port
(
$filterent
[
'source'
][
'port'
]));
?>
<!--?php echo $alias_src_port_span_end;?--
>
</span>
<span
class=
"
<?=
$textse
;
?>
"
>
<
?php
echo
htmlspecialchars
(
pprint_port
(
$filterent
[
'source'
][
'port'
]));
?
>
</span>
</td>
<td
class=
"listr"
id=
"frd
<?=
$nrules
;
?>
"
ondblclick=
"document.location='firewall_rules_edit.php?id=
<?=
$i
;
?>
';"
>
<span
class=
"
<?=
$textse
;
?>
"
>
<
!--?php echo $alias_dst_span_begin;?-->
<?php
echo
htmlspecialchars
(
pprint_address
(
$filterent
[
'destination'
]));
?>
<!--?php echo $alias_dst_span_end;?--
>
</span>
<span
class=
"
<?=
$textse
;
?>
"
>
<
?php
echo
htmlspecialchars
(
pprint_address
(
$filterent
[
'destination'
]));
?
>
</span>
</td>
<td
class=
"listr"
id=
"frd
<?=
$nrules
;
?>
"
ondblclick=
"document.location='firewall_rules_edit.php?id=
<?=
$i
;
?>
';"
>
<span
class=
"
<?=
$textse
;
?>
"
>
<
!--?php echo $alias_dst_port_span_begin;?-->
<?php
echo
htmlspecialchars
(
pprint_port
(
$filterent
[
'destination'
][
'port'
]));
?>
<!--?php echo $alias_dst_port_span_end;?--
>
</span>
<span
class=
"
<?=
$textse
;
?>
"
>
<
?php
echo
htmlspecialchars
(
pprint_port
(
$filterent
[
'destination'
][
'port'
]));
?
>
</span>
</td>
<td
class=
"listr"
id=
"frd
<?=
$nrules
;
?>
"
ondblclick=
"document.location='firewall_rules_edit.php?id=
<?=
$i
;
?>
';"
>
<span
class=
"
<?=
$textse
;
?>
"
>
<?php
if
(
isset
(
$config
[
'interfaces'
][
$filterent
[
'gateway'
]][
'descr'
]))
echo
htmlspecialchars
(
$config
[
'interfaces'
][
$filterent
[
'gateway'
]][
'descr'
]);
else
echo
htmlspecialchars
(
pprint_port
(
$filterent
[
'gateway'
]));
?>
</span>
...
...
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