aboutsummaryrefslogtreecommitdiffstats
path: root/mod/probe.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-08-12 02:58:29 -0700
committerFriendika <info@friendika.com>2011-08-12 02:58:29 -0700
commitfda593caeda997fbd97eed28f69107ce91c16242 (patch)
tree8eb1b2b73a04766498fbdc489db001b8a431a23c /mod/probe.php
parent0db145dafa032a8c1fd68c318afc59f9599f3756 (diff)
downloadvolse-hubzilla-fda593caeda997fbd97eed28f69107ce91c16242.tar.gz
volse-hubzilla-fda593caeda997fbd97eed28f69107ce91c16242.tar.bz2
volse-hubzilla-fda593caeda997fbd97eed28f69107ce91c16242.zip
introduction fails if confirmation differs by http vs https
Diffstat (limited to 'mod/probe.php')
-rw-r--r--mod/probe.php23
1 files changed, 23 insertions, 0 deletions
diff --git a/mod/probe.php b/mod/probe.php
new file mode 100644
index 000000000..221d18650
--- /dev/null
+++ b/mod/probe.php
@@ -0,0 +1,23 @@
+<?php
+
+require_once('include/Scrape.php');
+
+function probe_content(&$a) {
+
+ $o .= '<h3>Probe Diagnostic</h3>';
+
+ $o .= '<form action="probe" method="get">';
+ $o .= 'Lookup address: <input type="text" style="width: 250px;" name="addr" value="' . $_GET['addr'] .'" />';
+ $o .= '<input type="submit" name="submit" value="Submit" /></form>';
+
+ $o .= '<br /><br />';
+
+ if(x($_GET,'addr')) {
+ $addr = trim($_GET['addr']);
+ $res = probe_url($addr);
+ $o .= '<pre>';
+ $o .= str_replace("\n",'<br />',print_r($res,true));
+ $o .= '</pre>';
+ }
+ return $o;
+}