aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
Diffstat (limited to 'mod')
-rw-r--r--mod/amcd.php26
-rw-r--r--mod/profile.php2
-rw-r--r--mod/session.php5
3 files changed, 32 insertions, 1 deletions
diff --git a/mod/amcd.php b/mod/amcd.php
new file mode 100644
index 000000000..01c6b92da
--- /dev/null
+++ b/mod/amcd.php
@@ -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();
+} \ No newline at end of file
diff --git a/mod/profile.php b/mod/profile.php
index 99c775c4e..8dd7b8ebf 100644
--- a/mod/profile.php
+++ b/mod/profile.php
@@ -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');
diff --git a/mod/session.php b/mod/session.php
new file mode 100644
index 000000000..22c855edb
--- /dev/null
+++ b/mod/session.php
@@ -0,0 +1,5 @@
+<?php
+
+function session_content(&$a) {
+
+}