https://reisub.nsupdate.info/git
/
friendica.git
/
.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Frio - bugfix - don't show new event button if the button isn't available
[friendica.git/.git]
/
mod
/
amcd.php
1
<?php
2
3
use Friendica\App;
4
5
function amcd_content()
6
{
7
echo <<< JSON
8
{
9
"version":1,
10
"sessionstatus":{
11
"method":"GET",
12
"path":"/session"
13
},
14
"auth-methods": {
15
"username-password-form": {
16
"connect": {
17
"method":"POST",
18
"path":"/login",
19
"params": {
20
"username":"login-name",
21
"password":"password"
22
},
23
"onsuccess": { "action":"reload" }
24
},
25
"disconnect": {
26
"method":"GET",
27
"path":"\/logout"
28
}
29
}
30
}
31
"methods": {
32
"username-password-form": {
33
"connect": {
34
"method":"POST",
35
"path":"\/login",
36
"params": {
37
"username":"login-name",
38
"password":"password"
39
},
40
"onsuccess": { "action":"reload" }
41
},
42
"disconnect": {
43
"method":"GET",
44
"path":"\/logout"
45
}
46
}
47
}
48
}
49
JSON;
50
killme();
51
}