make it easier to plug into .well_known, for instance to tell the EFF to fuck off and not block pages from the free web just because they use cookies.
This commit is contained in:
parent
f1eafbf47d
commit
92be2e1081
@ -3,6 +3,10 @@
|
|||||||
function _well_known_init(&$a){
|
function _well_known_init(&$a){
|
||||||
|
|
||||||
if(argc() > 1) {
|
if(argc() > 1) {
|
||||||
|
|
||||||
|
$arr = array('server' => $_SERVER, 'request' => $_REQUEST);
|
||||||
|
call_hooks('well_known', $arr);
|
||||||
|
|
||||||
switch(argv(1)) {
|
switch(argv(1)) {
|
||||||
case 'zot-info':
|
case 'zot-info':
|
||||||
$a->argc -= 1;
|
$a->argc -= 1;
|
||||||
@ -19,6 +23,7 @@ function _well_known_init(&$a){
|
|||||||
require_once('mod/wfinger.php');
|
require_once('mod/wfinger.php');
|
||||||
wfinger_init($a);
|
wfinger_init($a);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'host-meta':
|
case 'host-meta':
|
||||||
$a->argc -= 1;
|
$a->argc -= 1;
|
||||||
array_shift($a->argv);
|
array_shift($a->argv);
|
||||||
@ -26,6 +31,7 @@ function _well_known_init(&$a){
|
|||||||
require_once('mod/hostxrd.php');
|
require_once('mod/hostxrd.php');
|
||||||
hostxrd_init($a);
|
hostxrd_init($a);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user