aboutsummaryrefslogtreecommitdiffstats
path: root/mod/_well_known.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/_well_known.php')
-rw-r--r--mod/_well_known.php24
1 files changed, 24 insertions, 0 deletions
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 @@
+<?php
+
+function _well_known_init(&$a){
+
+ if(argc() > 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