]> git.mxchange.org Git - friendica.git/blob - mod/probe.php
Merge pull request #3149 from annando/1601-new-diaspora-mention
[friendica.git] / mod / probe.php
1 <?php
2
3 require_once('include/Scrape.php');
4
5 function probe_content(App $a) {
6
7         $o .= '<h3>Probe Diagnostic</h3>';
8
9         $o .= '<form action="probe" method="get">';
10         $o .= 'Lookup address: <input type="text" style="width: 250px;" name="addr" value="' . $_GET['addr'] .'" />';
11         $o .= '<input type="submit" name="submit" value="Submit" /></form>';
12
13         $o .= '<br /><br />';
14
15         if(x($_GET,'addr')) {
16
17                 $addr = trim($_GET['addr']);
18                 $res = probe_url($addr);
19                 $o .= '<pre>';
20                 $o .= str_replace("\n",'<br />',print_r($res,true));
21                 $o .= '</pre>';
22         }
23         return $o;
24 }