aboutsummaryrefslogtreecommitdiffstats
path: root/mod/_well_known.php
blob: ac4eb60762e0065d9600915ef558348b7ae84976 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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);
}