From fb35742aab9b08ddee06fb576231a3248e77e185 Mon Sep 17 00:00:00 2001 From: friendica Date: Sun, 2 Sep 2012 21:39:45 -0700 Subject: add fabrixxm's recent changes to how ".well_known" urls work --- mod/_well_known.php | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 mod/_well_known.php (limited to 'mod') diff --git a/mod/_well_known.php b/mod/_well_known.php new file mode 100644 index 000000000..ac4eb6076 --- /dev/null +++ b/mod/_well_known.php @@ -0,0 +1,24 @@ + 1) { + switch(argv(1)) { + case "host-meta": + require_once('mod/hostxrd.php'); + hostxrd_init($a); + break; + + case 'zot-guid': + $a->argc -= 1; + array_shift($a->argv); + $a->argv[0] = 'zfinger'; + require_once('mod/zfinger.php'); + zfinger_init($a); + break; + + } + } + + http_status_exit(404); +} \ No newline at end of file -- cgit v1.2.3