Friendica Communications Platform (please note that this is a clone of the repository at github, issues are handled there) https://friendi.ca
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

pirms 10 gadiem
pirms 10 gadiem
pirms 10 gadiem
pirms 10 gadiem
pirms 10 gadiem
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php
  2. function amcd_content(App $a) {
  3. echo <<< JSON
  4. {
  5. "version":1,
  6. "sessionstatus":{
  7. "method":"GET",
  8. "path":"/session"
  9. },
  10. "auth-methods": {
  11. "username-password-form": {
  12. "connect": {
  13. "method":"POST",
  14. "path":"/login",
  15. "params": {
  16. "username":"login-name",
  17. "password":"password"
  18. },
  19. "onsuccess": { "action":"reload" }
  20. },
  21. "disconnect": {
  22. "method":"GET",
  23. "path":"\/logout"
  24. }
  25. }
  26. }
  27. "methods": {
  28. "username-password-form": {
  29. "connect": {
  30. "method":"POST",
  31. "path":"\/login",
  32. "params": {
  33. "username":"login-name",
  34. "password":"password"
  35. },
  36. "onsuccess": { "action":"reload" }
  37. },
  38. "disconnect": {
  39. "method":"GET",
  40. "path":"\/logout"
  41. }
  42. }
  43. }
  44. }
  45. JSON;
  46. killme();
  47. }