3 require_once('include/Scrape.php');
5 function probe_content(App $a) {
8 http_status_exit(403, array("title" => t("Public access denied."),
9 "description" => t("Only logged in users are permitted to perform a probing.")));
13 $o .= '<h3>Probe Diagnostic</h3>';
15 $o .= '<form action="probe" method="get">';
16 $o .= 'Lookup address: <input type="text" style="width: 250px;" name="addr" value="' . $_GET['addr'] . '" />';
17 $o .= '<input type="submit" name="submit" value="Submit" /></form>';
21 if (x($_GET, 'addr')) {
22 $addr = trim($_GET['addr']);
23 $res = probe_url($addr);
25 $o .= str_replace("\n", '<br />', print_r($res, true));