simpleauth.php 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <?php
  2. /**
  3. * Fuel is a fast, lightweight, community driven PHP5 framework.
  4. *
  5. * @package Fuel
  6. * @version 1.5
  7. * @author Fuel Development Team
  8. * @license MIT License
  9. * @copyright 2010 - 2013 Fuel Development Team
  10. * @link http://fuelphp.com
  11. */
  12. /**
  13. * NOTICE:
  14. *
  15. * If you need to make modifications to the default configuration, copy
  16. * this file to your app/config folder, and make them in there.
  17. *
  18. * This will allow you to upgrade fuel without losing your custom config.
  19. */
  20. return array(
  21. /**
  22. * DB connection, leave null to use default
  23. */
  24. 'db_connection' => null,
  25. /**
  26. * DB table name for the user table
  27. */
  28. 'table_name' => 'users',
  29. /**
  30. * Choose which columns are selected, must include: username, password, email, last_login,
  31. * login_hash, group & profile_fields
  32. */
  33. 'table_columns' => array('*'),
  34. /**
  35. * This will allow you to use the group & acl driver for non-logged in users
  36. */
  37. 'guest_login' => true,
  38. /**
  39. * Groups as id => array(name => <string>, roles => <array>)
  40. */
  41. 'groups' => array(
  42. /**
  43. * Examples
  44. * ---
  45. *
  46. * -1 => array('name' => 'Banned', 'roles' => array('banned')),
  47. * 0 => array('name' => 'Guests', 'roles' => array()),
  48. * 1 => array('name' => 'Users', 'roles' => array('user')),
  49. * 50 => array('name' => 'Moderators', 'roles' => array('user', 'moderator')),
  50. * 100 => array('name' => 'Administrators', 'roles' => array('user', 'moderator', 'admin')),
  51. */
  52. ),
  53. /**
  54. * Roles as name => array(location => rights)
  55. */
  56. 'roles' => array(
  57. /**
  58. * Examples
  59. * ---
  60. *
  61. * Regular example with role "user" given create & read rights on "comments":
  62. * 'user' => array('comments' => array('create', 'read')),
  63. * And similar additional rights for moderators:
  64. * 'moderator' => array('comments' => array('update', 'delete')),
  65. *
  66. * Wildcard # role (auto assigned to all groups):
  67. * '#' => array('website' => array('read'))
  68. *
  69. * Global disallow by assigning false to a role:
  70. * 'banned' => false,
  71. *
  72. * Global allow by assigning true to a role (use with care!):
  73. * 'super' => true,
  74. */
  75. ),
  76. /**
  77. * Salt for the login hash
  78. */
  79. 'login_hash_salt' => 'put_some_salt_in_here',
  80. /**
  81. * $_POST key for login username
  82. */
  83. 'username_post_key' => 'username',
  84. /**
  85. * $_POST key for login password
  86. */
  87. 'password_post_key' => 'password',
  88. );