default.php 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. <?php
  2. /**
  3. * Default settings for the authpdo plugin
  4. *
  5. * @author Andreas Gohr <andi@splitbrain.org>
  6. */
  7. $conf['debug'] = 0;
  8. $conf['dsn'] = '';
  9. $conf['user'] = '';
  10. $conf['pass'] = '';
  11. /**
  12. * statement to select a single user identified by its login name
  13. *
  14. * input: :user
  15. * return: user, name, mail, (clear|hash), [uid], [*]
  16. */
  17. $conf['select-user'] = '';
  18. /**
  19. * statement to check the password in SQL, optional when above returned clear or hash
  20. *
  21. * input: :user, :clear, :hash, [uid], [*]
  22. * return: *
  23. */
  24. $conf['check-pass'] = '';
  25. /**
  26. * statement to select a single user identified by its login name
  27. *
  28. * input: :user, [uid]
  29. * return: group
  30. */
  31. $conf['select-user-groups'] = '';
  32. /**
  33. * Select all the existing group names
  34. *
  35. * return: group, [gid], [*]
  36. */
  37. $conf['select-groups'] = '';
  38. /**
  39. * Create a new user
  40. *
  41. * input: :user, :name, :mail, (:clear|:hash)
  42. */
  43. $conf['insert-user'] = '';
  44. /**
  45. * Remove a user
  46. *
  47. * input: :user, [:uid], [*]
  48. */
  49. $conf['delete-user'] = '';
  50. /**
  51. * list user names matching the given criteria
  52. *
  53. * Make sure the list is distinct and sorted by user name. Apply the given limit and offset
  54. *
  55. * input: :user, :name, :mail, :group, :start, :end, :limit
  56. * out: user
  57. */
  58. $conf['list-users'] = '';
  59. /**
  60. * count user names matching the given criteria
  61. *
  62. * Make sure the counted list is distinct
  63. *
  64. * input: :user, :name, :mail, :group
  65. * out: count
  66. */
  67. $conf['count-users'] = '';
  68. /**
  69. * Update user data (except password and user name)
  70. *
  71. * input: :user, :name, :mail, [:uid], [*]
  72. */
  73. $conf['update-user-info'] = '';
  74. /**
  75. * Update user name aka login
  76. *
  77. * input: :user, :newlogin, [:uid], [*]
  78. */
  79. $conf['update-user-login'] = '';
  80. /**
  81. * Update user password
  82. *
  83. * input: :user, :clear, :hash, [:uid], [*]
  84. */
  85. $conf['update-user-pass'] = '';
  86. /**
  87. * Create a new group
  88. *
  89. * input: :group
  90. */
  91. $conf['insert-group'] = '';
  92. /**
  93. * Make user join group
  94. *
  95. * input: :user, [:uid], group, [:gid], [*]
  96. */
  97. $conf['join-group'] = '';
  98. /**
  99. * Make user leave group
  100. *
  101. * input: :user, [:uid], group, [:gid], [*]
  102. */
  103. $conf['leave-group'] = '';