ff account manager
This commit is contained in:
parent
0abaa6724d
commit
7be66b1d91
7 changed files with 44 additions and 6 deletions
26
mod/amcd.php
Normal file
26
mod/amcd.php
Normal file
|
@ -0,0 +1,26 @@
|
|||
<?php
|
||||
|
||||
function amcd_content(&$a) {
|
||||
header("Content-type: text/json");
|
||||
echo <<< EOT
|
||||
{
|
||||
"methods": {
|
||||
"username-password-form": {
|
||||
"connect": {
|
||||
"method":"POST",
|
||||
"path":"/login",
|
||||
"params": {
|
||||
"username":"login-name",
|
||||
"password":"password"
|
||||
}
|
||||
},
|
||||
"disconnect": {
|
||||
"method":"GET",
|
||||
"path":"/logout"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
EOT;
|
||||
killme();
|
||||
}
|
|
@ -70,7 +70,7 @@ function profile_init(&$a) {
|
|||
$a->page['htmlhead'] .= '<link rel="alternate" type="application/atom+xml" href="' . $a->get_baseurl() . '/dfrn_poll/' . $which .'" />' . "\r\n" ;
|
||||
$uri = urlencode('acct:' . $a->profile['nickname'] . '@' . $a->get_hostname() . (($a->path) ? '/' . $a->path : ''));
|
||||
$a->page['htmlhead'] .= '<link rel="lrdd" type="application/xrd+xml" href="' . $a->get_baseurl() . '/xrd/?uri=' . $uri . '" />' . "\r\n";
|
||||
header('Link: <' . $a->get_baseurl() . '/xrd/?uri=' . $uri . '>; rel="lrdd"; type="application/xrd+xml"');
|
||||
header('Link: <' . $a->get_baseurl() . '/xrd/?uri=' . $uri . '>; rel="lrdd"; type="application/xrd+xml"', false);
|
||||
|
||||
|
||||
$dfrn_pages = array('request', 'confirm', 'notify', 'poll');
|
||||
|
|
5
mod/session.php
Normal file
5
mod/session.php
Normal file
|
@ -0,0 +1,5 @@
|
|||
<?php
|
||||
|
||||
function session_content(&$a) {
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue