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
1ed6b998
Commit
1ed6b998
authored
Apr 07, 2016
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
interfaces: assorted UI tweaks and corrections
parent
331d5a8f
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
65 additions
and
69 deletions
+65
-69
interfaces_qinq.php
src/www/interfaces_qinq.php
+1
-1
interfaces_qinq_edit.php
src/www/interfaces_qinq_edit.php
+5
-5
interfaces_wireless_edit.php
src/www/interfaces_wireless_edit.php
+55
-59
status_interfaces.php
src/www/status_interfaces.php
+4
-4
No files found.
src/www/interfaces_qinq.php
View file @
1ed6b998
...
...
@@ -162,7 +162,7 @@ $main_buttons = array(
$i
++
;
endforeach
;
?>
<tr>
<td
colspan=
"
4
"
>
<td
colspan=
"
5
"
>
<?=
gettext
(
"Not all drivers/NICs support 802.1Q QinQ tagging properly. On cards that do not explicitly support it, QinQ tagging will still work, but the reduced MTU may cause problems."
);
?>
</td>
</tr>
...
...
src/www/interfaces_qinq_edit.php
View file @
1ed6b998
...
...
@@ -40,8 +40,8 @@ if (!isset($config['qinqs']['qinqentry']) || !is_array($config['qinqs']['qinqent
$a_qinqs
=
&
$config
[
'qinqs'
][
'qinqentry'
];
if
(
$_SERVER
[
'REQUEST_METHOD'
]
===
'GET'
)
{
// read form data
if
(
!
empty
(
$a_qinqs
[
$_GET
[
'id'
]]))
{
$id
=
0
;
if
(
isset
(
$_GET
[
'id'
])
&&
!
empty
(
$a_qinqs
[
$_GET
[
'id'
]]))
{
$id
=
$_GET
[
'id'
];
}
$pconfig
[
'if'
]
=
isset
(
$a_qinqs
[
$id
][
'if'
])
?
$a_qinqs
[
$id
][
'if'
]
:
null
;
...
...
@@ -50,7 +50,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
$pconfig
[
'descr'
]
=
isset
(
$a_qinqs
[
$id
][
'descr'
])
?
$a_qinqs
[
$id
][
'descr'
]
:
null
;
}
elseif
(
$_SERVER
[
'REQUEST_METHOD'
]
===
'POST'
)
{
// validate / save form data
if
(
!
empty
(
$a_qinqs
[
$_POST
[
'id'
]]))
{
if
(
isset
(
$_POST
[
'id'
])
&&
!
empty
(
$a_qinqs
[
$_POST
[
'id'
]]))
{
$id
=
$_POST
[
'id'
];
}
$input_errors
=
array
();
...
...
@@ -72,7 +72,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
$input_errors
[]
=
gettext
(
"QinQ level already exists for this interface, edit it!"
);
}
}
if
(
is
_array
(
$config
[
'vlans'
][
'vlan'
]))
{
if
(
is
set
(
$config
[
'vlans'
][
'vlan'
]))
{
foreach
(
$config
[
'vlans'
][
'vlan'
]
as
$vlan
)
{
if
(
$vlan
[
'tag'
]
==
$pconfig
[
'tag'
]
&&
$vlan
[
'if'
]
==
$pconfig
[
'if'
])
{
$input_errors
[]
=
gettext
(
"A normal VLAN exists with this tag please remove it to use this tag for QinQ first level."
);
...
...
@@ -214,7 +214,7 @@ include("head.inc");
<td>
<input
name=
"submit"
type=
"submit"
class=
"btn btn-primary"
value=
"
<?=
gettext
(
"Save"
);
?>
"
/>
<input
type=
"button"
class=
"btn btn-default"
value=
"
<?=
gettext
(
"Cancel"
);
?>
"
onclick=
"window.location.href='
<?=
(
isset
(
$_SERVER
[
'HTTP_REFERER'
])
?
$_SERVER
[
'HTTP_REFERER'
]
:
'/interfaces_qinq.php'
);
?>
'"
/>
<?php
if
(
isset
(
$id
)
&&
$a_qinqs
[
$id
]
)
:
?>
<?php
if
(
isset
(
$id
)
&&
isset
(
$a_qinqs
[
$id
])
)
:
?>
<input
name=
"id"
type=
"hidden"
value=
"
<?=
$id
;
?>
"
/>
<?php
endif
;
?>
</td>
...
...
src/www/interfaces_wireless_edit.php
View file @
1ed6b998
...
...
@@ -140,9 +140,7 @@ include("head.inc");
<div
class=
"row"
>
<?php
if
(
isset
(
$input_errors
)
&&
count
(
$input_errors
)
>
0
)
print_input_errors
(
$input_errors
);
?>
<section
class=
"col-xs-12"
>
<div
class=
"content-box"
>
<div
class=
"content-box-main"
>
<div
class=
"table-responsive"
>
<div
class=
"content-box tab-content"
>
<form
method=
"post"
name=
"iform"
id=
"iform"
>
<table
class=
"table table-striped"
>
<thead>
...
...
@@ -200,8 +198,6 @@ include("head.inc");
</table>
</form>
</div>
</div>
</div>
</section>
</div>
</div>
...
...
src/www/status_interfaces.php
View file @
1ed6b998
...
...
@@ -474,11 +474,11 @@ include("head.inc");
<table
class=
"table table-striped"
>
<tr>
<td>
<?
php
printf
(
gettext
(
"Using dial-on-demand will bring the connection up again if any packet "
.
<?
=
gettext
(
"Using dial-on-demand will bring the connection up again if any packet "
.
"triggers it. To substantiate this point: disconnecting manually "
.
"will
%snot%s
prevent dial-on-demand from making connections "
.
"to the outside
!
Don't use dial-on-demand if you want to make sure that the line "
.
"is kept disconnected."
)
,
'<strong>'
,
'</strong>'
)
?>
"will
not
prevent dial-on-demand from making connections "
.
"to the outside
.
Don't use dial-on-demand if you want to make sure that the line "
.
"is kept disconnected."
)
?>
</td>
</tr>
</table>
...
...
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