Commit 9773d9dd authored by Ad Schellevis's avatar Ad Schellevis

(legacy) zap some leftovers diag_ping.php

parent fb148730
...@@ -39,7 +39,6 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { ...@@ -39,7 +39,6 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
// set form defaults // set form defaults
$pconfig = array(); $pconfig = array();
$pconfig['count'] = 3; $pconfig['count'] = 3;
} elseif ($_SERVER['REQUEST_METHOD'] === 'POST') { } elseif ($_SERVER['REQUEST_METHOD'] === 'POST') {
// validate formdata and schedule action // validate formdata and schedule action
$pconfig = $_POST; $pconfig = $_POST;
...@@ -81,30 +80,6 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { ...@@ -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); legacy_html_escape_form_data($pconfig);
include("head.inc"); ?> include("head.inc"); ?>
<body> <body>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment