From a782ab50f91de804f36bcc32e07cf15c7287ea41 Mon Sep 17 00:00:00 2001 From: Adam Magness Date: Tue, 7 Nov 2017 12:31:32 -0500 Subject: [PATCH] Correct deletion Bring back mod/probe.php and delete include/probe.php as intended. --- include/probe.php | 41 ----------------------------------------- mod/probe.php | 31 +++++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+), 41 deletions(-) delete mode 100644 include/probe.php create mode 100644 mod/probe.php diff --git a/include/probe.php b/include/probe.php deleted file mode 100644 index 8cf703be8..000000000 --- a/include/probe.php +++ /dev/null @@ -1,41 +0,0 @@ - t("Public access denied."), + "description" => t("Only logged in users are permitted to perform a probing."))); + killme(); + } + + $o .= '

Probe Diagnostic

'; + + $o .= '
'; + $o .= 'Lookup address: '; + $o .= '
'; + + $o .= '

'; + + if (x($_GET, 'addr')) { + $addr = trim($_GET['addr']); + $res = Probe::uri($addr, "", 0, false); + $o .= '
';
+		$o .= str_replace("\n", '
', print_r($res, true)); + $o .= '
'; + } + + return $o; +}