Game server and admin dashboard for TerranQuest.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

apisettings.php 2.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <?php
  2. /*
  3. * This Source Code Form is subject to the terms of the Mozilla Public
  4. * License, v. 2.0. If a copy of the MPL was not distributed with this
  5. * file, You can obtain one at http://mozilla.org/MPL/2.0/.
  6. */
  7. $APIS = [
  8. "ping" => [
  9. "load" => "ping.php",
  10. "vars" => [
  11. ]
  12. ],
  13. "inventory" => [
  14. "load" => "inventory.php"
  15. ],
  16. "createplayer" => [
  17. "load" => "createplayer.php",
  18. "vars" => [
  19. "team" => "/[1-6]/"
  20. ]
  21. ],
  22. "playerexists" => [
  23. "load" => "playerexists.php",
  24. "vars" => [
  25. "id (optional)" => "/[0-9]+/"
  26. ]
  27. ],
  28. "getprofile" => [
  29. "load" => "getprofile.php",
  30. "vars" => [
  31. "id (optional)" => "/[0-9]+/"
  32. ]
  33. ],
  34. "code" => [
  35. "load" => "submitcode.php",
  36. "vars" => [
  37. "code" => "string",
  38. "latitude (optional)" => "/[0-9]{0,3}\.[0-9]{2,10}/",
  39. "longitude (optional)" => "/[0-9]{0,3}\.[0-9]{2,10}/",
  40. "accuracy (optional)" => "numeric"
  41. ]
  42. ],
  43. "nearbyplayers" => [
  44. "load" => "nearbyplayers.php",
  45. "vars" => [
  46. "latitude" => "/[0-9]{0,3}\.[0-9]{2,10}/",
  47. "longitude" => "/[0-9]{0,3}\.[0-9]{2,10}/",
  48. "radius (optional)" => "numeric"
  49. ]
  50. ],
  51. "nearbyplaces" => [
  52. "load" => "nearbyplaces.php",
  53. "vars" => [
  54. "latitude" => "/[0-9]{0,3}\.[0-9]{2,10}/",
  55. "longitude" => "/[0-9]{0,3}\.[0-9]{2,10}/",
  56. "radius (optional)" => "numeric"
  57. ]
  58. ],
  59. "getchat" => [
  60. "load" => "getchat.php",
  61. "vars" => [
  62. "latitude (optional)" => "/[0-9]{0,3}\.[0-9]{2,10}/",
  63. "longitude (optional)" => "/[0-9]{0,3}\.[0-9]{2,10}/",
  64. "radius (optional)" => "numeric"
  65. ]
  66. ],
  67. "sendchat" => [
  68. "load" => "sendchat.php",
  69. "vars" => [
  70. "latitude" => "/[0-9]{0,3}\.[0-9]{2,10}/",
  71. "longitude" => "/[0-9]{0,3}\.[0-9]{2,10}/",
  72. "message" => "string"
  73. ]
  74. ],
  75. "useitem" => [
  76. "load" => "useitem.php",
  77. "vars" => [
  78. "uuid" => "numeric",
  79. "placeid (optional)" => "numeric"
  80. ]
  81. ]
  82. ];