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
94404c1c
Commit
94404c1c
authored
Sep 03, 2015
by
Ad Schellevis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(legacy) firewall_aliases.php tab to menu
parent
accb491c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
15 deletions
+10
-15
Menu.xml
src/opnsense/mvc/app/models/OPNsense/Base/Menu/Menu.xml
+9
-6
firewall_aliases.php
src/www/firewall_aliases.php
+1
-9
No files found.
src/opnsense/mvc/app/models/OPNsense/Base/Menu/Menu.xml
View file @
94404c1c
...
...
@@ -51,12 +51,15 @@
</Assign>
</Interfaces>
<Firewall
order=
"3"
cssClass=
"glyphicon glyphicon-fire"
>
<Aliases
url=
"/firewall_aliases.php"
>
<AliasesEdit
url=
"/firewall_aliases_edit.php*"
/>
<IP
url=
"/firewall_aliases.php?tab=ip"
/>
<Ports
url=
"/firewall_aliases.php?tab=port"
/>
<URLs
url=
"/firewall_aliases.php?tab=url"
/>
<All
url=
"/firewall_aliases.php?tab=all"
/>
<Aliases
cssClass=
"fa fa-list-alt"
>
<IP
order=
"100"
url=
"/firewall_aliases.php?tab=ip"
/>
<Ports
order=
"200"
url=
"/firewall_aliases.php?tab=port"
/>
<URLs
order=
"300"
url=
"/firewall_aliases.php?tab=url"
/>
<All
order=
"400"
url=
"/firewall_aliases.php?tab=all"
>
<AliasesEdit
url=
"/firewall_aliases_edit.php*"
/>
<Import
url=
"/firewall_aliases_import.php"
/>
<none
url=
"/firewall_aliases.php"
/>
</All>
</Aliases>
<NAT
url=
"/firewall_nat.php"
>
<NatEdit
url=
"/firewall_nat_edit.php*"
/>
...
...
src/www/firewall_aliases.php
View file @
94404c1c
...
...
@@ -180,15 +180,7 @@ $( document ).ready(function() {
<?php
print_info_box_np
(
gettext
(
"The alias list has been changed."
)
.
"<br />"
.
gettext
(
"You must apply the changes in order for them to take effect."
));
?>
<?php
endif
;
?>
<section
class=
"col-xs-12"
>
<?php
$tab_array
=
array
();
$tab_array
[]
=
array
(
gettext
(
"IP"
),(
$selected_tab
==
"ip"
?
true
:
(
$selected_tab
==
"host"
?
true
:
(
$selected_tab
==
"network"
?
true
:
false
))),
"/firewall_aliases.php?tab=ip"
);
$tab_array
[]
=
array
(
gettext
(
"Ports"
),
(
$selected_tab
==
"port"
?
true
:
false
),
"/firewall_aliases.php?tab=port"
);
$tab_array
[]
=
array
(
gettext
(
"URLs"
),
(
$selected_tab
==
"url"
?
true
:
false
),
"/firewall_aliases.php?tab=url"
);
$tab_array
[]
=
array
(
gettext
(
"All"
),
(
$selected_tab
==
"all"
?
true
:
false
),
"/firewall_aliases.php?tab=all"
);
display_top_tabs
(
$tab_array
);
?>
<div
class=
"tab-content content-box col-xs-12"
>
<div
class=
"content-box"
>
<form
action=
"firewall_aliases.php"
method=
"post"
name=
"iform"
id=
"iform"
>
<input
type=
"hidden"
name=
"tab"
value=
"
<?=
$selected_tab
;
?>
"
/>
<input
type=
"hidden"
name=
"id"
value=
""
id=
"delId"
/>
...
...
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