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
1c96e1a5
Commit
1c96e1a5
authored
May 25, 2015
by
Ad Schellevis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(firewall) remove some alias popup leftovers in nat page
parent
399e4f84
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
40 deletions
+0
-40
firewall_nat.php
src/www/firewall_nat.php
+0
-40
No files found.
src/www/firewall_nat.php
View file @
1c96e1a5
...
...
@@ -236,28 +236,6 @@ $main_buttons = array(
//build Alias popup box
$span_end
=
"</U></span>"
;
$alias_popup
=
rule_popup
(
$natent
[
'source'
][
'address'
],
pprint_port
(
$natent
[
'source'
][
'port'
]),
$natent
[
'destination'
][
'address'
],
pprint_port
(
$natent
[
'destination'
][
'port'
]));
$alias_popup
=
rule_popup
(
$natent
[
'source'
][
'address'
],
pprint_port
(
$natent
[
'source'
][
'port'
]),
$natent
[
'destination'
][
'address'
],
pprint_port
(
$natent
[
'destination'
][
'port'
]));
$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"
];
$alias_popup
=
rule_popup
(
""
,
""
,
$natent
[
'target'
],
pprint_port
(
$natent
[
'local-port'
]));
$alias_target_span_begin
=
$alias_popup
[
"dst"
];
$alias_local_port_span_begin
=
$alias_popup
[
"dstport"
];
$alias_target_span_end
=
$alias_popup
[
"dst_end"
];
$alias_local_port_span_end
=
$alias_popup
[
"dstport_end"
];
if
(
isset
(
$natent
[
'disabled'
]))
$textss
=
"<span class=
\"
text-muted
\"
>"
;
else
...
...
@@ -305,49 +283,34 @@ $main_buttons = array(
<td
class=
"listr"
id=
"frd
<?=
$nnats
;
?>
"
ondblclick=
"document.location='firewall_nat_edit.php?id=
<?=
$nnats
;
?>
';"
>
<?=
$textss
;
?>
<?php
//if ($alias_src_span_begin) echo htmlspecialchars(pprint_address($alias_src_span_begin));
//else
echo
htmlspecialchars
(
pprint_address
(
$natent
[
'source'
]));
//if ($alias_src_span_end) echo htmlspecialchars(pprint_address($alias_src_span_end));
?>
<?=
$textse
;
?>
</td>
<td
class=
"listr"
id=
"frd
<?=
$nnats
;
?>
"
ondblclick=
"document.location='firewall_nat_edit.php?id=
<?=
$nnats
;
?>
';"
>
<?=
$textss
;
?>
<?php
//if ($alias_src_port_span_begin) echo htmlspecialchars(pprint_port($alias_src_port_span_begin));
//else
echo
htmlspecialchars
(
pprint_port
(
$natent
[
'source'
][
'port'
]));
//if($alias_src_port_span_end) echo htmlspecialchars(pprint_port($alias_src_port_span_end));
?><?=
$textse
;
?>
</td>
<td
class=
"listr"
id=
"frd
<?=
$nnats
;
?>
"
ondblclick=
"document.location='firewall_nat_edit.php?id=
<?=
$nnats
;
?>
';"
>
<?=
$textss
;
?>
<?php
//if ($alias_dst_span_begin) echo htmlspecialchars(pprint_address($alias_dst_span_begin));
//else
echo
htmlspecialchars
(
pprint_address
(
$natent
[
'destination'
]));
//if ($alias_dst_span_end) echo htmlspecialchars(pprint_address($alias_dst_span_end));
?><?=
$textse
;
?>
</td>
<td
class=
"listr"
id=
"frd
<?=
$nnats
;
?>
"
ondblclick=
"document.location='firewall_nat_edit.php?id=
<?=
$nnats
;
?>
';"
>
<?=
$textss
;
?>
<?php
//if ($alias_dst_port_span_begin) echo htmlspecialchars(pprint_port($alias_dst_port_span_begin['address']));
//else
echo
htmlspecialchars
(
pprint_port
(
$natent
[
'destination'
][
'port'
]));
//if ($alias_dst_port_span_end ) echo htmlspecialchars(pprint_port($alias_dst_port_span_end['address']));
?><?=
$textse
;
?>
</td>
<td
class=
"listr"
id=
"frd
<?=
$nnats
;
?>
"
ondblclick=
"document.location='firewall_nat_edit.php?id=
<?=
$nnats
;
?>
';"
>
<?=
$textss
;
?>
<?php
//if ($alias_target_span_begin) echo htmlspecialchars(pprint_address($alias_target_span_begin));
//else
echo
htmlspecialchars
(
$natent
[
'target'
]);
//if ($alias_target_span_end) echo htmlspecialchars(pprint_address($alias_target_span_end));
?><?=
$textse
;
?>
</td>
<td
class=
"listr"
id=
"frd
<?=
$nnats
;
?>
"
ondblclick=
"document.location='firewall_nat_edit.php?id=
<?=
$nnats
;
?>
';"
>
...
...
@@ -362,10 +325,7 @@ $main_buttons = array(
}
?>
<?=
$textss
;
?><?php
//if ($alias_local_port_span_begin) echo htmlspecialchars(pprint_port($alias_local_port_span_begin['address']));
//else
echo
htmlspecialchars
(
pprint_port
(
$localport
));
//if ($alias_local_port_span_end) echo htmlspecialchars(pprint_port($alias_local_port_span_end['address']));
?><?=
$textse
;
?>
</td>
...
...
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