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
9773d9dd
Commit
9773d9dd
authored
Jan 06, 2016
by
Ad Schellevis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(legacy) zap some leftovers diag_ping.php
parent
fb148730
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
25 deletions
+0
-25
diag_ping.php
src/www/diag_ping.php
+0
-25
No files found.
src/www/diag_ping.php
View file @
9773d9dd
...
...
@@ -39,7 +39,6 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
// set form defaults
$pconfig
=
array
();
$pconfig
[
'count'
]
=
3
;
}
elseif
(
$_SERVER
[
'REQUEST_METHOD'
]
===
'POST'
)
{
// validate formdata and schedule action
$pconfig
=
$_POST
;
...
...
@@ -81,30 +80,6 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
}
}
if
(
$_POST
||
$_REQUEST
[
'host'
])
{
$host
=
trim
(
$pconfig
[
'host'
]);
$ipproto
=
$pconfig
[
'ipproto'
];
if
(
count
(
$input_errors
))
{
$do_ping
=
true
;
$sourceip
=
$_REQUEST
[
'sourceip'
];
$count
=
$_POST
[
'count'
];
if
(
preg_match
(
'/[^0-9]/'
,
$count
)
)
$count
=
DEFAULT_COUNT
;
}
}
if
(
!
isset
(
$do_ping
))
{
$do_ping
=
false
;
$host
=
''
;
$count
=
DEFAULT_COUNT
;
}
legacy_html_escape_form_data
(
$pconfig
);
include
(
"head.inc"
);
?>
<body>
...
...
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