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
2ef52e06
Commit
2ef52e06
authored
Nov 10, 2015
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
inc: remove two unused functions
parent
2b098ba9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
18 deletions
+1
-18
util.inc
src/etc/inc/util.inc
+1
-18
No files found.
src/etc/inc/util.inc
View file @
2ef52e06
...
...
@@ -25,6 +25,7 @@
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
*/
require_once
(
"IPv6.inc"
);
function
killbyname
(
$procname
,
$sig
=
'TERM'
)
...
...
@@ -565,11 +566,6 @@ function group_ports($ports) {
return
$result
;
}
/* returns true if $val is a valid shaper bandwidth value */
function
is_valid_shaperbw
(
$val
)
{
return
(
preg_match
(
"/^(\d+(?:\.\d+)?)([MKG]?b|%)$/"
,
$val
));
}
/* returns true if $test is in the range between $start and $end */
function
is_inrange_v4
(
$test
,
$start
,
$end
)
{
if
(
(
ip2ulong
(
$test
)
<=
ip2ulong
(
$end
))
&&
(
ip2ulong
(
$test
)
>=
ip2ulong
(
$start
))
)
...
...
@@ -1381,16 +1377,3 @@ function prefer_ipv4_or_ipv6() {
else
mwexec
(
"/etc/rc.d/ip6addrctl prefer_ipv6"
);
}
/* Redirect to page passing parameters via POST */
function
post_redirect
(
$page
,
$params
)
{
if
(
!
is_array
(
$params
))
return
;
print
"<html><body><form action=
\"
{
$page
}
\"
name=
\"
formredir
\"
method=
\"
post
\"
>
\n
"
;
foreach
(
$params
as
$key
=>
$value
)
{
print
"<input type=
\"
hidden
\"
name=
\"
{
$key
}
\"
value=
\"
{
$value
}
\"
/>
\n
"
;
}
print
"</form><script type=
\"
text/javascript
\"
>document.formredir.submit();</script>
\n
"
;
print
"</body></html>
\n
"
;
}
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